|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 TriplestoreSessionpublic java.lang.String[] listTripleLanguages()
listTripleLanguages in interface TriplestoreSessionpublic org.jrdf.graph.GraphElementFactory getElementFactory()
public void add(java.util.Set triples)
throws TrippiException
TriplestoreSession
add in interface TriplestoreSessiontriples - 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 TriplestoreSessiontriples - 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 TriplestoreSessionTrippiException
public TripleIterator findTriples(java.lang.String lang,
java.lang.String queryText)
throws TrippiException
findTriples in interface TriplestoreSessionTrippiException
public TupleIterator query(java.lang.String queryText,
java.lang.String language)
throws TrippiException
TriplestoreSession
query in interface TriplestoreSessionqueryText - the text of the querylanguage - the query language
TrippiException
public void close()
throws TrippiException
TriplestoreSession
close in interface TriplestoreSessionTrippiException
public void finalize()
throws TrippiException
finalize in class java.lang.ObjectTrippiExceptionpublic 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 | ||||||||