Skip to content

Add subclass hierarchy knowledge to case_sparql_* commands - #25

Merged
ajnelson-nist merged 10 commits into
developfrom
OC-65
Nov 10, 2021
Merged

Add subclass hierarchy knowledge to case_sparql_* commands#25
ajnelson-nist merged 10 commits into
developfrom
OC-65

Conversation

@ajnelson-nist

Copy link
Copy Markdown
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-nistajnelson-nist self-assigned this Nov 10, 2021
@ajnelson-nist
ajnelson-nist merged commit c39a9cd into developNov 10, 2021
@ajnelson-nist
ajnelson-nist deleted the OC-65 branch November 10, 2021 22:59
Sign up for freeto 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

@ajnelson-nist