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