|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValueFactory
Creates RDF2Go Literals, Uris, Blank nodes and Statements.
Method Summary | |
---|---|
BlankNode |
createBlankNode()
Creates a new blank node. |
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,
URI datatype)
Creates a new literal with the supplied label and datatype. |
Statement |
createStatement(Resource subject,
URI predicate,
Node object)
Creates a new statement with the supplied subject, predicate and object. |
URI |
createURI(String uri)
Creates a new URI from the supplied string-representation. |
URI |
createURI(String namespaceUri,
String localName)
Creates a new URI from the namespace uri and local name; |
Method Detail |
---|
URI createURI(String uri) throws ModelException
uri
- A string-representation of a URI.
ModelException
URI createURI(String namespaceUri, String localName) throws ModelException
namespaceUri
- A string-representation of a namespace URI.localName
- A string representation of the local name
ModelException
BlankNode createBlankNode()
Literal createLiteral(String label) throws ModelException
label
- The literal's label.
ModelException
Literal createLiteral(String label, URI datatype) throws ModelException
label
- The literal's label.datatype
- The literal's datatype, or null if the literal doesn't have a datatype.
ModelException
Literal createLiteral(boolean value) throws ModelException
value
- The value for the literal
ModelException
Literal createLiteral(long value) throws ModelException
value
- The value for the literal
ModelException
Literal createLiteral(int value) throws ModelException
value
- The value for the literal
ModelException
Literal createLiteral(short value) throws ModelException
value
- The value for the literal
ModelException
Literal createLiteral(byte value) throws ModelException
value
- The value for the literal
ModelException
Literal createLiteral(double value) throws ModelException
value
- The value for the literal
ModelException
Literal createLiteral(float value) throws ModelException
value
- The value for the literal
ModelException
Statement createStatement(Resource subject, URI predicate, Node object)
subject
- The statement's subject.predicate
- The statement's predicate.object
- The statement's object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |