|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GraphValueFactory
| Method Summary | |
|---|---|
Literal |
createLiteral(Object object)
Converts a known Java class (such as Integer) into an RDF literal (XSD:int). |
Literal |
createLiteral(String lexicalValue)
Creates a new literal with the given lexical value, with no language or datatype. |
Literal |
createLiteral(String lexicalValue,
String languageType)
Creates a new literal with the given lexical value, with a given language but no datatype. |
Literal |
createLiteral(String lexicalValue,
URI datatypeURI)
Creates a new literal with the given lexical value and given datatype. |
URIReference |
createURIReference(URI uri)
Create a URI reference. |
URIReference |
createURIReference(URI uri,
boolean validate)
Create a URI reference without checking if the URI given is a valid RDF URI, currently if the URI is absolute. |
| Method Detail |
|---|
URIReference createURIReference(URI uri)
throws GraphElementFactoryException
uri - The URI of the resource.
GraphElementFactoryException - If the resource failed to be created.
URIReference createURIReference(URI uri,
boolean validate)
throws GraphElementFactoryException
uri - The URI of the resource.validate - true if we disbale checking to see if the URI is valid.
GraphElementFactoryException - If the resource failed to be created.
Literal createLiteral(Object object)
throws GraphElementFactoryException
object - the value object (a Java class) to create the literal from.
GraphElementFactoryException - If the literal failed to be created.
IllegalArgumentException - if there is no registered class to value creator mapping in the datatype
factory.
Literal createLiteral(String lexicalValue)
throws GraphElementFactoryException
lexicalValue - The lexical value for the literal.
GraphElementFactoryException - If the literal failed to be created.
Literal createLiteral(String lexicalValue,
String languageType)
throws GraphElementFactoryException
lexicalValue - The lexical value for the literal. Cannot be null.languageType - The language of the literal or null if not required.
GraphElementFactoryException - If the literal failed to be created.
Literal createLiteral(String lexicalValue,
URI datatypeURI)
throws GraphElementFactoryException
lexicalValue - The lexical value for the literal. Cannot be null.datatypeURI - The URI of the datatype of the literal or null if not
required.
GraphElementFactoryException - If the literal failed to be created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||