-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return single values if OWL indicates the property's maximum cardinal…
…ity is 1 (#22) This commit uses the OWL reasoner in Jena to expand the property graph, and uses the Jena Ontology API to detect if the property being accessed has a maxCardinality restriction. It will limit the number of returned elements to that maxCardinality, and if it is 1, it will either return that value or `null` if no value exists. This is in order to follow the conventions in the OWL ontologies produced by the MOF2RDF mapping. This specific use of restrictions (and other MOF2RDF conventions) will be moved in the future to a MOF2RDF-specific subclass of RDFModel, leaving RDFModel as a "pure RDF" model that acts as an Epsilon wrapper over Apache Jena. --------- Co-authored-by: Antonio Garcia-Dominguez <[email protected]>
- Loading branch information
1 parent
f05488b
commit 698f834
Showing
27 changed files
with
2,238 additions
and
156 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.