|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semanticdesktop.aperture.rdf.impl.ValueFactoryImpl
public class ValueFactoryImpl
An implementation of the ValueFactory interface that relays creation of RDF2Go datatypes to a given RDF2Go Model.
Constructor Summary | |
---|---|
ValueFactoryImpl(Model model)
|
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; |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueFactoryImpl(Model model)
Method Detail |
---|
public Literal createLiteral(String label) throws ModelException
ValueFactory
createLiteral
in interface ValueFactory
label
- The literal's label.
ModelException
public Literal createLiteral(String label, URI datatype) throws ModelException
ValueFactory
createLiteral
in interface ValueFactory
label
- The literal's label.datatype
- The literal's datatype, or null if the literal doesn't have a datatype.
ModelException
public Literal createLiteral(boolean value) throws ModelException
ValueFactory
createLiteral
in interface ValueFactory
value
- The value for the literal
ModelException
public Literal createLiteral(long value) throws ModelException
ValueFactory
createLiteral
in interface ValueFactory
value
- The value for the literal
ModelException
public Literal createLiteral(int value) throws ModelException
ValueFactory
createLiteral
in interface ValueFactory
value
- The value for the literal
ModelException
public Literal createLiteral(short value) throws ModelException
ValueFactory
createLiteral
in interface ValueFactory
value
- The value for the literal
ModelException
public Literal createLiteral(byte value) throws ModelException
ValueFactory
createLiteral
in interface ValueFactory
value
- The value for the literal
ModelException
public Literal createLiteral(double value) throws ModelException
ValueFactory
createLiteral
in interface ValueFactory
value
- The value for the literal
ModelException
public Literal createLiteral(float value) throws ModelException
ValueFactory
createLiteral
in interface ValueFactory
value
- The value for the literal
ModelException
public Statement createStatement(Resource subject, URI predicate, Node object)
ValueFactory
createStatement
in interface ValueFactory
subject
- The statement's subject.predicate
- The statement's predicate.object
- The statement's object.
public URI createURI(String uri) throws ModelException
ValueFactory
createURI
in interface ValueFactory
uri
- A string-representation of a URI.
ModelException
public URI createURI(String namespaceUri, String localName) throws ModelException
ValueFactory
createURI
in interface ValueFactory
namespaceUri
- A string-representation of a namespace URI.localName
- A string representation of the local name
ModelException
public BlankNode createBlankNode()
ValueFactory
createBlankNode
in interface ValueFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |