slib.sglib.algo.graph.extraction.rvf
Class AncestorEngine
java.lang.Object
slib.sglib.algo.graph.extraction.rvf.RVF
slib.sglib.algo.graph.extraction.rvf.RVF_DAG
slib.sglib.algo.graph.extraction.rvf.RVF_TAX
slib.sglib.algo.graph.extraction.rvf.AncestorEngine
public class AncestorEngine
- extends RVF_TAX
Class used to provide an easy way to retrieve the ancestors of a concept
(super classes of a class).
- Author:
- Harispe Sébastien
Fields inherited from class slib.sglib.algo.graph.extraction.rvf.RVF |
g, wc |
Constructor Summary |
AncestorEngine(slib.sglib.model.graph.G g)
Build an ancestor engine associated to the given graph. |
Method Summary |
Map<org.openrdf.model.URI,Set<org.openrdf.model.URI>> |
getAllAncestorsExc()
Compute the set of exclusive ancestors of all vertices contained in the
graph. |
Map<org.openrdf.model.URI,Set<org.openrdf.model.URI>> |
getAllAncestorsInc()
Compute the set of inclusive ancestors of all vertices contained in the
graph. |
Set<org.openrdf.model.URI> |
getAncestorsExc(org.openrdf.model.URI v)
Compute the set of exclusive ancestors of a class. |
Set<org.openrdf.model.URI> |
getAncestorsInc(org.openrdf.model.URI v)
Compute the set of inclusive ancestors of a class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AncestorEngine
public AncestorEngine(slib.sglib.model.graph.G g)
- Build an ancestor engine associated to the given graph.
Note that the graph is not expected to be modified during the processing.
- Parameters:
g
- the graph on which the engine must work
getAncestorsExc
public Set<org.openrdf.model.URI> getAncestorsExc(org.openrdf.model.URI v)
- Compute the set of exclusive ancestors of a class. Exclusive process: the
focused vertex will NOT be included in the set of ancestors.
- Parameters:
v
- the vertex of interest
- Returns:
- the exclusive set of ancestors of the concept (empty set if any).
getAncestorsInc
public Set<org.openrdf.model.URI> getAncestorsInc(org.openrdf.model.URI v)
- Compute the set of inclusive ancestors of a class. The focused vertex
will be included in the set of ancestors.
- Parameters:
v
- the vertex of interest
- Returns:
- the set composed of the ancestors of the concept + the concept.
getAllAncestorsExc
public Map<org.openrdf.model.URI,Set<org.openrdf.model.URI>> getAllAncestorsExc()
throws slib.utils.ex.SLIB_Ex_Critic
- Compute the set of exclusive ancestors of all vertices contained in the
graph. Exclusive process: the focused vertex will NOT be included in the
set of ancestors.
- Returns:
- a map containing the exclusive set of ancestors of each vertex
concept (empty set if any).
- Throws:
slib.utils.ex.SLIB_Ex_Critic
getAllAncestorsInc
public Map<org.openrdf.model.URI,Set<org.openrdf.model.URI>> getAllAncestorsInc()
throws slib.utils.ex.SLIB_Ex_Critic
- Compute the set of inclusive ancestors of all vertices contained in the
graph. The focused vertex will be included in the set of ancestors.
- Returns:
- a map containing the inclusive set of ancestors of each vertex
concept.
- Throws:
slib.utils.ex.SLIB_Ex_Critic
Copyright © 2013. All Rights Reserved.