Skip to content

Commit

Permalink
Merge pull request #6 from DiSSCo/feature/latest-changes
Browse files Browse the repository at this point in the history
Latest data model changes and some small improvements
  • Loading branch information
samleeflang authored Sep 3, 2024
2 parents 21fbe5c + 63af5a0 commit d758175
Show file tree
Hide file tree
Showing 39 changed files with 129 additions and 107 deletions.
25 changes: 14 additions & 11 deletions app/data/opends/annotation-termlist.csv
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@ rdf:,type,Type,The type of the annotation. It is always ods:Annotation. https://
ods:,version,Version,"The version of the object, each change generates a new version",,,[1],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,True,False,Annotation.version,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/version,ods:version,integer
oa:,motivation,Motivation,The motivation for the annotation. Based on a selection of https://www.w3.org/TR/annotation-model/#motivation-and-purpose. The motivation ods:adding is added for DiSSCo's purposes.,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,True,False,Annotation.motivation,http://www.w3.org/ns/oa#,http://www.w3.org/ns/oa#motivation,oa:motivation,
oa:,motivatedBy,Motivated By,Describes the reason for the annotation. https://www.w3.org/TR/annotation-vocab/#motivatedby,,,['The country is incorrect'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,False,False,Annotation.motivatedBy,http://www.w3.org/ns/oa#,http://www.w3.org/ns/oa#motivatedBy,oa:motivatedBy,string
oa:,hasTarget,Has Target,Indicates the particular object and part of the object on which the annotation has been made.,,,,http://www.w3.org/2000/01/rdf-schema#Class,Annotation,True,False,Annotation.hasTarget,http://www.w3.org/ns/oa#,http://www.w3.org/ns/oa#hasTarget,oa:hasTarget,object
ods:,ID,Id,"This is the PID of the target object. Valid targets are the Digital Specimen, Digital Media Object or another annotation.",,,"['https://hdl.handle.net/20.5000.1025/XXX-XXX-XXX', 'https://doi.org/10.22/XXX-XXX-XXX']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,hasTarget,False,False,oa:hasTarget.ID,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/ID,ods:ID,string
ods:,type,Type,This is the handle to the type of the target object.,,,"['https://doi.org/21.T11148/bbad8c4e101e8af01115', 'https://doi.org/21.T11148/894b1e6cad57e921764e']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,hasTarget,True,False,oa:hasTarget.type,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/type,ods:type,string
oa:,hasSelector,Has Selector,"Optional field to indicate the part of the target object that is being annotated. It can be a field, a class or a region of interest.",,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,hasTarget,False,False,oa:hasTarget.hasSelector,http://www.w3.org/ns/oa#,http://www.w3.org/ns/oa#hasSelector,oa:hasSelector,object
oa:,hasBody,Has Body,The body of the annotation contains the specific value of the annotation,,,,http://www.w3.org/2000/01/rdf-schema#Class,Annotation,False,False,Annotation.hasBody,http://www.w3.org/ns/oa#,http://www.w3.org/ns/oa#hasBody,oa:hasBody,object
oa:,value,Value,An array of multiple values in string representation specific for the particular selector,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,hasBody,True,False,oa:hasBody.value,http://www.w3.org/ns/oa#,http://www.w3.org/ns/oa#value,oa:value,array
dcterms:,references,References,Indicates how the value came to be. https://purl.org/dc/terms/references,,,['https://api.gbif.org/v1/occurrence/search?occurrenceID=https://herbarium.bgbm.org/object/BW00965020&catalogNumber=B -W 00965 -02 0&basisOfRecord=PreservedSpecimen'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,hasBody,False,False,oa:hasBody.references,http://purl.org/dc/terms/,http://purl.org/dc/terms/references,dcterms:references,string
ods:,score,Score,A score between 0 and 1 indicating the confidence in the value. 1 is the highest confidence and 0 is the lowest.,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,hasBody,False,False,oa:hasBody.score,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/score,ods:score,number
oa:,hasTarget,Has Target,Indicates the particular object and part of the object on which the annotation has been made.,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,True,False,Annotation.hasTarget,http://www.w3.org/ns/oa#,http://www.w3.org/ns/oa#hasTarget,oa:hasTarget,object
oa:,hasBody,Has Body,The body of the annotation contains the specific value of the annotation,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,True,False,Annotation.hasBody,http://www.w3.org/ns/oa#,http://www.w3.org/ns/oa#hasBody,oa:hasBody,object
dcterms:,creator,Creator,Contains an ods:Agent object,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,True,False,Annotation.creator,http://purl.org/dc/terms/,http://purl.org/dc/terms/creator,dcterms:creator,object
dcterms:,created,Created,The date and time when the annotation was created. https://purl.org/dc/terms/created,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,True,False,Annotation.created,http://purl.org/dc/terms/,http://purl.org/dc/terms/created,dcterms:created,string
dcterms:,modified,Modified,"The date and time when the annotation was last modified, generating a new version. https://purl.org/dc/terms/modified",,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,True,False,Annotation.modified,http://purl.org/dc/terms/,http://purl.org/dc/terms/modified,dcterms:modified,string
Expand All @@ -24,21 +18,30 @@ schema:,AggregateRating,Aggregate Rating,The average rating based on multiple ra
schema:,ratingCount,Rating Count,The count of total number of ratings. https://schema.org/ratingCount,,,[3],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,AggregateRating,True,False,schema:AggregateRating.ratingCount,http://schema.org/,http://schema.org/ratingCount,schema:ratingCount,integer
schema:,ratingValue,Rating Value,The rating for the content. https://schema.org/ratingValue,,,[4.5],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,AggregateRating,True,False,schema:AggregateRating.ratingValue,http://schema.org/,http://schema.org/ratingValue,schema:ratingValue,number
ods:,batchID,Batch Id,Internally generated PID to identify the batch the annotation was generated by,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,False,False,Annotation.batchID,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/batchID,ods:batchID,string
ods:,placeInBatch,Place In Batch,"For batching only. Links annotation to batchMetadata provided in a batch event. If present, must correspond to an ods:placeInBatch in the batch metadata",,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,False,False,Annotation.placeInBatch,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/placeInBatch,ods:placeInBatch,integer
ods:,mergingDecisionStatus,Merging Decision Status,The merging status of the annotation. Only present when motivation is ods:adding or oa:editing,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,False,False,Annotation.mergingDecisionStatus,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/mergingDecisionStatus,ods:mergingDecisionStatus,
ods:,mergingStateChangeDate,Merging State Change Date,The date and time when the annotation was merging state was changed. Only present when motivation is ods:adding or oa:editing,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,False,False,Annotation.mergingStateChangeDate,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/mergingStateChangeDate,ods:mergingStateChangeDate,string
ods:,MergingStateChangedBy,Merging State Changed By,Object containing information on who changed the merging state of the annotation. Only present when motivation is ods:adding or oa:editing. Contains an ods:Agent object.,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,Annotation,False,False,Annotation.MergingStateChangedBy,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/MergingStateChangedBy,ods:MergingStateChangedBy,object
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,Annotation,False,False,Annotation.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:,tombstoneDate,Tombstone 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.tombstoneDate,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/tombstoneDate,ods:tombstoneDate,string
ods:,tombstoneText,Tombstone 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.tombstoneText,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/tombstoneText,ods:tombstoneText,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,True,False,Agent.name,http://schema.org/,http://schema.org/name,schema:name,string
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
ods:,AnnotationTarget,Annotation Target,Description of the target of the annotation,,,,http://www.w3.org/2000/01/rdf-schema#Class,AnnotationTarget,True,True,AnnotationTarget,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/AnnotationTarget,ods:AnnotationTarget,
ods:,ID,Id,"This is the PID of the target object. Valid targets are the Digital Specimen, Digital Media Object or another annotation.",,,"['https://hdl.handle.net/20.5000.1025/XXX-XXX-XXX', 'https://doi.org/10.22/XXX-XXX-XXX']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,AnnotationTarget,False,False,AnnotationTarget.ID,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/ID,ods:ID,string
ods:,type,Type,This is the handle to the type of the target object.,,,"['https://doi.org/21.T11148/bbad8c4e101e8af01115', 'https://doi.org/21.T11148/894b1e6cad57e921764e']",http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,AnnotationTarget,True,False,AnnotationTarget.type,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/type,ods:type,string
oa:,hasSelector,Has Selector,"Optional field to indicate the part of the target object that is being annotated. It can be a field, a class or a region of interest.",,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,AnnotationTarget,False,False,AnnotationTarget.hasSelector,http://www.w3.org/ns/oa#,http://www.w3.org/ns/oa#hasSelector,oa:hasSelector,object
ods:,AnnotationBody,Annotation Body,Description of the body of the annotation,,,,http://www.w3.org/2000/01/rdf-schema#Class,AnnotationBody,True,True,AnnotationBody,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/AnnotationBody,ods:AnnotationBody,
oa:,value,Value,An array of multiple values in string representation specific for the particular selector,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,AnnotationBody,True,False,AnnotationBody.value,http://www.w3.org/ns/oa#,http://www.w3.org/ns/oa#value,oa:value,array
dcterms:,references,References,Indicates how the value came to be. https://purl.org/dc/terms/references,,,['https://api.gbif.org/v1/occurrence/search?occurrenceID=https://herbarium.bgbm.org/object/BW00965020&catalogNumber=B -W 00965 -02 0&basisOfRecord=PreservedSpecimen'],http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,AnnotationBody,False,False,AnnotationBody.references,http://purl.org/dc/terms/,http://purl.org/dc/terms/references,dcterms:references,string
ods:,score,Score,A score between 0 and 1 indicating the confidence in the value. 1 is the highest confidence and 0 is the lowest.,,,,http://www.w3.org/1999/02/22-rdf-syntax-ns#Property,AnnotationBody,False,False,AnnotationBody.score,http://rs.dissco.eu/opends/terms/,http://rs.dissco.eu/opends/terms/score,ods:score,number
Loading

0 comments on commit d758175

Please sign in to comment.