public class PropertyChainsTree extends Object
PropertyChainsTree
is used to support all cases where a given operation must be performed
recursively from a given resource to all of its outbound resources by navigating exclusively given
propertyChains of properties.ModelUtilities#deepDeleteIndividual(ARTResource, it.uniroma2.art.owlart.models.RDFSModel, PropertyChainsTree)}
Constructor and Description |
---|
PropertyChainsTree()
this method is used to build the root of a PropertyChainsTree; following branches require no
constructor and will be created through addChild(ARTResource newDelPropagProp)
|
Modifier and Type | Method and Description |
---|---|
PropertyChainsTree |
addChainedProperty(ARTURIResource newChainedProp)
adds a child
PropertyChainsTree with node value=newChainedProp and an empty
propertyChains list |
Collection<ARTURIResource> |
getChainedProperties() |
PropertyChainsTree |
getNextChain(ARTURIResource chainedProperty)
get next chained properties starting from chainedProperty
|
PropertyChainsTree |
getNextChains(Collection<ARTURIResource> chainedProperties)
get next propertyChains starting from the given chainedProperties.
|
boolean |
hasChained(ARTURIResource chainedProp) |
void |
mergeTree(PropertyChainsTree chainedPropTree)
will merge
chainedPropTree into the current tree |
public PropertyChainsTree()
public PropertyChainsTree addChainedProperty(ARTURIResource newChainedProp)
PropertyChainsTree
with node value=newChainedProp
and an empty
propertyChains listnewChainedProp
- public void mergeTree(PropertyChainsTree chainedPropTree)
chainedPropTree
into the current treechainedPropTree
- public boolean hasChained(ARTURIResource chainedProp)
public Collection<ARTURIResource> getChainedProperties()
public PropertyChainsTree getNextChain(ARTURIResource chainedProperty)
chainedProperty
- public PropertyChainsTree getNextChains(Collection<ARTURIResource> chainedProperties)
chainedProperty
- Copyright © 2015 ART Group, University of Rome, Tor Vergata. All Rights Reserved.