|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.trippi.impl.kowari.KowariSession
public class KowariSession
A TriplestoreSession that wraps a Kowari session and
an associated Jena Model (for RDQL query support).
| Constructor Summary | |
|---|---|
KowariSession(org.kowari.store.DatabaseSession dbSession,
java.net.URI modelURI,
java.net.URI textModelURI,
com.hp.hpl.jena.rdf.model.Model jenaModel,
AliasManager aliasManager)
Construct a local Kowari session. |
|
KowariSession(org.kowari.server.Session session,
java.net.URI modelURI,
java.net.URI textModelURI,
com.hp.hpl.jena.rdf.model.Model jenaModel,
AliasManager aliasManager)
Construct a remote Kowari 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()
|
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. |
static java.lang.String |
toString(org.jrdf.graph.Node node)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KowariSession(org.kowari.store.DatabaseSession dbSession,
java.net.URI modelURI,
java.net.URI textModelURI,
com.hp.hpl.jena.rdf.model.Model jenaModel,
AliasManager aliasManager)
jenaModel - the Jena Model to use for RDQL queries. If null, this
session won't support RDQL queries.
public KowariSession(org.kowari.server.Session session,
java.net.URI modelURI,
java.net.URI textModelURI,
com.hp.hpl.jena.rdf.model.Model jenaModel,
AliasManager aliasManager)
jenaModel - the Jena Model to use for RDQL queries. If null, this
session won't support RDQL queries.
org.jrdf.graph.GraphException| Method Detail |
|---|
public org.jrdf.graph.GraphElementFactory getElementFactory()
throws org.jrdf.graph.GraphException
org.jrdf.graph.GraphExceptionpublic java.lang.String[] listTupleLanguages()
listTupleLanguages in interface TriplestoreSessionpublic java.lang.String[] listTripleLanguages()
listTripleLanguages in interface TriplestoreSession
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 java.lang.String toString(org.jrdf.graph.Node node)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||