public class ValueFactoryImpl extends ValueFactoryBase
| Constructor and Description |
|---|
ValueFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
BNode |
createBNode(String nodeID)
Creates a new blank node with the given node identifier.
|
Literal |
createLiteral(String value)
Creates a new literal with the supplied label.
|
Literal |
createLiteral(String value,
String language)
Creates a new literal with the supplied label and language attribute.
|
Literal |
createLiteral(String value,
URI datatype)
Creates a new literal with the supplied label and datatype.
|
Statement |
createStatement(Resource subject,
URI predicate,
Value object)
Creates a new statement with the supplied subject, predicate and object.
|
Statement |
createStatement(Resource subject,
URI predicate,
Value object,
Resource context)
Creates a new statement with the supplied subject, predicate and object
and associated context.
|
URI |
createURI(String uri)
Creates a new URI from the supplied string-representation.
|
URI |
createURI(String namespace,
String localName)
Creates a new URI from the supplied namespace and local name.
|
static ValueFactoryImpl |
getInstance() |
createBNode, createFPLiteral, createIntegerLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createNumericLiteral, initBNodeParamspublic static ValueFactoryImpl getInstance()
public URI createURI(String uri)
ValueFactoryuri - A string-representation of a URI.public URI createURI(String namespace, String localName)
ValueFactorycreateURI(namespace+localName), but allows the ValueFactory to reuse
supplied namespace and local name strings whenever possible. Note that the
values returned by URI.getNamespace() and
URI.getLocalName() are not necessarily the same as the values that
are supplied to this method.namespace - The URI's namespace.localName - The URI's local name.public BNode createBNode(String nodeID)
ValueFactorynodeID - The blank node identifier.public Literal createLiteral(String value)
ValueFactoryvalue - The literal's label.public Literal createLiteral(String value, String language)
ValueFactoryvalue - The literal's label.language - The literal's language attribute, or null if the literal
doesn't have a language.public Literal createLiteral(String value, URI datatype)
ValueFactoryvalue - The literal's label.datatype - The literal's datatype, or null if the literal doesn't
have a datatype.public Statement createStatement(Resource subject, URI predicate, Value object)
ValueFactorysubject - The statement's subject.predicate - The statement's predicate.object - The statement's object.public Statement createStatement(Resource subject, URI predicate, Value object, Resource context)
ValueFactorysubject - The statement's subject.predicate - The statement's predicate.object - The statement's object.context - The statement's context.Copyright © 2001-2014 Aduna. All Rights Reserved.