Commit 748e7c1c authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

updated some conditions

parent ce30ef66
......@@ -49,7 +49,7 @@ sarefsh:OntologyShape
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "The ontology should have exactly one <http://purl.org/dc/terms/title>. No documentation will be generated"
sh:message "The ontology should have exactly one <http://purl.org/dc/terms/title>."
] ;
sh:property [
sh:path dcterms:abstract ;
......@@ -75,10 +75,8 @@ sarefsh:OntologyShape
sh:property [
sh:path dcterms:issued ;
sh:datatype xsd:date ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minCount 0 ;
sh:severity sh:Warning ;
sh:message "The ontology shall have exactly one <http://purl.org/dc/terms/issued> annotation, which shall be a valid xsd:date literal YYYY-MM-DD."
] ;
sh:property [
sh:path dcterms:modified ;
......@@ -90,32 +88,35 @@ sarefsh:OntologyShape
sh:property [
sh:path dcterms:source ;
sh:minCount 0 ;
sh:maxCount 1 ;
sh:pattern "^http://www.etsi.org/deliver/etsi_ts/" ;
sh:severity sh:Warning ;
sh:message "There shall be exactly one annotation <http://purl.org/dc/terms/source> that points to the ETSI Technical Specification URL `http://www.etsi.org/deliver/etsi_ts/...`."
] ;
sh:property [
sh:path dcterms:creator ;
sh:maxCount 0 ;
sh:severity sh:Violation ;
sh:message "The ontology shall have no <http://purl.org/dc/terms/creator> annotation."
] ;
sh:property [
sh:path dcterms:license ;
sh:nodeKind sh:IRI ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:pattern "https://forge.etsi.org/etsi-software-license" ;
sh:severity sh:Violation ;
sh:message "There shall be exactly one annotation <http://purl.org/dc/terms/license> <https://forge.etsi.org/etsi-software-license>."
sh:message "There shall be at least one annotation <http://purl.org/dc/terms/license> <https://forge.etsi.org/etsi-software-license>."
] ;
sh:property [
sh:path dcterms:creator ;
sh:nodeKind sh:BlankNodeOrIRI ;
sh:minCount 0 ;
sh:severity sh:Warning ;
sh:message "The <http://purl.org/dc/terms/creator> shall be blank nodes or IRIs."
] ;
sh:property [
sh:path dcterms:creator ;
sh:severity sh:Warning ;
sh:node sarefsh:PersonShape ;
sh:message "Every creator shall be a <http://schema.org/Person> with <http://schema.org/givenName>, <http://schema.org/familyName>, and <http://schema.org/affiliation>."
] ;
sh:property [
sh:path dcterms:contributor ;
sh:nodeKind sh:BlankNodeOrIRI ;
sh:minCount 1 ;
sh:minCount 0 ;
sh:severity sh:Warning ;
sh:message "There shall be at least one <http://purl.org/dc/terms/contributor>, that shall be a blank node or a IRI."
sh:message "The <http://purl.org/dc/terms/contributor> shall be blank nodes or IRIs."
] ;
sh:property [
sh:path dcterms:contributor ;
......@@ -155,16 +156,14 @@ sarefsh:PersonShape
sh:property [
sh:path schema:givenName ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "Each contributor shall have exactly one <http://schema.org/givenName>."
sh:message "Each contributor shall have at least one <http://schema.org/givenName>."
] ;
sh:property [
sh:path schema:familyName ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "Each contributor shall have exactly one <http://schema.org/lastName>."
sh:message "Each contributor shall have at least one <http://schema.org/lastName>."
] ;
sh:property [
sh:path schema:affiliation ;
......@@ -172,7 +171,7 @@ sarefsh:PersonShape
sh:nodeKind sh:BlankNodeOrIRI ;
sh:node sarefsh:AffiliationShape ;
sh:severity sh:Warning ;
sh:message "Each contributor shall have at least one <http://schema.org/affiliation>, that shall be a blank node or a IRI of type <http://schema.org/Organization> with exactly one <http://schema.org/name>."
sh:message "Each contributor shall have at least one <http://schema.org/affiliation>, that shall be a blank node or a IRI of type <http://schema.org/Organization> with at least one <http://schema.org/name>."
] .
sarefsh:AffiliationShape
......@@ -188,14 +187,13 @@ sarefsh:AffiliationShape
sh:property [
sh:path schema:name ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "The affiliation of each contributor shall have exactly one <http://schema.org/name>."
sh:message "The affiliation of each contributor shall have at least one <http://schema.org/name>."
] .
[] a sh:NodeShape ;
sh:targetClass owl:Class ;
sh:message "The owl:Class should have exactly one rdfs:label and one rdfs:comment" ;
sh:message "The owl:Class should have at least one rdfs:label and one rdfs:comment" ;
sh:severity sh:Warning ;
sh:or (
[ sh:nodeKind sh:BlankNode ]
......@@ -205,24 +203,22 @@ sarefsh:AffiliationShape
sh:path rdfs:label ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "The term should have exactly one rdfs:label."
sh:message "The term should have at least one rdfs:label."
]
[
sh:path rdfs:comment ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "The term should have exactly one rdfs:comment."
sh:message "The term should have at least one rdfs:comment."
]
)
]
) .
[] a sh:NodeShape ;
sh:targetClass owl:ObjectProperty ;
sh:message "The owl:ObjectProperty should have exactly one rdfs:label and one rdfs:comment" ;
sh:message "The owl:ObjectProperty should have at least one rdfs:label and one rdfs:comment" ;
sh:severity sh:Warning ;
sh:or (
[ sh:nodeKind sh:BlankNode ]
......@@ -232,24 +228,22 @@ sarefsh:AffiliationShape
sh:path rdfs:label ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "The term should have exactly one rdfs:label."
sh:message "The term should have at least one rdfs:label."
]
[
sh:path rdfs:comment ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "The term should have exactly one rdfs:comment."
sh:message "The term should have at least one rdfs:comment."
]
)
]
) .
[] a sh:NodeShape ;
sh:targetClass owl:DatatypeProperty ;
sh:message "The owl:DatatypeProperty should have exactly one rdfs:label and one rdfs:comment" ;
sh:message "The owl:DatatypeProperty should have at least one rdfs:label and one rdfs:comment" ;
sh:severity sh:Warning ;
sh:or (
[ sh:nodeKind sh:BlankNode ]
......@@ -259,24 +253,22 @@ sarefsh:AffiliationShape
sh:path rdfs:label ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "The term should have exactly one rdfs:label."
sh:message "The term should have at least one rdfs:label."
]
[
sh:path rdfs:comment ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "The term should have exactly one rdfs:comment."
sh:message "The term should have at least one rdfs:comment."
]
)
]
) .
[] a sh:NodeShape ;
sh:targetClass owl:NamedIndividual ;
sh:message "The owl:NamedIndividual should have exactly one rdfs:label and one rdfs:comment" ;
sh:message "The owl:NamedIndividual should have at least one rdfs:label and one rdfs:comment" ;
sh:severity sh:Warning ;
sh:or (
[ sh:nodeKind sh:BlankNode ]
......@@ -286,17 +278,15 @@ sarefsh:AffiliationShape
sh:path rdfs:label ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "The term should have exactly one rdfs:label."
sh:message "The term should have at least one rdfs:label."
]
[
sh:path rdfs:comment ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "The term should have exactly one rdfs:comment."
sh:message "The term should have at least one rdfs:comment."
]
)
]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment