Skip to content

Add subclass hierarchy knowledge to case_sparql_* commands #25

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

Merged
merged 10 commits into from
Nov 10, 2021

Conversation

ajnelson-nist
Copy link
Member

With UCO's OC-65/CP-13, a subclass hierarchy for ObservableObject was defined. The CASE Python utilities have not to date used those subclasses, because of needing to define a mechanism to provide the subclass knowledge.

The resolution of CASE AC-210 involved adding a monolithic ontology as a pre-built resource accompanying the case_utils package installation. This patch series uses that pre-built resource to build another resource: a file containing only the subclass hierarchy statements. This hierarchy is loaded by the case_sparql_* commands to support queries that use subclassing, i.e. with ?someNode a/rdfs:subClassOf* ?someClass ..

One immediately visible impact of this patch series is to let case_file output objects that are of type uco-observable:File instead of uco-observable:ObservableObject. However, the support to build up to this one-line change to case_file now enables more transparent CASE support in this repository's provided CASE SPARQL tools.

This is to prepare for a coming long-named flag specification.

References:
* [UCO OC-65] (CP-13) UCO needs subclasses of ObservableObject

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
This is to prepare for a coming function lookup of built ontology
versions to use.

References:
* [UCO OC-65] (CP-13) UCO needs subclasses of ObservableObject

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
References:
* [UCO OC-65] (CP-13) UCO needs subclasses of ObservableObject

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
References:
* [UCO OC-65] (CP-13) UCO needs subclasses of ObservableObject

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
References:
* [UCO OC-65] (CP-13) UCO needs subclasses of ObservableObject

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
References:
* [UCO OC-65] (CP-13) UCO needs subclasses of ObservableObject

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
References:
* [UCO OC-65] (CP-13) UCO needs subclasses of ObservableObject

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
…bject superclass

References:
* [UCO OC-65] (CP-13) UCO needs subclasses of ObservableObject

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
References:
* [UCO OC-65] (CP-13) UCO needs subclasses of ObservableObject

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
References:
* [UCO OC-65] (CP-13) UCO needs subclasses of ObservableObject

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
@ajnelson-nist ajnelson-nist self-assigned this Nov 10, 2021
@ajnelson-nist ajnelson-nist merged commit c39a9cd into develop Nov 10, 2021
@ajnelson-nist ajnelson-nist deleted the OC-65 branch November 10, 2021 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant