|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.model.impl.ValueFactoryImpl
Default implementation of the ValueFactory interface that uses the RDF model classes from this package.
| Constructor Summary | |
ValueFactoryImpl()
Creates a new ValueFactoryImpl. |
|
ValueFactoryImpl(String documentURI)
Creates a new ValueFactoryImpl that uses the specified document URI to generate a bNode prefix. |
|
| Method Summary | |
BNode |
createBNode()
Creates a new bNode. |
BNode |
createBNode(String nodeId)
creates a new bNode with the given node identifier. |
Literal |
createLiteral(String value)
Creates a new literal with the supplied value. |
Literal |
createLiteral(String value,
String language)
Creates a new literal with the supplied value and language attribute. |
Literal |
createLiteral(String value,
String language,
String datatype)
|
Literal |
createLiteral(String value,
URI datatype)
Creates a new literal with the supplied value and datatype. |
Statement |
createStatement(Resource subject,
URI predicate,
Value 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 namespace,
String localName)
Creates a new URI that will get the supplied namespace and local name. |
void |
setDocumentURI(String uri)
Sets the URI of the document that is currently being parsed. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ValueFactoryImpl()
public ValueFactoryImpl(String documentURI)
documentURI - A document URIsetDocumentURI(java.lang.String)| Method Detail |
public URI createURI(String uri)
ValueFactory
createURI in interface ValueFactoryuri - A string-representation of a URI.
public URI createURI(String namespace,
String localName)
ValueFactory
createURI in interface ValueFactorynamespace - A namespace.localName - A legal local name. A legal local name adheres to the
definition of an NCName as specified at
http://www.w3.org/TR/REC-xml-names/#NT-NCName.public BNode createBNode()
ValueFactory
createBNode in interface ValueFactorypublic BNode createBNode(String nodeId)
ValueFactory
createBNode in interface ValueFactorynodeId - the bnode identifier
public Literal createLiteral(String value)
ValueFactory
createLiteral in interface ValueFactoryvalue - The literal's value.
public Literal createLiteral(String value,
String language)
ValueFactory
createLiteral in interface ValueFactoryvalue - The literal's value.language - The literal's language attribute, or null if the
literal doesn't have a language.
public Literal createLiteral(String value,
URI datatype)
ValueFactory
createLiteral in interface ValueFactoryvalue - The literal's value.datatype - The literal's datatype, or null if the literal
doesn't have a datatype.
public Literal createLiteral(String value,
String language,
String datatype)
public Statement createStatement(Resource subject,
URI predicate,
Value object)
ValueFactory
createStatement in interface ValueFactorysubject - The statement's subject.predicate - The statement's predicate.object - The statement's object.
public void setDocumentURI(String uri)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||