Package com.stardog.stark.util
Class ResourceBuilder
- java.lang.Object
-
- com.stardog.stark.util.ResourceBuilder
-
public final class ResourceBuilder extends java.lang.ObjectUtility class for creating a `Graph` where all the
statementsare 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 ResourceBuilderaddLabel(java.lang.String theLabel)ResourceBuilderaddProperty(IRI theProperty, ResourceBuilder theBuilder)ResourceBuilderaddProperty(IRI theProperty, Value theValue)ResourceBuilderaddProperty(IRI theProperty, java.lang.Boolean theValue)ResourceBuilderaddProperty(IRI theProperty, java.lang.Double theValue)ResourceBuilderaddProperty(IRI theProperty, java.lang.Float theValue)ResourceBuilderaddProperty(IRI theProperty, java.lang.Integer theValue)ResourceBuilderaddProperty(IRI theProperty, java.lang.Long theValue)ResourceBuilderaddProperty(IRI theProperty, java.lang.Object theObject)ResourceBuilderaddProperty(IRI theProperty, java.lang.Short theValue)ResourceBuilderaddProperty(IRI theProperty, java.lang.String theValue)ResourceBuilderaddProperty(IRI theProperty, java.net.URI theURI)ResourceBuilderaddProperty(IRI theProperty, java.util.Date theValue)Add a xsd:dateTime property to the resourceResourceBuilderaddProperty(IRI theProperty, java.util.List<? extends Value> theList)ResourceBuilderaddProperty(IRI theProperty, java.util.Set<? extends Value> theSet)ResourceBuilderaddType(IRI theType)java.util.Set<Statement>graph()Resourcesubject()
-
-
-
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)
-
-