public class SesameConnectionBackend extends AbstractSesameBackend
Modifier | Constructor and Description |
---|---|
|
SesameConnectionBackend(org.openrdf.repository.RepositoryConnection connection)
Create a new
SesameConnectionBackend . |
protected |
SesameConnectionBackend(org.openrdf.repository.RepositoryConnection connection,
boolean includeInferred,
org.openrdf.model.Resource... contexts) |
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
|
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.
|
static SesameConnectionBackend |
withConnection(org.openrdf.repository.RepositoryConnection connection)
Create a new
SesameConnectionBackend . |
static SesameConnectionBackend |
withConnection(org.openrdf.repository.RepositoryConnection connection,
boolean includeInferred) |
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
public SesameConnectionBackend(org.openrdf.repository.RepositoryConnection connection)
SesameConnectionBackend
. This backend is context-agnostig (ignores all context information).connection
- the RepositoryConnection
to use.ContextAwareSesameConnectionBackend.ContextAwareSesameConnectionBackend(RepositoryConnection, Resource...)
protected SesameConnectionBackend(org.openrdf.repository.RepositoryConnection connection, boolean includeInferred, org.openrdf.model.Resource... contexts)
public org.openrdf.model.Literal createLiteral(String content)
NodeBackend
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)
NodeBackend
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)
NodeBackend
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)
RDFBackend
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 for, null
is interpreted as wildcardpublic Collection<org.openrdf.model.Value> listSubjects(org.openrdf.model.Value property, org.openrdf.model.Value object)
RDFBackend
listSubjects
in interface RDFBackend<org.openrdf.model.Value>
listSubjects
in class AbstractSesameBackend
property
- the property of the triples to look for, null
is interpreted as wildcardobject
- the object of the triples to look forpublic static SesameConnectionBackend withConnection(org.openrdf.repository.RepositoryConnection connection)
SesameConnectionBackend
. This backend is context-agnostig (ignores all context information).connection
- the RepositoryConnection
to use.ContextAwareSesameConnectionBackend.withConnection(RepositoryConnection, Resource...)
public static SesameConnectionBackend withConnection(org.openrdf.repository.RepositoryConnection connection, boolean includeInferred)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.