public class ValidatorDAG extends Object
Constructor and Description |
---|
ValidatorDAG() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsRootedDagRoot(G g,
org.openrdf.model.URI rootURI,
WalkConstraint wc)
Test if the given URI corresponds to a root of the graph build according
to the specified edge types.
|
boolean |
containsTaxonomicDag(G graph) |
boolean |
containsTaxonomicDagWithUniqueRoot(G g)
Check if the given graph contains a underlying taxonomic graph with a
unique root.
|
Set<org.openrdf.model.URI> |
getDAGRoots(G g,
WalkConstraint wc)
Root vertices (terminal vertices) are those of type CLASS which respect
the following restrictions :
must not contains an edges of the given types and direction Do not check if the graph is a DAG |
E |
getLastEdge() |
Set<org.openrdf.model.URI> |
getTaxonomicRoots(G g)
Return the vertices which root the taxonomic graph.
|
org.openrdf.model.URI |
getUniqueTaxonomicRoot(G g)
Return the unique vertex rooting the underlying taxonomic graph.
|
boolean |
isDag(G graph,
Set<org.openrdf.model.URI> startingURIs,
WalkConstraint wc) |
boolean |
isDag(G graph,
org.openrdf.model.URI rootURI,
WalkConstraint wc)
Check if the underlying graph defined by the edges of the given edge
types and build using a traversal starting from the given root node is a
DAG.
|
boolean |
isDag(G graph,
WalkConstraint wc)
Check if the underlying graph defined by given
WalkConstraint is
a DAG. |
boolean |
isUniqueRootedDagRoot(G g,
org.openrdf.model.URI root,
WalkConstraint wc)
Do not check if the graph is a DAG
|
boolean |
isUniqueRootedTaxonomicDag(G g,
org.openrdf.model.URI root) |
public boolean isDag(G graph, Set<org.openrdf.model.URI> startingURIs, WalkConstraint wc) throws SLIB_Ex_Critic
graph
- startingURIs
- wc
- SLIB_Ex_Critic
public boolean isDag(G graph, org.openrdf.model.URI rootURI, WalkConstraint wc) throws SLIB_Ex_Critic
isDag(G, WalkConstraint)
only
considering the given set of edge typesgraph
- the graph on which the evaluation has to be maderootURI
- wc
- SLIB_Ex_Critic
public boolean containsTaxonomicDag(G graph) throws SLIB_Ex_Critic
graph
- SLIB_Ex_Critic
public boolean isDag(G graph, WalkConstraint wc) throws SLIB_Ex_Critic
WalkConstraint
is
a DAG. shortcut of isDag(G, WalkConstraint)
considering the given edge types and the root vertices according to the
inverse of the specified edge types as root (see
getDAGRoots(G, WalkConstraint)
)graph
- the graph on which the evaluation has to be madewc
- SLIB_Ex_Critic
public Set<org.openrdf.model.URI> getDAGRoots(G g, WalkConstraint wc)
g
- the graph on which the root vertices need to be retrievewc
- public boolean containsTaxonomicDagWithUniqueRoot(G g) throws SLIB_Ex_Critic
g
- the graph on which the test is performedSLIB_Ex_Critic
public org.openrdf.model.URI getUniqueTaxonomicRoot(G g) throws SLIB_Ex_Critic
g
- the graphSLIB_Ex_Critic
- if the underlying taxonomic graph of the
given graph contains multiple roots.public Set<org.openrdf.model.URI> getTaxonomicRoots(G g)
g
- public boolean containsRootedDagRoot(G g, org.openrdf.model.URI rootURI, WalkConstraint wc)
g
- the graph to considerrootURI
- the URI to testwc
- the edge type to consider only OUT direction is consideredpublic boolean isUniqueRootedTaxonomicDag(G g, org.openrdf.model.URI root) throws SLIB_Ex_Critic
g
- root
- SLIB_Ex_Critic
public boolean isUniqueRootedDagRoot(G g, org.openrdf.model.URI root, WalkConstraint wc) throws SLIB_Ex_Critic
g
- root
- wc
- SLIB_Ex_Critic
public E getLastEdge()
Copyright © 2014. All rights reserved.