-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UCO OWL review of RDF List was scoped too broadly #571
Closed
15 tasks done
Labels
Milestone
Comments
ajnelson-nist
added a commit
that referenced
this issue
Dec 5, 2023
A follow-on patch will regenerate Make-managed files. References: * #571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
13 tasks
ajnelson-nist
added a commit
that referenced
this issue
Dec 5, 2023
References: * #571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
13 tasks
ajnelson-nist
added a commit
to casework/CASE-Archive
that referenced
this issue
Dec 5, 2023
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Archive
that referenced
this issue
Dec 5, 2023
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/casework.github.io
that referenced
this issue
Dec 5, 2023
A follow-on patch will regenerate Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/casework.github.io
that referenced
this issue
Dec 5, 2023
References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Examples
that referenced
this issue
Dec 5, 2023
No effects were observed on Make-managed files. References: * ucoProject/UCO#563 * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
that referenced
this issue
Dec 5, 2023
This causes `ValidationResult`s to yield sufficient information to find the whole triple that should have used a sequence. With the prior spelling, only the object of the triple would have been directly identified; the predicate could be manually deduced from the shape name; and the subject was completely absent from the validation result. The noted comment on PR 572 illustrates the difference in results when testing CASE-Corpora. The issue is replicated as new PASS and XFAIL test members. A follow-on patch will regenerate Make-managed files. References: * #571 * #572 (comment) Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
that referenced
this issue
Dec 5, 2023
References: * #571 * #572 (comment) Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Archive
that referenced
this issue
Dec 5, 2023
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Archive
that referenced
this issue
Dec 5, 2023
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Corpora
that referenced
this issue
Dec 5, 2023
The shape updates from UCO Issue 571 brought to light that owl:hasKey only takes sequences as objects. No effects were observed on Make-managed files. References: * ucoProject/UCO#571 * https://www.w3.org/TR/2012/REC-owl2-mapping-to-rdf-20121211/ Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Corpora
that referenced
this issue
Dec 5, 2023
No effects were observed on Make-managed files. References: * ucoProject/UCO#563 * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Corpora
that referenced
this issue
Dec 5, 2023
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/casework.github.io
that referenced
this issue
Dec 5, 2023
A follow-on patch will regenerate Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/casework.github.io
that referenced
this issue
Dec 5, 2023
References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Examples
that referenced
this issue
Dec 5, 2023
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
Update: This proposal initially included several shapes using |
ajnelson-nist
added a commit
to ucoProject/ucoproject.github.io
that referenced
this issue
Jan 19, 2024
References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Archive
that referenced
this issue
Jan 19, 2024
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Archive
that referenced
this issue
Jan 19, 2024
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE
that referenced
this issue
Jan 19, 2024
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Corpora
that referenced
this issue
Jan 19, 2024
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Examples
that referenced
this issue
Jan 19, 2024
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/casework.github.io
that referenced
this issue
Jan 19, 2024
A follow-on patch will regenerate Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE
that referenced
this issue
Jan 22, 2024
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/casework.github.io
that referenced
this issue
Jan 22, 2024
A follow-on patch will regenerate Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/casework.github.io
that referenced
this issue
Jan 22, 2024
References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Examples
that referenced
this issue
Jan 22, 2024
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Corpora
that referenced
this issue
Jan 22, 2024
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/casework.github.io
that referenced
this issue
Jan 23, 2024
A follow-on patch will regenerate Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/casework.github.io
that referenced
this issue
Jan 23, 2024
References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/casework.github.io
that referenced
this issue
Jan 23, 2024
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Examples
that referenced
this issue
Jan 24, 2024
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Corpora
that referenced
this issue
Jan 24, 2024
No effects were observed on Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to casework/CASE-Utilities-Python
that referenced
this issue
Jan 24, 2024
Adoption of CASE 1.3.0 happens to address `case-utils` Issue 142, because UCO Issue 571 deactivated `uco-owl:List-shape`. This patch considers some of the OWL shapes as applicable in ABox review. * `uco-owl:distinctMembers-subjects-shape` and `uco-owl:members-subjects-shape` can be used in `owl:AllDifferent` to specify that some IRIs in the graph truly do not pertain to the same individual. * `uco-owl:rdf-first-subjects-shape` and `uco-owl:rdf-rest-subjects-shape` serve as an RDF-wide syntax reviewer on `rdf:List`, confirming that lists are specified at least as much as they need to be, and also do not fork. No effects were observed on Make-managed files. References: * #142 * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to Cyber-Domain-Ontology/CDO-Shapes-OWL
that referenced
this issue
Jan 25, 2024
These exemplars exercise properties with review shapes added as part of UCO Issue 571. For future `git bisect` purposes, they are added now so `git bisect` may rely on `make check` passing on this commit. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to Cyber-Domain-Ontology/CDO-Shapes-OWL
that referenced
this issue
Jan 25, 2024
A follow-on patch will regenerate Make-managed files. References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist
added a commit
to Cyber-Domain-Ontology/CDO-Shapes-OWL
that referenced
this issue
Jan 25, 2024
References: * ucoProject/UCO#571 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
As part of reviewing UCO's syntax for semi-open vocabularies before UCO 1.0.0 (done in Issue 406), some shapes were written to check the syntax for OWL definitions of custom datatypes. Those shapes recognized some requirements OWL makes on
rdf:List
, but incorrectly scoped them to apply to allrdf:List
s. This causes some issues with review of certain OWL "A-Box" review (used for representing individuals, i.e. instances of the classes and users of properties from the "T-Box"), as well as SHACL review.The shapes around
rdf:List
,rdf:first
, andrdf:rest
currently in the UCO OWL shapes file need to be revised to be scoped to OWL. This will mean going with a more strict enumeration style, following the rule-matching in the OWL 2 Web Ontology Language Mapping to RDF Graphs (Second Edition).This Issue houses a bug report and a remediating Change Proposal. It appears complex enough to me to need a Requirements Review vote.
Steps to reproduce
These RDF snippets should not cause UCO's SHACL validation to fail, but currently they do:
The above instance-data snippet is drawn from Example 41 in the SKOS reference Section 9.3.
The above SHACL supplementary snippet is drawn from DASH Data Shapes Vocabulary Section 8.1, where the prescribed usage of the shape follows this general form:
As an aside, a sibling shape snippet,
dash:StringOrLangString
, could support a goal in the CASE backlog (ONT-6) of supporting language strings without universally requiring language string annotations. (I was informed of this shape in discussion on this pySHACL issue.)Requirements
Requirement 1
UCO's OWL review must not prevent other RDF idioms that are not necessarily within OWL's purview (e.g. instance-data
rdf:List
s and SHACL constructs).Risk / Benefit analysis
Benefits
Risks
sh:PropertyShape
s will likely need to remainsh:PropertyShape
s when reduced to a deactivated stub, in order to continue satisfying any incorporations by thesh:property
predicate.rdf:List
s used in support of UCO's semi-open vocabulary design pattern. Unfortunately, while the SHACL-specific lists can now be given IRIs and incorporated by IRI reference, the OWL custom-datatype definitions are still affected, so there may be only a few cases where ardf:List
can be de-duplicated in support of semi-open vocabularies.Competencies demonstrated
UCO's OWL review should not raise any issues for the DASH and SKOS usage patterns described above. The examples are encoded in updated unit tests accompanying this Issue.
Solution suggestion
uco-owl:List-shape
; split its functionality into three other shapes.uco-owl:Sequence-shape
houses review rules for OWL Sequences, narrower in scope thanrdf:List
s.rdf:List
s.sh:node
.uco-owl:rdf-first-subjects-shape
anduco-owl:rdf-rest-subjects-shape
perform structural review that is generalizable tordf:List
- that if either predicate is used on some subject node N, then N has both of the predicates exactly once.uco-owl:List-shape
is retained, untargeting and deactivated, to maintain IRI availability as part of backwards compatibility.sh:node
.For instance, for
owl:oneOf
, this new shape is defined:uco-owl:oneOf-objects-shape a sh:NodeShape ; sh:node uco-owl:Sequence-shape ; sh:targetObjectsOf owl:oneOf ; .
This issue leaves the following out of scope, to remain focused on fixing the overly-broad review bug:
owl:oneOf
should be further constrained based on whether it is being used for anObjectOneOf
orDataOneOf
construct. That will come in a future proposal.)owl:Restriction
s.)Coordination
develop
for the next releasedevelop
state with backwards-compatible implementation merged intodevelop-2.0.0
develop-2.0.0
(N/A)develop
branch updated to track UCO's updateddevelop
branchdevelop-2.0.0
branch updated to track UCO's updateddevelop-2.0.0
branchThe text was updated successfully, but these errors were encountered: