Skip to content

Commit

Permalink
Update to 0.3.0 data models latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
samleeflang committed Jul 2, 2024
1 parent e54d041 commit 9cba486
Show file tree
Hide file tree
Showing 22 changed files with 363 additions and 122 deletions.
32 changes: 24 additions & 8 deletions app/data/opends/annotation-termlist.csv

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions app/data/opends/create-update-tombstone-event-termlist.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ods:,CreateUpdateTombstoneEvent,Create Update Tombstone Event,"Create Update Tom
ods:,ID,Id,"The unique identifier of the Create Update Tombstone Event, this includes the version of the object",,,"['https://hdl.handle.net/20.5000.1025/XXX-XXX-XXX/3', 'https://doi.org/TEST/PGD-QGK-S0R/1']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,CreateUpdateTombstoneEvent,False,False,CreateUpdateTombstoneEvent.ID,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/ID,ods:ID,string
ods:,type,Type,The DOI to the FDO type of the object,,,['https://doi.org/10.15468/1a2b3c'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,CreateUpdateTombstoneEvent,False,False,CreateUpdateTombstoneEvent.type,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/type,ods:type,string
prov:,Activity,Activity,"Based on the prov-ontology Activity Class, https://www.w3.org/ns/prov#Activity",,,,http://www.w3.org/2000/01/rdf-schema#Class,CreateUpdateTombstoneEvent,False,False,CreateUpdateTombstoneEvent.Activity,,Activity,prov:Activity,object
prov:,wasAssociatedWith,Was Associated With,"The unique identifier of the prov:Agent that was associated with the Activity (as indicated at @id in the Activity Class), http://www.w3.org/ns/prov#wasAssociatedWith",,,"['https://orcid.org/0000-0002-1825-0097', 'https://hdl.handle.net/20.5000.1025/XXX-XXX-XXX']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Activity,True,False,prov:Activity.wasAssociatedWith,,wasAssociatedWith,prov:wasAssociatedWith,string
prov:,wasAssociatedWith,Was Associated With,Contains zero a reference to one or more prov:Agent objects that were associated with the Activity,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Activity,True,False,prov:Activity.wasAssociatedWith,,wasAssociatedWith,prov:wasAssociatedWith,array
prov:,endedAtTime,Ended At Time,"The date and time when the activity ended, in ISO 8601 format, http://www.w3.org/ns/prov#endedAtTime",,,['2024-06-11T09:14:001Z'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Activity,True,False,prov:Activity.endedAtTime,,endedAtTime,prov:endedAtTime,string
prov:,used,Used,"The unique identifier of the prov:Entity that was used in the Activity (as indicated at @id in the Activity Class), http://www.w3.org/ns/prov#used",,,"['https://hdl.handle.net/20.5000.1025/XXX-XXX-XXX/1', 'https://doi.org/10.15468/1a2b3c/3']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Activity,True,False,prov:Activity.used,,used,prov:used,string
rdfs:,comment,Comment,"A comment about the activity, https://www.w3.org/2000/01/rdf-schema#comment",,,['This activity was created by the user'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Activity,False,False,prov:Activity.comment,http://www.w3.org/2000/01/rdf-schema#,http://www.w3.org/2000/01/rdf-schema#comment,rdfs:comment,string
Expand All @@ -12,6 +12,13 @@ prov:,Entity,Entity,"Based on the prov-ontology Entity Class, https://www.w3.org
prov:,value,Value,"The full object that is the result of the prov:Activity, the structure of this object is defined by the `@type` field. When the `prov:Activity` is of type `ods:Tombstone`, this field is empty",,,"[{'@id': 'https://hdl.handle.net/20.5000.1025/ABC-DEF-GHI', '@type': 'ods:Mapping', 'ods:ID': 'https://hdl.handle.net/20.5000.1025/ABC-DEF-GHI', 'ods:type': 'https://doi.org/10.15468/1a2b3c', 'schema:version': 1, 'schema:name': 'Default Mapping for Herbarium of University of Coimbra (COI)', 'schema:description': 'The default mapping for the Herbarium of the University of Coimbra (COI) to the Darwin Core standard.', 'schema:dateCreated': '2021-06-01T12:00:00Z', 'ods:creator': 'e2befba6-9324-4bb4-9f41-d7dfae4a44b0', 'ods:Mapping': {'ods:DefaultMapping': [{'ods:physicalSpecimenIdType': 'cetaf'}, {'ods:type': 'ZoologyVertebrateSpecimen'}, {'ods:organisationId': 'https://ror.org/05xg72x27'}], 'ods:FieldMapping': [{'ods:physicalSpecimenId': 'dwc:catalogNumber'}]}, 'ods:mappingDataStandard': 'dwc'}]",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Entity,False,False,prov:Entity.value,,value,prov:value,object
prov:,wasRevisionOf,Was Revision Of,"The unique identifier (handle) of the previous version of the object, only present when prov:Activity is of type ods:Update and ods:Tombstone",,,['https://hdl.handle.net/20.5000.1025/XXX-XXX-XXX/1'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Entity,False,False,prov:Entity.wasRevisionOf,,wasRevisionOf,prov:wasRevisionOf,string
prov:,wasGeneratedBy,Was Generated By,"The unique identifier of the prov:Activity that generated the Entity (as indicated at @id in the Activity Class), http://www.w3.org/ns/prov#wasGeneratedBy",,,"['7ba628d4-2e28-4ce4-ad1e-e99c97c20507', '807f145c-11a1-41f0-af34-b2d7c580bcc1']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Entity,True,False,prov:Entity.wasGeneratedBy,,wasGeneratedBy,prov:wasGeneratedBy,string
prov:,wasAttributedTo,Was Attributed To,"The unique identifier of the prov:Agent that was attributed to the Entity (as indicated at @id in the Agent Class), http://www.w3.org/ns/prov#wasAttributedTo",,,"['https://orcid.org/0000-0002-1825-0097', 'https://hdl.handle.net/20.5000.1025/XXX-XXX-XXX']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Entity,True,False,prov:Entity.wasAttributedTo,,wasAttributedTo,prov:wasAttributedTo,string
prov:,Agent,Agent,"Based on the prov-ontology Agent Class, https://www.w3.org/ns/prov#Agent",,,,http://www.w3.org/2000/01/rdf-schema#Class,CreateUpdateTombstoneEvent,False,False,CreateUpdateTombstoneEvent.Agent,,Agent,prov:Agent,object
foaf:,name,Name,The name of the agent,,,"['John Doe', 'GBIF Linker Service']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,True,False,prov:Agent.name,http://xmlns.com/foaf/0.1/,http://xmlns.com/foaf/0.1/name,foaf:name,string
ods:,hasProvAgent,Has Prov Agent,Contains zero or more prov:Agent objects,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,CreateUpdateTombstoneEvent,False,False,CreateUpdateTombstoneEvent.hasProvAgent,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/hasProvAgent,ods:hasProvAgent,array
ods:,Agent,Agent,Description of the agents connected to the digital object,,,,http://www.w3.org/2000/01/rdf-schema#Class,Agent,False,True,Agent,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/Agent,ods:Agent,
schema:,name,Name,Full name of the agent,,,['John Smith'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,True,False,Agent.name,http://schema.org/,http://schema.org/name,schema:name,string
schema:,roleName,Role Name,"Indicates the role of the agent, https://schema.org/roleName",,,"['collector', 'preparer', 'identifier', 'recorder']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.roleName,http://schema.org/,http://schema.org/roleName,schema:roleName,string
schema:,startDate,Start Date,Date the agent began the role,,,['2023-10-02T12:31:34.806Z'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.startDate,http://schema.org/,http://schema.org/startDate,schema:startDate,string
schema:,endDate,End Date,Date the agent ended the role,,,['2023-09-02T12:31:34.806Z'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.endDate,http://schema.org/,http://schema.org/endDate,schema:endDate,string
ods:,roleOrder,Role Order,Order of the agent in the role. Can be used to indicate the order of importance,,,"[1, 2]",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.roleOrder,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/roleOrder,ods:roleOrder,integer
schema:,email,Email,"Email of the agent, can be present in case the agent is a maintainer of a MAS",,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.email,http://schema.org/,http://schema.org/email,schema:email,string
schema:,url,Url,"URL of the agent, can be present in case the agent is a maintainer of a MAS",,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.url,http://schema.org/,http://schema.org/url,schema:url,string
ods:,hasIdentifier,Has Identifier,Contains zero or more ods:Identifier objects,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.hasIdentifier,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/hasIdentifier,ods:hasIdentifier,array
21 changes: 18 additions & 3 deletions app/data/opends/data-mapping-termlist.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,27 @@ namespace,term_local_name,label,definition,usage,notes,examples,rdf_type,class_n
ods:,Mapping,Mapping,"Mapping data model, used for data-mapping between different data models",,,,http://www.w3.org/2000/01/rdf-schema#Class,Mapping,True,True,Mapping,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/Mapping,ods:Mapping,
ods:,ID,Id,Handle of the Mapping,,,['https://hdl.handle.net/20.5000.1025/XXX-XXX-XXX'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,True,False,Mapping.ID,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/ID,ods:ID,string
ods:,type,Type,The DOI to the FDO type of the object,,,['https://doi.org/10.15468/1a2b3c'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,True,False,Mapping.type,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/type,ods:type,string
ods:,status,Status,The status of the Digital Object,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,False,False,Mapping.status,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/status,ods:status,
schema:,version,Version,"Version of the Mapping, https://schema.org/version",,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,True,False,Mapping.version,http://schema.org/,http://schema.org/version,schema:version,integer
schema:,name,Name,"Name of the Mapping as provided by the user, https://schema.org/name",,,['Default Mapping for Herbarium of University of Coimbra (COI)'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,False,False,Mapping.name,http://schema.org/,http://schema.org/name,schema:name,string
schema:,name,Name,"Name of the Mapping as provided by the user, https://schema.org/name",,,['Default Mapping for Herbarium of University of Coimbra (COI)'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,True,False,Mapping.name,http://schema.org/,http://schema.org/name,schema:name,string
schema:,description,Description,"Description of the Mapping as provided by the user, https://schema.org/description",,,['The default mapping for the Herbarium of the University of Coimbra (COI) to the Darwin Core standard.'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,False,False,Mapping.description,http://schema.org/,http://schema.org/description,schema:description,string
schema:,dateCreated,Date Created,"Timestamp of creation. Internally generated, https://schema.org/dateCreated",,,['2021-06-01T12:00:000Z'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,True,False,Mapping.dateCreated,http://schema.org/,http://schema.org/dateCreated,schema:dateCreated,string
ods:,dateTombstoned,Date Tombstoned,Timestamp Mapping was tombstoned and no longer active. Generated on request of the user,,,['2021-06-01T12:00:000Z'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,False,False,Mapping.dateTombstoned,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/dateTombstoned,ods:dateTombstoned,string
ods:,creator,Creator,The internal user ID of the creator of the Mapping,,,['e2befba6-9324-4bb4-9f41-d7dfae4a44b0'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,True,False,Mapping.creator,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/creator,ods:creator,string
schema:,creator,Creator,Contains an ods:Agent object,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,True,False,Mapping.creator,http://schema.org/,http://schema.org/creator,schema:creator,object
ods:,DefaultMapping,Default Mapping,"A mapping object setting default values for ods terms. These default mappings will be set for each record in the dataset. Key is the ods term, value the default value to use",,,"[[{'ods:physicalSpecimenIdType': 'cetaf'}, {'ods:type': 'ZoologyVertebrateSpecimen'}, {'ods:organisationId': 'https://ror.org/05xg72x27'}]]",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,False,False,Mapping.DefaultMapping,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/DefaultMapping,ods:DefaultMapping,array
ods:,FieldMapping,Field Mapping,"Setting an explicit mapping for an ods term to a term from the incoming dataset. Key is the ods term, value the incoming data standard term",,,[[{'ods:physicalSpecimenId': 'dwc:catalogNumber'}]],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,False,False,Mapping.FieldMapping,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/FieldMapping,ods:FieldMapping,array
ods:,mappingDataStandard,Mapping Data Standard,Type of data standard we are mapping to,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,True,False,Mapping.mappingDataStandard,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/mappingDataStandard,ods:mappingDataStandard,
ods:,TombstoneMetadata,Tombstone Metadata,Object containing the tombstone metadata of the object. Only present when ods:status is ods:Tombstone,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Mapping,False,False,Mapping.TombstoneMetadata,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/TombstoneMetadata,ods:TombstoneMetadata,object
ods:,TombstoneMetadata,Tombstone Metadata,The tombstone metadata about the tombstoned digital object,,,,http://www.w3.org/2000/01/rdf-schema#Class,TombstoneMetadata,False,True,TombstoneMetadata,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/TombstoneMetadata,ods:TombstoneMetadata,
ods:,tombstonedDate,Tombstoned Date,Timestamp the Digital Object was tombstoned and no longer active.,,,['2021-06-01T12:00:000Z'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,TombstoneMetadata,True,False,TombstoneMetadata.tombstonedDate,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/tombstonedDate,ods:tombstonedDate,string
ods:,tombstonedText,Tombstoned Text,A reason why the Digital Object was tombstoned,,,"['This is a duplicate of XXX', 'This object was made by mistake']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,TombstoneMetadata,True,False,TombstoneMetadata.tombstonedText,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/tombstonedText,ods:tombstonedText,string
ods:,TombstonedByAgent,Tombstoned By Agent,"The agent who tombstoned the object, contains an ods:Agent object",,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,TombstoneMetadata,True,False,TombstoneMetadata.TombstonedByAgent,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/TombstonedByAgent,ods:TombstonedByAgent,object
ods:,hasRelatedPID,Has Related Pid,The PIDs of the object the tombstoned object is related to,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,TombstoneMetadata,False,False,TombstoneMetadata.hasRelatedPID,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/hasRelatedPID,ods:hasRelatedPID,array
ods:,Agent,Agent,Description of the agents connected to the digital object,,,,http://www.w3.org/2000/01/rdf-schema#Class,Agent,False,True,Agent,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/Agent,ods:Agent,
schema:,name,Name,Full name of the agent,,,['John Smith'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.name,http://schema.org/,http://schema.org/name,schema:name,string
schema:,roleName,Role Name,"Indicates the role of the agent, https://schema.org/roleName",,,"['collector', 'preparer', 'identifier', 'recorder']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.roleName,http://schema.org/,http://schema.org/roleName,schema:roleName,string
schema:,startDate,Start Date,Date the agent began the role,,,['2023-10-02T12:31:34.806Z'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.startDate,http://schema.org/,http://schema.org/startDate,schema:startDate,string
schema:,endDate,End Date,Date the agent ended the role,,,['2023-09-02T12:31:34.806Z'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.endDate,http://schema.org/,http://schema.org/endDate,schema:endDate,string
ods:,roleOrder,Role Order,Order of the agent in the role. Can be used to indicate the order of importance,,,"[1, 2]",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.roleOrder,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/roleOrder,ods:roleOrder,integer
schema:,email,Email,"Email of the agent, can be present in case the agent is a maintainer of a MAS",,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.email,http://schema.org/,http://schema.org/email,schema:email,string
schema:,url,Url,"URL of the agent, can be present in case the agent is a maintainer of a MAS",,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.url,http://schema.org/,http://schema.org/url,schema:url,string
ods:,hasIdentifier,Has Identifier,Contains zero or more ods:Identifier objects,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Agent,False,False,Agent.hasIdentifier,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/hasIdentifier,ods:hasIdentifier,array
Loading

0 comments on commit 9cba486

Please sign in to comment.