|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.trippi.impl.base.SynchronizedTriplestoreSession
public class SynchronizedTriplestoreSession
A synchronized read/write session to an RDF database. If a session doesn't support writes, the add and delete methods will throw UnsupportedOperationException (an unchecked exception).
Constructor Summary | |
---|---|
SynchronizedTriplestoreSession(TriplestoreSession session)
|
Method Summary | |
---|---|
void |
add(java.util.Set triples)
Add the given triples to the store. |
void |
close()
Wait in line |
void |
delete(java.util.Set triples)
Delete the given triples from the store. |
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)
|
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. |
void |
releaseLock()
If the current thread is at position zero, remove it from the queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynchronizedTriplestoreSession(TriplestoreSession session)
Method Detail |
---|
public void add(java.util.Set triples) throws java.lang.UnsupportedOperationException, TrippiException
TriplestoreSession
add
in interface TriplestoreSession
triples
- a Set of Triple
objects.
java.lang.UnsupportedOperationException
- if modifications are not supported.
TrippiException
- if adding to the store otherwise failed.public void delete(java.util.Set triples) throws java.lang.UnsupportedOperationException, TrippiException
TriplestoreSession
delete
in interface TriplestoreSession
triples
- a Set of Triple
objects.
java.lang.UnsupportedOperationException
- if modifications are not supported.
TrippiException
- if deleting from the store failed.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 TripleIterator findTriples(java.lang.String lang, java.lang.String queryText) throws TrippiException
findTriples
in interface TriplestoreSession
TrippiException
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 java.lang.String[] listTupleLanguages()
listTupleLanguages
in interface TriplestoreSession
public java.lang.String[] listTripleLanguages()
listTripleLanguages
in interface TriplestoreSession
public void close() throws TrippiException
close
in interface TriplestoreSession
TrippiException
public void releaseLock()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |