Skip to content

Commit

Permalink
Add test that sh:datatype does not reference an OWL Class
Browse files Browse the repository at this point in the history
This test is spelled as a "Negative" constraint to avoid attempting to
hard-code a list of the recognized OWL "built-in" datatypes alongside
custom RDFS datatypes (such as UCO's vocabulary namespace members).

The anonymous node shape design pattern is documented in PR 564, commit
77cd47d.

This patch is known to fail CI at the moment because it catches the
error described in 562, but does not resolve that situation.  This patch
is provided now to prevent this implementation error pattern from
arising in the future.

References:
* #562
* 77cd47d

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Nov 20, 2023
1 parent e4605c8 commit ba77dea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ontology/owl/owl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,18 @@ uco-owl:ontologyIRI-versionIRI-prerequisite-shape
sh:targetSubjectsOf owl:versionIRI ;
.

uco-owl:sh-datatype-objects-shape
a sh:NodeShape ;
sh:node [
a sh:NodeShape ;
sh:not [
a sh:NodeShape ;
sh:class owl:Class ;
] ;
] ;
sh:targetObjectsOf sh:datatype ;
.

uco-owl:versionIRI-multiversion-shape
a sh:PropertyShape ;
rdfs:seeAlso <https://www.w3.org/TR/owl2-syntax/#Imports> ;
Expand Down

0 comments on commit ba77dea

Please sign in to comment.