|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectat.newmedialab.ldpath.backend.jena.GenericJenaBackend
public class GenericJenaBackend
Add file description here!
Author: Sebastian Schaffert
| Constructor Summary | |
|---|---|
GenericJenaBackend(com.hp.hpl.jena.rdf.model.Model model)
|
|
| Method Summary | |
|---|---|
Boolean |
booleanValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
Return the boolean value of a literal node. |
com.hp.hpl.jena.rdf.model.RDFNode |
createLiteral(String content)
Create a literal node with the content passed as argument |
com.hp.hpl.jena.rdf.model.RDFNode |
createLiteral(String content,
Locale language,
URI type)
Create a literal node with the content passed as argument |
com.hp.hpl.jena.rdf.model.RDFNode |
createURI(String uri)
Create a URI mode with the URI passed as argument |
Date |
dateTimeValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
TODO |
Date |
dateValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
TODO |
BigDecimal |
decimalValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
Return the decimal number of a literal node. |
Double |
doubleValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
Return the double value of a literal node. |
Float |
floatValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
Return the float value of a literal node. |
Locale |
getLiteralLanguage(com.hp.hpl.jena.rdf.model.RDFNode n)
Return the language of the literal node passed as argument. |
URI |
getLiteralType(com.hp.hpl.jena.rdf.model.RDFNode n)
Return the URI of the type of the literal node passed as argument. |
ThreadPoolExecutor |
getThreadPool()
In case the backend supports threading, this method should return the ExecutorService representing the thread pool. |
BigInteger |
integerValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
Return the arbitrary length integer value of a literal node. |
Integer |
intValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
Return the 32bit integer value of a literal node. |
boolean |
isBlank(com.hp.hpl.jena.rdf.model.RDFNode n)
Test whether the node passed as argument is a blank node |
boolean |
isLiteral(com.hp.hpl.jena.rdf.model.RDFNode n)
Test whether the node passed as argument is a literal |
boolean |
isURI(com.hp.hpl.jena.rdf.model.RDFNode n)
Test whether the node passed as argument is a URI |
Collection<com.hp.hpl.jena.rdf.model.RDFNode> |
listObjects(com.hp.hpl.jena.rdf.model.RDFNode subject,
com.hp.hpl.jena.rdf.model.RDFNode property)
List the objects of triples in the triple store underlying this backend that have the subject and property given as argument. |
Collection<com.hp.hpl.jena.rdf.model.RDFNode> |
listSubjects(com.hp.hpl.jena.rdf.model.RDFNode property,
com.hp.hpl.jena.rdf.model.RDFNode object)
List the subjects of triples in the triple store underlying this backend that have the object and property given as argument. |
Long |
longValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
Return the long value of a literal node. |
String |
stringValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
Return the lexial representation of a node. |
boolean |
supportsThreading()
Return true if the underlying backend supports the parallel execution of queries. |
Date |
timeValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
TODO |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericJenaBackend(com.hp.hpl.jena.rdf.model.Model model)
| Method Detail |
|---|
public boolean supportsThreading()
supportsThreading in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>public ThreadPoolExecutor getThreadPool()
getThreadPool in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>public boolean isLiteral(com.hp.hpl.jena.rdf.model.RDFNode n)
isLiteral in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>n - the node to check
public boolean isURI(com.hp.hpl.jena.rdf.model.RDFNode n)
isURI in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>n - the node to check
public boolean isBlank(com.hp.hpl.jena.rdf.model.RDFNode n)
isBlank in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>n - the node to check
public Locale getLiteralLanguage(com.hp.hpl.jena.rdf.model.RDFNode n)
getLiteralLanguage in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>n - the literal node for which to return the language
IllegalArgumentException - in case the node is no literalpublic URI getLiteralType(com.hp.hpl.jena.rdf.model.RDFNode n)
getLiteralType in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>n - the literal node for which to return the typer
IllegalArgumentException - in case the node is no literalpublic com.hp.hpl.jena.rdf.model.RDFNode createLiteral(String content)
createLiteral in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>content - string content to represent inside the literal
public com.hp.hpl.jena.rdf.model.RDFNode createLiteral(String content,
Locale language,
URI type)
createLiteral in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>content - string content to represent inside the literal
public com.hp.hpl.jena.rdf.model.RDFNode createURI(String uri)
createURI in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>uri - URI of the resource to create
public String stringValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
stringValue in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>rdfNode -
public Double doubleValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
doubleValue in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>rdfNode - the literal node for which to return the double value
NumberFormatException - in case the literal cannot be represented as double value
ArithmeticException - in case the literal cannot be represented as double value
IllegalArgumentException - in case the node passed as argument is not a literalpublic Long longValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
longValue in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>rdfNode - the literal node for which to return the long value
NumberFormatException - in case the literal cannot be represented as long value
ArithmeticException - in case the literal cannot be represented as long value
IllegalArgumentException - in case the node passed as argument is not a literalpublic Boolean booleanValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
Boolean.parseBoolean(String)
booleanValue in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>rdfNode - the literal node for which to return the boolean value
IllegalArgumentException - in case the node passed as argument is not a literalpublic Date dateTimeValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
dateTimeValue in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>rdfNode - the literal node for which to return the dateTime value
IllegalArgumentException - in case the node passed as argument is not a literalpublic Date dateValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
dateValue in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>rdfNode - the literal node for which to return the date value
IllegalArgumentException - in case the node passed as argument is not a literalpublic Date timeValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
timeValue in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>rdfNode - the literal node for which to return the time value
IllegalArgumentException - in case the node passed as argument is not a literalpublic Float floatValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
floatValue in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>rdfNode - the literal node for which to return the float value
NumberFormatException - in case the literal cannot be represented as float value
ArithmeticException - in case the literal cannot be represented as float value
IllegalArgumentException - in case the node passed as argument is not a literalpublic Integer intValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
Integer. For bigger nuber one might want to use
xsd:integer represented by BigInteger.
intValue in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>rdfNode - the literal node for which to return the Integer (xsd:int) value
NumberFormatException - in case the literal cannot be represented as 32 bit integer value
ArithmeticException - in case the literal cannot be represented as 32 bit integer value
IllegalArgumentException - in case the node passed as argument is not a literalpublic BigInteger integerValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
integerValue in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>rdfNode - the literal node for which to return the xsd:integer value
NumberFormatException - in case the literal cannot be represented as integer value
ArithmeticException - in case the literal cannot be represented as long value
IllegalArgumentException - in case the node passed as argument is integer a literalpublic BigDecimal decimalValue(com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
decimalValue in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>rdfNode - the literal node for which to return the xsd:decimal value
NumberFormatException - in case the literal cannot be represented as decimal value
ArithmeticException - in case the literal cannot be represented as decimal value
IllegalArgumentException - in case the node passed as argument is not a literal
public Collection<com.hp.hpl.jena.rdf.model.RDFNode> listObjects(com.hp.hpl.jena.rdf.model.RDFNode subject,
com.hp.hpl.jena.rdf.model.RDFNode property)
listObjects in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>subject - the subject of the triples to look forproperty - the property of the triples to look for, null is interpreted as wildcard
public Collection<com.hp.hpl.jena.rdf.model.RDFNode> listSubjects(com.hp.hpl.jena.rdf.model.RDFNode property,
com.hp.hpl.jena.rdf.model.RDFNode object)
listSubjects in interface at.newmedialab.ldpath.api.backend.RDFBackend<com.hp.hpl.jena.rdf.model.RDFNode>object - the object of the triples to look forproperty - the property of the triples to look for, null is interpreted as wildcard
UnsupportedOperationException - in case reverse selection is not supported (e.g. when querying Linked Data)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||