Interface InstanceOntologyOrderPredicate
- All Superinterfaces:
InstancePredicate
- All Known Implementing Classes:
InstanceOntologyOrderPredicateImpl
InstanceOntologyOrderPredicate interface.
-
Method Summary
Modifier and TypeMethodDescriptionint
getHierarchyHeight.getIntersection
(Set<org.apache.jena.rdf.model.Resource> nodeSetA, Set<org.apache.jena.rdf.model.Resource> nodeSetB) getIntersection.Set<org.apache.jena.rdf.model.Resource>
getParentNodes
(org.apache.jena.rdf.model.Resource node) getParentNodes.getRelations.getRootNodeURI.void
init()
Re-inits the predicate.void
(Re)Inits the predicate with the given root uri and relations.boolean
isOntologyOrderPredicate.void
setIntersection
(Set<org.apache.jena.rdf.model.Resource> nodeSetA, Set<org.apache.jena.rdf.model.Resource> nodeSetB, boolean intersection) setIntersection.void
setParentNodes
(org.apache.jena.rdf.model.Resource node, Set<org.apache.jena.rdf.model.Resource> parentNodes) setParentNodes.Methods inherited from interface de.uni_trier.wi2.procake.data.model.base.InstancePredicate
getAtomicClass, holdsFor, isEnumerationPredicate, isIntervalPredicate, isTaxonomyOrderPredicate, isTotalOrderPredicate
-
Method Details
-
getRootNodeURI
String getRootNodeURI()getRootNodeURI.
- Returns:
- root node
-
getRelations
getRelations.
- Returns:
- set of relations
-
init
(Re)Inits the predicate with the given root uri and relations. Collects a set of valid values from the ontology respecting the given root node and added relations.- Parameters:
rootNodeUri
- the root node urirelations
- the list of relations that should be added.
-
init
void init()Re-inits the predicate. Uses a given root node and relations. Collects a set of valid values from the ontology. -
getHierarchyHeight
int getHierarchyHeight()getHierarchyHeight.
- Returns:
- a int
-
getParentNodes
getParentNodes.
- Parameters:
node
- aResource
object- Returns:
- a
Set
object
-
setParentNodes
void setParentNodes(org.apache.jena.rdf.model.Resource node, Set<org.apache.jena.rdf.model.Resource> parentNodes) setParentNodes.
- Parameters:
node
- aResource
objectparentNodes
- aSet
object
-
getIntersection
Boolean getIntersection(Set<org.apache.jena.rdf.model.Resource> nodeSetA, Set<org.apache.jena.rdf.model.Resource> nodeSetB) getIntersection.
-
setIntersection
void setIntersection(Set<org.apache.jena.rdf.model.Resource> nodeSetA, Set<org.apache.jena.rdf.model.Resource> nodeSetB, boolean intersection) setIntersection.
-
isOntologyOrderPredicate
boolean isOntologyOrderPredicate()Description copied from interface:InstancePredicate
isOntologyOrderPredicate.
- Specified by:
isOntologyOrderPredicate
in interfaceInstancePredicate
- Returns:
true
if the predicate is anInstanceOntologyOrderPredicate
-