|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ValueFactory
A factory for creating URIs, blank nodes, literals and statements.
| Method Summary | |
|---|---|
BNode |
createBNode()
Creates a new bNode. |
BNode |
createBNode(String nodeID)
Creates a new blank node with the given node identifier. |
Literal |
createLiteral(boolean value)
Creates a new xsd:boolean-typed literal representing the specified value. |
Literal |
createLiteral(byte value)
Creates a new xsd:byte-typed literal representing the specified value. |
Literal |
createLiteral(double value)
Creates a new xsd:double-typed literal representing the specified value. |
Literal |
createLiteral(float value)
Creates a new xsd:float-typed literal representing the specified value. |
Literal |
createLiteral(int value)
Creates a new xsd:int-typed literal representing the specified value. |
Literal |
createLiteral(long value)
Creates a new xsd:long-typed literal representing the specified value. |
Literal |
createLiteral(short value)
Creates a new xsd:short-typed literal representing the specified value. |
Literal |
createLiteral(String label)
Creates a new literal with the supplied label. |
Literal |
createLiteral(String label,
String language)
Creates a new literal with the supplied label and language attribute. |
Literal |
createLiteral(String label,
URI datatype)
Creates a new literal with the supplied label and datatype. |
Literal |
createLiteral(XMLGregorianCalendar calendar)
Creates a new literal representing the specified calendar that is typed using the appropriate XML Schema date/time 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. |
| Method Detail |
|---|
URI createURI(String uri)
uri - A string-representation of a URI.
IlllegalArgumentException - If the supplied string does not resolve to a legal (absolute) URI.
URI createURI(String namespace,
String localName)
createURI(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.
IllegalArgumentException - If the supplied namespace and localname do not resolve to a legal
(absolute) URI.BNode createBNode()
BNode createBNode(String nodeID)
nodeID - The blank node identifier.
Literal createLiteral(String label)
label - The literal's label.
Literal createLiteral(String label,
String language)
label - The literal's label.language - The literal's language attribute, or null if the literal
doesn't have a language.
Literal createLiteral(String label,
URI datatype)
label - The literal's label.datatype - The literal's datatype, or null if the literal doesn't
have a datatype.Literal createLiteral(boolean value)
value - The value for the literal.
Literal createLiteral(byte value)
value - The value for the literal.
Literal createLiteral(short value)
value - The value for the literal.
Literal createLiteral(int value)
value - The value for the literal.
Literal createLiteral(long value)
value - The value for the literal.
Literal createLiteral(float value)
value - The value for the literal.
Literal createLiteral(double value)
value - The value for the literal.
Literal createLiteral(XMLGregorianCalendar calendar)
calendar - The value for the literal.
Statement createStatement(Resource subject,
URI predicate,
Value object)
subject - The statement's subject.predicate - The statement's predicate.object - The statement's object.
Statement createStatement(Resource subject,
URI predicate,
Value object,
Resource context)
subject - The statement's subject.predicate - The statement's predicate.object - The statement's object.context - The statement's context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||