From ba77dea513a3b8aae7390795d6324b22480b35c6 Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Mon, 20 Nov 2023 17:18:38 -0500 Subject: [PATCH] Add test that sh:datatype does not reference an OWL Class 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: * https://github.com/ucoProject/UCO/issues/562 * https://github.com/ucoProject/UCO/pull/564/commits/77cd47d3e13bce2a6278b8416152b08f5a5d0c32 Signed-off-by: Alex Nelson --- ontology/owl/owl.ttl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ontology/owl/owl.ttl b/ontology/owl/owl.ttl index dd464601..be0f59e2 100644 --- a/ontology/owl/owl.ttl +++ b/ontology/owl/owl.ttl @@ -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 ;