Skip to content
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

Failed to create validator: org.topbraid.shacl.validation.SHACLException: Invalid SPARQL constraint #513

Closed
8 tasks done
DrSnowbird opened this issue Jan 9, 2023 · 1 comment · Fixed by #514
Closed
8 tasks done
Labels
Milestone

Comments

@DrSnowbird
Copy link

DrSnowbird commented Jan 9, 2023

Bug description

Tool transcript:

Failed to create validator: org.topbraid.shacl.validation.SHACLException: Invalid SPARQL constraint (Line 5, column 41: Unresolved prefixed name: rdfs:subClassOf):\n\n\t\t\tPREFIX uco-core: <https://ontology.unifiedcyberontology.org/uco/core/>\n\t\t\tSELECT $this\n\t\t\tWHERE {\n\t\t\t        $this a/rdfs:subClassOf* uco-core:UcoThing .\n\t\t\t        FILTER (\n\t\t\t                ! REGEX (\n\t\t\t                        STR($this),\n\t\t\t                        \"[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$\",\n\t\t\t                        \"i\"\n\t\t\t                )\n\t\t\t        )

Steps to reproduce

Steps to reproduce the behavior.

  1. Use Topbraid SHACL validator to load UCO v1.1.0 Shapes and then,
  2. Use the input sample: "https://raw.githubusercontent.com/casework/CASE-Examples/master/examples/illustrations/location/location.json"
  3. The results will come back to report the failure as "Failed to create validator: org.topbraid.shacl.validation.SHACLException: Invalid SPARQL constraint". -- Please see the attachment JSON file (the response using SHACL validator Service)

UCO-v1-1-0-SHACL-Exception (copy).txt

Coordination

  • Tracking in Jira ticket OC-287
  • Administrative review completed, proposal announced to Ontology Committees (OCs) on 2023-01-17
  • Solution announced to OCs on 2023-01-17
  • Solutions development phase completed.
  • Backwards-compatible implementation merged into develop for the next release
  • develop state with backwards-compatible implementation merged into develop-2.0.0
  • Backwards-incompatible implementation merged into develop-2.0.0 (N/A)
  • Milestone linked
  • Documentation logged in pending release page
@DrSnowbird DrSnowbird added the bug label Jan 9, 2023
@ajnelson-nist
Copy link
Contributor

It appears there's a disagreement between the tool you used and rdflib on what the guaranteed RDF prefixes are. It looks like we need to add explicit rdfs declarations to each of the SHACL-SPARQL constraints.

@DrSnowbird , thank you for the bug report, we'll schedule it for the next release.

@ajnelson-nist ajnelson-nist added this to the UCO 1.2.0 milestone Jan 9, 2023
@ajnelson-nist ajnelson-nist linked a pull request Jan 13, 2023 that will close this issue
11 tasks
@ajnelson-nist ajnelson-nist mentioned this issue Jan 13, 2023
11 tasks
ajnelson-nist added a commit that referenced this issue Jan 18, 2023
References:
* #513

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist added a commit to casework/CASE-Archive that referenced this issue Jan 18, 2023
No effects were observed on Make-managed files.

References:
* ucoProject/UCO#513

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist added a commit to casework/CASE-Examples that referenced this issue Jan 18, 2023
No effects were observed on Make-managed files.

References:
* ucoProject/UCO#513

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist added a commit to casework/CASE-Examples that referenced this issue Jan 18, 2023
A follow-on patch will regenerate Make-managed files.

References:
* ucoProject/UCO#513

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist added a commit to casework/CASE-Examples that referenced this issue Jan 18, 2023
References:
* ucoProject/UCO#513

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist added a commit to casework/casework.github.io that referenced this issue Jan 18, 2023
A follow-on patch will regenerate Make-managed files.

References:
* ucoProject/UCO#513

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist added a commit to casework/casework.github.io that referenced this issue Jan 18, 2023
References:
* ucoProject/UCO#513

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
@ajnelson-nist ajnelson-nist linked a pull request Jan 27, 2023 that will close this issue
4 tasks
ajnelson-nist added a commit to casework/CASE-Utilities-Python that referenced this issue Mar 28, 2023
References:
* ucoProject/UCO#508
* ucoProject/UCO#513
* ucoProject/UCO#526

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
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants