public class SesameRepositoryBackend extends AbstractSesameBackend
listObjects(Value, Value)
or listSubjects(Value, Value)
.
Consider using the SesameConnectionBackend
for inproved performance!
Implementatins can either use this class directly or implement their own Sesame-based backend by subclassing
and calling the super constructor.
Modifier | Constructor and Description |
---|---|
protected |
SesameRepositoryBackend()
Initialise a new sesame backend.
|
|
SesameRepositoryBackend(org.openrdf.repository.Repository repository)
Initialise a new sesame backend using the repository passed as argument.
|
|
SesameRepositoryBackend(org.openrdf.repository.Repository repository,
boolean includeInferred,
org.openrdf.model.Resource... contexts)
Initialise a new sesame backend using the repository.
|
Modifier and Type | Method and Description |
---|---|
org.openrdf.model.Literal |
createLiteral(String content)
Create a literal node with the content passed as argument
|
org.openrdf.model.Literal |
createLiteral(String content,
Locale language,
URI type)
Create a literal node with the content passed as argument
|
org.openrdf.model.URI |
createURI(String uri)
Create a URI mode with the URI passed as argument
|
org.openrdf.repository.Repository |
getRepository() |
Collection<org.openrdf.model.Value> |
listObjects(org.openrdf.model.Value subject,
org.openrdf.model.Value property)
List the objects of triples in the triple store underlying this backend that have the subject and
property given as argument.
|
Collection<org.openrdf.model.Value> |
listSubjects(org.openrdf.model.Value property,
org.openrdf.model.Value object)
List the subjects of triples in the triple store underlying this backend that have the object and
property given as argument.
|
void |
setRepository(org.openrdf.repository.Repository repository) |
createLiteralInternal, createLiteralInternal, createURIInternal, getThreadPool, listObjectsInternal, listSubjectsInternal, merge, supportsThreading
booleanValue, dateTimeValue, dateValue, debugType, decimalValue, doubleValue, floatValue, getLiteralLanguage, getLiteralType, integerValue, intValue, isBlank, isLiteral, isURI, longValue, stringValue, timeValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
booleanValue, dateTimeValue, dateValue, decimalValue, doubleValue, floatValue, getLiteralLanguage, getLiteralType, integerValue, intValue, isBlank, isLiteral, isURI, longValue, stringValue, timeValue
protected SesameRepositoryBackend()
public SesameRepositoryBackend(org.openrdf.repository.Repository repository)
repository
- public SesameRepositoryBackend(org.openrdf.repository.Repository repository, boolean includeInferred, org.openrdf.model.Resource... contexts)
repository
- includeInferred
- contexts
- public org.openrdf.repository.Repository getRepository()
public void setRepository(org.openrdf.repository.Repository repository)
public org.openrdf.model.Literal createLiteral(String content)
createLiteral
in interface NodeBackend<org.openrdf.model.Value>
createLiteral
in class AbstractSesameBackend
content
- string content to represent inside the literalpublic org.openrdf.model.Literal createLiteral(String content, Locale language, URI type)
createLiteral
in interface NodeBackend<org.openrdf.model.Value>
createLiteral
in class AbstractSesameBackend
content
- string content to represent inside the literalpublic org.openrdf.model.URI createURI(String uri)
createURI
in interface NodeBackend<org.openrdf.model.Value>
createURI
in class AbstractSesameBackend
uri
- URI of the resource to createpublic Collection<org.openrdf.model.Value> listObjects(org.openrdf.model.Value subject, org.openrdf.model.Value property)
listObjects
in interface RDFBackend<org.openrdf.model.Value>
listObjects
in class AbstractSesameBackend
subject
- the subject of the triples to look forproperty
- the property of the triples to look forpublic Collection<org.openrdf.model.Value> listSubjects(org.openrdf.model.Value property, org.openrdf.model.Value object)
listSubjects
in interface RDFBackend<org.openrdf.model.Value>
listSubjects
in class AbstractSesameBackend
object
- the object of the triples to look forproperty
- the property of the triples to look forUnsupportedOperationException
- in case reverse selection is not supported (e.g. when querying Linked Data)Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.