|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.larkc.shared.RdfGraphUtils
public class RdfGraphUtils
Various utility methods used for testing the LarKC data layer.
Constructor Summary | |
---|---|
RdfGraphUtils()
|
Method Summary | |
---|---|
static void |
assertStatementsInGraph(SetOfStatements graph,
int expectedCount)
The implementor of the method does not know whether it's a value or reference graph. |
static int |
getNumberOfStatementsViaSelectAll(DataFactory df,
SetOfStatements graph)
Retrieves the number of statements contained in the RDF graph graph as returned by SELECT * WHERE {?s ?p ?o}
query. |
static boolean |
isGraphContained(DataFactory df,
SetOfStatements containedGraph,
SetOfStatements largeGraph)
Checks if containedGraph is contained in largeGraph. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RdfGraphUtils()
Method Detail |
---|
public static int getNumberOfStatementsViaSelectAll(DataFactory df, SetOfStatements graph)
graph
as returned by SELECT * WHERE {?s ?p ?o}
query.
df
- the DataFactory
which holds the RDF graphgraph
- an RDF graph
public static boolean isGraphContained(DataFactory df, SetOfStatements containedGraph, SetOfStatements largeGraph)
df
- the DataFactory
which holds the RDF graphscontainedGraph
- an RDF graphlargeGraph
- another RDF graph
public static void assertStatementsInGraph(SetOfStatements graph, int expectedCount)
graph
- the SetOfStatements
describing the RDF graphexpectedCount
- the expected number of triples in the RDF graph
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |