Repository navigation
Add an OWL 2 DL profile check to the ROBOT tests - #53
Merged
Merged
Conversation
This was referenced Nov 23, 2026
|
this sounds good to me |
|
Hey Jeff- Do you need this approved by Michael and or Tarik prior to the version update? |
jclerman
force-pushed
the
add-dl-profile-check
branch
from
November 27, 2026 17:57
fb588e4 to
d46a057
Compare
Collaborator
Author
Hi @averde15 - yes, a review/approval by one of them would be great. This PR is small and adds an integrity check which would have caught an issue we had to find/fix manually recently. It's not critical pre-release, but it'd be nice. The more integrity checks we have, the easier it is to guarantee a clean ontology to consumers. |
The SPARQL-query-based checks can't detect a property that is used but not declared, because OWLAPI adds the missing declarations when ROBOT loads the ontology. `robot validate-profile --profile DL` does catch it, along with other OWL 2 DL violations. Run it in robot-check.sh, upload its report from CI on failure, ignore the report file, and document it. Closes #52 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jclerman
force-pushed
the
add-dl-profile-check
branch
from
November 29, 2026 03:10
d46a057 to
d74aab6
Compare
averde15
approved these changes
Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #52
Summary
Adds
robot validate-profile --profile DLtotests/scripts/robot-check.sh, so therobot-integrityCI job fails ifRadLex.owluses a property or class it doesn't declare, or has any other OWL 2 DL violation.Details
tests/scripts/robot-check.sh: after the reasoner check, runsrobot validate-profile --input RadLex.owl --profile DL --output dl-profile-report.txt..github/workflows/robot-integrity.yml: if that step fails, uploadsdl-profile-report.txtas therobot-dl-profile-reportartifact, following the existing upload steps..gitignore: ignoresdl-profile-report.txt, like the other generated reports.docs/TESTING.md,docs/CONTRIBUTING.md: describe the new check and its report.How I checked it, locally with ROBOT 1.9.11:
RadLex.owl, the check passes (OWL 2 DL Profile Report: [Ontology and imports closure in profile]) and takes about 3 seconds. The wholerobot-check.sh, reasoner included, passes.Use of undeclared annotation property: <http://example.org/undeclaredProp> in annotation ....Motivation
The SPARQL-query-based checks can't detect a custom annotation property that is used but not declared: ROBOT loads the ontology through OWLAPI, which adds the missing
owl:AnnotationPropertydeclarations before the queries run. Only OWL's built-in annotation properties (rdfs:label,rdfs:comment,owl:deprecated, etc.) may be used undeclared. This came up in review of #51; see #52.🤖 Generated with Claude Code