public interface BlazeValueFactory
Modifier and Type | Interface and Description |
---|---|
static interface |
BlazeValueFactory.Defaults
Some default constants.
|
Modifier and Type | Field and Description |
---|---|
static BlazeValueFactory |
INSTANCE
Default instance.
|
Modifier and Type | Method and Description |
---|---|
default org.openrdf.model.URI |
elementURI(String id)
Convert an element id into an RDF URI.
|
default Object |
fromLiteral(org.openrdf.model.Literal l)
Create a blueprints property value from a datatyped literal.
|
default String |
fromURI(org.openrdf.model.URI uri)
Convert an RDF URI (element id/label or property key) back into a string.
|
default org.openrdf.model.URI |
historyAdded()
URI used for history.
|
default org.openrdf.model.URI |
historyRemoved()
URI used for history.
|
default org.openrdf.model.URI |
liDatatype()
URI used for Cardinality.list list index datatype.
|
default org.openrdf.model.URI |
propertyURI(String key)
Convert an property key into an RDF URI.
|
default org.openrdf.model.Literal |
toLiteral(Object value)
Create a datatyped literal from a blueprints property value.
|
default org.openrdf.model.URI |
type()
URI used for element labels (typing).
|
default org.openrdf.model.URI |
typeURI(String label)
Convert an element label (type) into an RDF URI.
|
default org.openrdf.model.URI |
value()
URI used for Cardinality.list property values.
|
static final BlazeValueFactory INSTANCE
default org.openrdf.model.URI type()
BlazeValueFactory.Defaults.TYPE
default org.openrdf.model.URI value()
BlazeValueFactory.Defaults.VALUE
default org.openrdf.model.URI liDatatype()
BlazeValueFactory.Defaults.LI_DATATYPE
default org.openrdf.model.URI historyAdded()
RDRHistory
default org.openrdf.model.URI historyRemoved()
RDRHistory
default org.openrdf.model.URI elementURI(String id)
Default behavior is to prepend the <blaze:>
namespace to the id.
id
- property graph element iddefault org.openrdf.model.URI propertyURI(String key)
Default behavior is to prepend the <blaze:>
namespace to the key.
key
- property graph property keydefault org.openrdf.model.URI typeURI(String label)
Default behavior is to prepend the <blaze:>
namespace to the label.
label
- property graph element labeldefault String fromURI(org.openrdf.model.URI uri)
uri
- RDF representation of an element id/label or property keydefault org.openrdf.model.Literal toLiteral(Object value)
Supports: Float, Double, Integer, Long, Boolean, Short, Byte, and String.
default Object fromLiteral(org.openrdf.model.Literal l)
Return a graph property from a datatyped literal using its XSD datatype.
Supports: Float, Double, Integer, Long, Boolean, Short, Byte, and String.
Copyright © 2015–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.