Class InstanceOntologyOrderPredicateImpl
java.lang.Object
de.uni_trier.wi2.procake.data.model.base.impl.InstancePredicateImpl
de.uni_trier.wi2.procake.data.model.base.impl.InstanceOntologyOrderPredicateImpl
- All Implemented Interfaces:
InstanceOntologyOrderPredicate
,InstancePredicate
public class InstanceOntologyOrderPredicateImpl
extends InstancePredicateImpl
implements InstanceOntologyOrderPredicate
InstanceOntologyOrderPredicateImpl class.
-
Field Summary
Fields inherited from class de.uni_trier.wi2.procake.data.model.base.impl.InstancePredicateImpl
atomicClass
-
Constructor Summary
ConstructorDescriptionInstanceOntologyOrderPredicateImpl
(AtomicClassImpl parentClass) Constructor for InstanceOntologyOrderPredicateImpl. -
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.boolean
EachInstancePredicate
must implement this method to check if the givenvalue
is an element of theInstancePredicate
.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 class de.uni_trier.wi2.procake.data.model.base.impl.InstancePredicateImpl
checkFinishEditing, finishEditing, getAtomicClass, isEnumerationPredicate, isIntervalPredicate, isTaxonomyOrderPredicate, isTotalOrderPredicate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.data.model.base.InstancePredicate
getAtomicClass, isEnumerationPredicate, isIntervalPredicate, isTaxonomyOrderPredicate, isTotalOrderPredicate
-
Constructor Details
-
InstanceOntologyOrderPredicateImpl
Constructor for InstanceOntologyOrderPredicateImpl.
- Parameters:
parentClass
- aAtomicClassImpl
object
-
-
Method Details
-
holdsFor
EachInstancePredicate
must implement this method to check if the givenvalue
is an element of theInstancePredicate
.- Specified by:
holdsFor
in interfaceInstancePredicate
- Parameters:
value
- The value to check- Returns:
true
if the value is an element of theInstancePredicate
-
getRootNodeURI
getRootNodeURI.
- Specified by:
getRootNodeURI
in interfaceInstanceOntologyOrderPredicate
- Returns:
- root node
-
getRelations
getRelations.
- Specified by:
getRelations
in interfaceInstanceOntologyOrderPredicate
- 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.- Specified by:
init
in interfaceInstanceOntologyOrderPredicate
- Parameters:
rootNodeUri
- the root node urirelations
- the list of relations that should be added.
-
init
public void init()Re-inits the predicate. Uses a given root node and relations. Collects a set of valid values from the ontology.- Specified by:
init
in interfaceInstanceOntologyOrderPredicate
-
getHierarchyHeight
public int getHierarchyHeight()getHierarchyHeight.
- Specified by:
getHierarchyHeight
in interfaceInstanceOntologyOrderPredicate
- Returns:
- a int
-
getParentNodes
public Set<org.apache.jena.rdf.model.Resource> getParentNodes(org.apache.jena.rdf.model.Resource node) getParentNodes.
- Specified by:
getParentNodes
in interfaceInstanceOntologyOrderPredicate
- Parameters:
node
- aResource
object- Returns:
- a
Set
object
-
setParentNodes
public void setParentNodes(org.apache.jena.rdf.model.Resource node, Set<org.apache.jena.rdf.model.Resource> parentNodes) setParentNodes.
- Specified by:
setParentNodes
in interfaceInstanceOntologyOrderPredicate
- Parameters:
node
- aResource
objectparentNodes
- aSet
object
-
getIntersection
public Boolean getIntersection(Set<org.apache.jena.rdf.model.Resource> nodeSetA, Set<org.apache.jena.rdf.model.Resource> nodeSetB) getIntersection.
- Specified by:
getIntersection
in interfaceInstanceOntologyOrderPredicate
- Parameters:
nodeSetA
- aSet
objectnodeSetB
- aSet
object- Returns:
- a
Boolean
object
-
setIntersection
public void setIntersection(Set<org.apache.jena.rdf.model.Resource> nodeSetA, Set<org.apache.jena.rdf.model.Resource> nodeSetB, boolean intersection) setIntersection.
- Specified by:
setIntersection
in interfaceInstanceOntologyOrderPredicate
- Parameters:
nodeSetA
- aSet
objectnodeSetB
- aSet
objectintersection
- a boolean
-
isOntologyOrderPredicate
public boolean isOntologyOrderPredicate()Description copied from class:InstancePredicateImpl
isOntologyOrderPredicate.
- Specified by:
isOntologyOrderPredicate
in interfaceInstanceOntologyOrderPredicate
- Specified by:
isOntologyOrderPredicate
in interfaceInstancePredicate
- Overrides:
isOntologyOrderPredicate
in classInstancePredicateImpl
- Returns:
true
if the predicate is anInstanceOntologyOrderPredicate
-