Skip to content

Commit

Permalink
Merge pull request #58 from viaacode/kg-266-duration-datecreated-thum…
Browse files Browse the repository at this point in the history
…bnail-language-updates

KG-266 Update schema:duration, schema:datecreated and schema:thumbnailURL
  • Loading branch information
mielvds authored Jan 17, 2024
2 parents 4f09a76 + 3419d91 commit 9890b1f
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 34 deletions.
80 changes: 46 additions & 34 deletions description/description.shacl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@
a sh:PropertyShape ;
sh:path schema:dateCreated ;
sh:nodeKind sh:Literal ;
sh:datatype edtf:EDTF-level1 ;
sh:or (
[ sh:datatype edtf:EDTF-level0 ]
[ sh:datatype edtf:EDTF-level1 ]
[ sh:datatype edtf:EDTF-level2 ]
);
sh:minCount 1 ;
sh:maxCount 1 ;
sh:name "date created"@en ;
Expand All @@ -118,7 +122,11 @@
a sh:PropertyShape ;
sh:path schema:datePublished ;
sh:nodeKind sh:Literal ;
sh:datatype edtf:EDTF-level1 ;
sh:or (
[ sh:datatype edtf:EDTF-level0 ]
[ sh:datatype edtf:EDTF-level1 ]
[ sh:datatype edtf:EDTF-level2 ]
);
sh:maxCount 1;
sh:name "date published"@en ;
sh:name "gepubliceerd op"@nl ;
Expand Down Expand Up @@ -611,11 +619,46 @@
sh:message "ebucore:hasMediaFragment is geen ebucore:MediaFragment"@nl ;
sh:message "ebucore:hasMediaFragment n'est pas un ebucore:MediaFragment"@fr ;
sh:severity sh:Violation ;
],
[
a sh:PropertyShape ;
sh:path schema:dateCreated ;
sh:nodeKind sh:Literal ;
sh:or (
[ sh:datatype edtf:EDTF-level0 ]
[ sh:datatype edtf:EDTF-level1 ]
[ sh:datatype edtf:EDTF-level2 ]
);
sh:minCount 1 ;
sh:maxCount 1 ;
sh:name "date created"@en ;
sh:name "aangemaakt op"@nl ;
sh:name "créé le"@fr ;
sh:severity sh:Violation ;
sh:message "schema:dateCreated is not of type EDTF-level1"@en ;
sh:message "schema:dateCreated is niet van het type EDTF-level1"@nl ;
sh:message "schema:dateCreated n'est pas de type EDTF-level1"@fr ;
],
[
a sh:PropertyShape ;
sh:path schema:thumbnailUrl ;
sh:nodeKind sh:IRI ;
sh:maxCount 1 ;
sh:name "thumbnail"@en ;
sh:name "miniatuurafbeelding"@nl ;
sh:name "image miniature"@fr ;
sh:severity sh:Violation ;
sh:description "A thumbnail image relevant to the Digital Representation."@en;
sh:description "Une image miniature pertinente pour la représentation numérique."@fr;
sh:description "Een miniatuurafbeelding die relevant is voor de digitale weergave."@nl;
sh:message "schema:thumbnailUrl is not an IRI"@en ;
sh:message "schema:thumbnailUrl is geen IRI"@nl ;
sh:message "schema:thumbnailUrl n'est pas un IRI"@fr ;
].

<#DigitalRepresentationNodeShape> a sh:NodeShape ;
sh:targetClass haObj:DigitalRepresentation ;
sh:property <#IdentifierShape>, <#NameShape>, <#DescriptionShape>, <#DurationShape>,
sh:property <#IdentifierShape>, <#NameShape>, <#DescriptionShape>,
[
a sh:PropertyShape ;
sh:path schema:transcript ;
Expand Down Expand Up @@ -658,37 +701,6 @@
sh:message "schema:caption is niet van het type string"@nl ;
sh:message "schema:caption n'est pas de type string"@fr ;
],
[
a sh:PropertyShape ;
sh:path schema:thumbnailUrl ;
sh:nodeKind sh:IRI ;
sh:maxCount 1 ;
sh:name "thumbnail"@en ;
sh:name "miniatuurafbeelding"@nl ;
sh:name "image miniature"@fr ;
sh:severity sh:Violation ;
sh:description "A thumbnail image relevant to the Digital Representation."@en;
sh:description "Une image miniature pertinente pour la représentation numérique."@fr;
sh:description "Een miniatuurafbeelding die relevant is voor de digitale weergave."@nl;
sh:message "schema:thumbnailUrl is not an IRI"@en ;
sh:message "schema:thumbnailUrl is geen IRI"@nl ;
sh:message "schema:thumbnailUrl n'est pas un IRI"@fr ;
],
[
a sh:PropertyShape ;
sh:path schema:dateCreated ;
sh:nodeKind sh:Literal ;
sh:datatype edtf:EDTF-level1 ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:name "date created"@en ;
sh:name "aangemaakt op"@nl ;
sh:name "créé le"@fr ;
sh:severity sh:Violation ;
sh:message "schema:dateCreated is not of type EDTF-level1"@en ;
sh:message "schema:dateCreated is niet van het type EDTF-level1"@nl ;
sh:message "schema:dateCreated n'est pas de type EDTF-level1"@fr ;
],
[
a sh:PropertyShape ;
sh:path schema:creator ;
Expand Down
14 changes: 14 additions & 0 deletions objects/objects.shacl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,20 @@
sh:message "schema:endTime is niet van het type xsd:time"@nl ;
sh:message "schema:endTime n'est pas de type xsd:time"@fr
] ,
[
a sh:PropertyShape ;
sh:path schema:duration ;
sh:nodeKind sh:Literal ;
sh:datatype xsd:duration ;
sh:maxCount 1 ;
sh:name "duration"@en ;
sh:name "duur"@nl ;
sh:name "durée"@fr ;
sh:severity sh:Violation ;
sh:message "schema:duration is not of type xsd:dateTime"@en ;
sh:message "schema:duration is niet van het type xsd:dateTime"@nl ;
sh:message "schema:duration n'est pas de type xsd:dateTime"@fr
] ,
[
sh:path ebucore:isMediaFragmentOf ;
sh:class premis:File ;
Expand Down

0 comments on commit 9890b1f

Please sign in to comment.