|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.trippi.impl.sesame.SesameSession
public class SesameSession
A TriplestoreSession
that wraps a SesameRepository.
Field Summary | |
---|---|
static java.lang.String |
RDQL
|
static java.lang.String |
RQL
|
static java.lang.String |
SERQL
|
static java.lang.String |
SPO
|
static java.lang.String[] |
TRIPLE_LANGUAGES
serql, spo |
static java.lang.String[] |
TUPLE_LANGUAGES
serql, rdql, rql |
Constructor Summary | |
---|---|
SesameSession(org.openrdf.sesame.repository.SesameRepository repository,
AliasManager aliasManager)
Construct a Sesame session. |
Method Summary | |
---|---|
void |
add(java.util.Set triples)
Add the given triples to the store. |
void |
close()
Close the session, releasing any resources. |
void |
delete(java.util.Set triples)
Delete the given triples from the store. |
void |
finalize()
Ensure close() gets called at garbage collection time. |
TripleIterator |
findTriples(java.lang.String lang,
java.lang.String queryText)
|
TripleIterator |
findTriples(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object)
|
org.jrdf.graph.GraphElementFactory |
getElementFactory()
|
static org.openrdf.model.Graph |
getSesameGraph(java.util.Iterator jrdfTriples)
|
static org.openrdf.model.Literal |
getSesameLiteral(org.jrdf.graph.Literal literal,
org.openrdf.model.ValueFactory valueFactory)
|
static org.openrdf.model.Resource |
getSesameResource(org.jrdf.graph.SubjectNode subject,
org.openrdf.model.ValueFactory valueFactory)
|
static org.openrdf.model.Statement |
getSesameStatement(org.jrdf.graph.Triple triple,
org.openrdf.model.ValueFactory valueFactory)
|
static org.openrdf.model.URI |
getSesameURI(org.jrdf.graph.URIReference uriReference,
org.openrdf.model.ValueFactory valueFactory)
|
static org.openrdf.model.Value |
getSesameValue(org.jrdf.graph.ObjectNode object,
org.openrdf.model.ValueFactory valueFactory)
|
java.lang.String[] |
listTripleLanguages()
|
java.lang.String[] |
listTupleLanguages()
|
TupleIterator |
query(java.lang.String queryText,
java.lang.String language)
Perform a tuple query against the store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RDQL
public static final java.lang.String RQL
public static final java.lang.String SERQL
public static final java.lang.String SPO
public static final java.lang.String[] TUPLE_LANGUAGES
public static final java.lang.String[] TRIPLE_LANGUAGES
Constructor Detail |
---|
public SesameSession(org.openrdf.sesame.repository.SesameRepository repository, AliasManager aliasManager)
Method Detail |
---|
public java.lang.String[] listTupleLanguages()
listTupleLanguages
in interface TriplestoreSession
public java.lang.String[] listTripleLanguages()
listTripleLanguages
in interface TriplestoreSession
public org.jrdf.graph.GraphElementFactory getElementFactory()
public void add(java.util.Set triples) throws TrippiException
TriplestoreSession
add
in interface TriplestoreSession
triples
- a Set of Triple
objects.
TrippiException
- if adding to the store otherwise failed.public void delete(java.util.Set triples) throws TrippiException
TriplestoreSession
delete
in interface TriplestoreSession
triples
- a Set of Triple
objects.
TrippiException
- if deleting from the store failed.public TripleIterator findTriples(org.jrdf.graph.SubjectNode subject, org.jrdf.graph.PredicateNode predicate, org.jrdf.graph.ObjectNode object) throws TrippiException
findTriples
in interface TriplestoreSession
TrippiException
public TripleIterator findTriples(java.lang.String lang, java.lang.String queryText) throws TrippiException
findTriples
in interface TriplestoreSession
TrippiException
public TupleIterator query(java.lang.String queryText, java.lang.String language) throws TrippiException
TriplestoreSession
query
in interface TriplestoreSession
queryText
- the text of the querylanguage
- the query language
TrippiException
public void close() throws TrippiException
TriplestoreSession
close
in interface TriplestoreSession
TrippiException
public void finalize() throws TrippiException
finalize
in class java.lang.Object
TrippiException
public static org.openrdf.model.Graph getSesameGraph(java.util.Iterator jrdfTriples)
public static org.openrdf.model.Statement getSesameStatement(org.jrdf.graph.Triple triple, org.openrdf.model.ValueFactory valueFactory)
public static org.openrdf.model.Resource getSesameResource(org.jrdf.graph.SubjectNode subject, org.openrdf.model.ValueFactory valueFactory)
public static org.openrdf.model.URI getSesameURI(org.jrdf.graph.URIReference uriReference, org.openrdf.model.ValueFactory valueFactory)
public static org.openrdf.model.Value getSesameValue(org.jrdf.graph.ObjectNode object, org.openrdf.model.ValueFactory valueFactory)
public static org.openrdf.model.Literal getSesameLiteral(org.jrdf.graph.Literal literal, org.openrdf.model.ValueFactory valueFactory)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |