@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix schema: <http://schema.org/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix prof: <http://www.w3.org/ns/dx/prof/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix agv: <https://www.arianne-g-voyance.fr/research-data/profils-ro-crate/agv-independent-research/1.0/#> .

agv:ProfileGuard a sh:NodeShape ;
  sh:targetSubjectsOf dct:conformsTo ;
  sh:or ( [ sh:not [ sh:property [ sh:path dct:conformsTo ; sh:hasValue <https://www.arianne-g-voyance.fr/research-data/profils-ro-crate/agv-independent-research/1.0/> ] ] ] agv:RootShape ) .

agv:RootShape a sh:NodeShape ;
  sh:description "AGV-RC-02, AGV-RC-03, AGV-RC-04, AGV-RC-05 et AGV-RC-06 : contraintes RDF du paquet."@fr ;
  sh:class schema:Dataset ;
  sh:property [ sh:path schema:name ; sh:minCount 1 ; sh:minLength 1 ] ;
  sh:property [ sh:path schema:description ; sh:minCount 1 ; sh:minLength 1 ] ;
  sh:property [ sh:path schema:identifier ; sh:minCount 1 ; sh:minLength 1 ] ;
  sh:property [ sh:path schema:version ; sh:minCount 1 ; sh:pattern "^[0-9]+[.][0-9]+[.][0-9]+$" ] ;
  sh:property [ sh:path schema:datePublished ; sh:minCount 1 ; sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}$" ] ;
  sh:property [ sh:path schema:inLanguage ; sh:minCount 1 ] ;
  sh:property [ sh:path dct:conformsTo ; sh:hasValue <https://www.arianne-g-voyance.fr/research-data/profils-ro-crate/agv-independent-research/1.0/> ] ;
  sh:property [ sh:path schema:author ; sh:minCount 1 ; sh:node agv:AgentShape ] ;
  sh:property [ sh:path schema:publisher ; sh:minCount 1 ; sh:node agv:AgentShape ] ;
  sh:property [ sh:path schema:license ; sh:minCount 1 ; sh:nodeKind sh:IRI ; sh:node agv:LicenseShape ] ;
  sh:property [ sh:path schema:hasPart ; sh:minCount 1 ; sh:node agv:FileShape ] .

agv:AgentShape a sh:NodeShape ;
  sh:or ( [ sh:class schema:Person ] [ sh:class schema:Organization ] ) ;
  sh:property [ sh:path schema:name ; sh:minCount 1 ; sh:minLength 1 ] .

agv:LicenseShape a sh:NodeShape ; sh:class schema:CreativeWork ;
  sh:property [ sh:path schema:name ; sh:minCount 1 ; sh:minLength 1 ] .

agv:FileShape a sh:NodeShape ; sh:class schema:MediaObject ;
  sh:property [ sh:path schema:name ; sh:minCount 1 ; sh:minLength 1 ] ;
  sh:property [ sh:path schema:encodingFormat ; sh:minCount 1 ] .
