Package com.stardog.stark.util
Class ResourceBuilder
java.lang.Object
com.stardog.stark.util.ResourceBuilder
Utility class for creating a `Graph` where all the statements are about a particular
resource
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Constructor Summary
ConstructorsConstructorDescriptionResourceBuilder(Resource theRes) ResourceBuilder(Set<Statement> theGraph, Resource theRes) -
Method Summary
Modifier and TypeMethodDescriptionaddProperty(IRI theProperty, ResourceBuilder theBuilder) addProperty(IRI theProperty, Value theValue) addProperty(IRI theProperty, Boolean theValue) addProperty(IRI theProperty, Double theValue) addProperty(IRI theProperty, Float theValue) addProperty(IRI theProperty, Integer theValue) addProperty(IRI theProperty, Long theValue) addProperty(IRI theProperty, Object theObject) addProperty(IRI theProperty, Short theValue) addProperty(IRI theProperty, String theValue) addProperty(IRI theProperty, URI theURI) addProperty(IRI theProperty, Date theValue) Add a xsd:dateTime property to the resourceaddProperty(IRI theProperty, List<? extends Value> theList) addProperty(IRI theProperty, Set<? extends Value> theSet) graph()subject()
-
Constructor Details
-
ResourceBuilder
-
ResourceBuilder
-
-
Method Details
-
addProperty
-
addProperty
@Nonnull public ResourceBuilder addProperty(@Nonnull IRI theProperty, @Nonnull List<? extends Value> theList) -
addProperty
-
addProperty
@Nonnull public ResourceBuilder addProperty(@Nonnull IRI theProperty, @Nullable Set<? extends Value> theSet) -
subject
-
graph
-
addProperty
@Nonnull public ResourceBuilder addProperty(@Nonnull IRI theProperty, @Nullable ResourceBuilder theBuilder) -
addProperty
-
addProperty
-
addProperty
-
addProperty
-
addProperty
-
addProperty
Add a xsd:dateTime property to the resource- Parameters:
theProperty- the propertytheValue- the date-time object- Returns:
- this builder
-
addProperty
-
addProperty
-
addProperty
-
addLabel
-
addType
-