Package com.stardog.stark.util
Class GraphBuilder
java.lang.Object
com.stardog.stark.util.GraphBuilder
Utility class for building a `Graph`
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbnode()graph()Return the Graph created via this builderCreate a new anonymous instance of the given typeCreate abuilderfor the given individual and add the typeCreate abuilderfor the given individual and add the typeCreate abuilderfor the individualCreate abuilderfor the individualvoidreset()Clear the contents of the builder
-
Constructor Details
-
GraphBuilder
public GraphBuilder()
-
-
Method Details
-
graph
Return the Graph created via this builder- Returns:
- the graph
-
reset
public void reset()Clear the contents of the builder -
iri
Create abuilderfor the individual- Parameters:
theURI- the individual- Returns:
- the
builder
-
iri
Create abuilderfor the individual- Parameters:
theURI- the individual- Returns:
- the
builder
-
instance
Create a new anonymous instance of the given type- Parameters:
theType- the type- Returns:
- a
builderfor the new individual
-
instance
Create abuilderfor the given individual and add the type- Parameters:
theRes- the individualtheType- the type- Returns:
- a
builderfor the new individual
-
instance
Create abuilderfor the given individual and add the type- Parameters:
theURI- the individualtheType- the type- Returns:
- a
builderfor the new individual
-
bnode
-
resource
-
list
-
add
-