Skip to content

Commit

Permalink
Add zeroOrMorePath, oneOrMorePath, zeroOrOnePath SHACL. Convert prope…
Browse files Browse the repository at this point in the history
…rty selection to UNION queries.
  • Loading branch information
recalcitrantsupplant committed Sep 23, 2024
1 parent 9f045d5 commit ed17101
Show file tree
Hide file tree
Showing 11 changed files with 403 additions and 251 deletions.
7 changes: 3 additions & 4 deletions prez/reference_data/endpoints/endpoint_nodeshapes.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ ex:Catalogs
sh:property [
sh:path dcterms:hasPart ;
sh:or (
[ sh:class dcat:Resource ]
[ sh:class skos:ConceptScheme ]
[ sh:class skos:Collection ]
[ sh:class dcat:Dataset ]
Expand All @@ -29,7 +28,7 @@ ex:Catalogs
ex:Collections
a sh:NodeShape ;
ont:hierarchyLevel 2 ;
sh:targetClass skos:ConceptScheme , skos:Collection , dcat:Resource , dcat:Dataset ;
sh:targetClass skos:ConceptScheme , skos:Collection , dcat:Dataset ;
sh:property [
sh:path [ sh:inversePath dcterms:hasPart ] ;
sh:class dcat:Catalog ;
Expand Down Expand Up @@ -63,10 +62,10 @@ ex:CollectionConcept
ex:Resource
a sh:NodeShape ;
ont:hierarchyLevel 3 ;
sh:targetClass rdf:Resource ;
sh:targetClass geo:FeatureCollection ;
sh:property [
sh:path [ sh:inversePath dcterms:hasPart ] ;
sh:class dcat:Resource ;
sh:class dcat:Dataset ;
] , [
sh:path ( [ sh:inversePath dcterms:hasPart ] [ sh:inversePath dcterms:hasPart ] );
sh:class dcat:Catalog ;
Expand Down
39 changes: 12 additions & 27 deletions prez/reference_data/profiles/ogc_records_profile.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,7 @@ prez:OGCItemProfile
],
[
sh:maxCount 0 ;
sh:path
(
sh:union (
dcterms:hasPart
rdfs:member
)
)
sh:path dcterms:hasPart , rdfs:member ;
] ;
shext:bnode-depth 2 ;
altr-ext:constrainsClass
Expand Down Expand Up @@ -143,26 +137,17 @@ prez:OGCSchemesListProfile
"text/turtle" ;
altr-ext:hasDefaultResourceFormat "text/anot+turtle" ;
altr-ext:constrainsClass skos:ConceptScheme ;
sh:property
[
sh:minCount 0 ;
sh:path dcterms:publisher ;
],
[
sh:minCount 0 ;
sh:path reg:status ;
],
[
sh:minCount 0 ;
sh:path ( prov:qualifiedDerivation prov:hadRole ) ;
],
[
sh:minCount 0 ;
sh:path ( prov:qualifiedDerivation prov:entity ) ;
],
[
sh:path rdf:type
]
sh:property [
sh:path (
sh:union (
rdf:type
dcterms:publisher
reg:status
( prov:qualifiedDerivation prov:hadRole )
( prov:qualifiedDerivation prov:entity )
)
)
] ;
.


Expand Down
Loading

0 comments on commit ed17101

Please sign in to comment.