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

added contributors and creators to examples (SAREF4ENVI)

parent 3edceb59
Loading
Loading
Loading
Loading
+75 −0
Original line number Diff line number Diff line
@@ -57,5 +57,80 @@ sarefsh:ExampleShape
    sh:pattern "https://forge.etsi.org/etsi-software-license" ;
    sh:severity sh:Violation ;
    sh:message "There shall be exactly one dcterms:license annotation, with value <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> should be blank nodes or IRIs"
  ] ;
  sh:property [
    sh:path dcterms:creator ;
    sh:severity sh:Warning ;
    sh:node sarefsh:PersonShape ;
    sh:message "Every creator should 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 0 ;
    sh:severity sh:Warning ;
    sh:message "The <http://purl.org/dc/terms/contributor> should be blank nodes or IRIs"
  ] ;
  sh:property [
    sh:path dcterms:contributor ;
    sh:severity sh:Warning ;
    sh:node sarefsh:PersonShape ;
    sh:message "Every contributor should be a <http://schema.org/Person> with <http://schema.org/givenName>, <http://schema.org/familyName>, and <http://schema.org/affiliation>"
  ] .

  
sarefsh:PersonShape
  a sh:NodeShape ;
  sh:targetClass schema:Person ;
  sh:severity sh:Warning ;
  sh:property [
    sh:path rdf:type ;
    sh:hasValue schema:Person ;
    sh:severity sh:Warning ;
    sh:message "Every contributor should be a <http://schema.org/Person>"
  ] ;
  sh:property [
    sh:path schema:givenName ;
    sh:minCount 1 ;
    sh:severity sh:Warning ;
    sh:message "Every contributor should have at least one <http://schema.org/givenName>"
  ] ;
  sh:property [
    sh:path schema:familyName ;
    sh:minCount 1 ;
    sh:severity sh:Warning ;
    sh:message "Every contributor should have at least one <http://schema.org/lastName>"
  ] ;
  sh:property [
    sh:path schema:affiliation ;
    sh:minCount 1 ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:node sarefsh:AffiliationShape ;
    sh:severity sh:Warning ;
    sh:message "Every contributor should have at least one <http://schema.org/affiliation>, that should be a blank node or a IRI of type <http://schema.org/Organization> with at least one <http://schema.org/name>"
  ] .
  
sarefsh:AffiliationShape
  a sh:NodeShape ;
  sh:targetClass schema:Organization ;
  sh:severity sh:Warning ;
  sh:property [
    sh:path rdf:type ;
    sh:hasValue schema:Organization ;
    sh:severity sh:Warning ;
    sh:message "The affiliation of each contributor should be a <http://schema.org/Organization>"
  ] ;
  sh:property [
    sh:path schema:name ;
    sh:minCount 1 ;
    sh:severity sh:Warning ;
    sh:message "The affiliation of each contributor should have at least one <http://schema.org/name>"
  ] .
  
 No newline at end of file