|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.trippi.impl.mpt.MPTSession
public class MPTSession
Field Summary | |
---|---|
static java.lang.String[] |
TRIPLE_LANGUAGES
|
static java.lang.String[] |
TUPLE_LANGUAGES
|
Constructor Summary | |
---|---|
MPTSession(org.apache.commons.dbcp.BasicDataSource dbPool,
org.nsdl.mptstore.core.DatabaseAdaptor adaptor,
int fetchSize)
|
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. |
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)
|
protected static org.nsdl.mptstore.rdf.Node |
jrdfToMPT(org.jrdf.graph.Node jrdfNode)
|
protected static java.util.Set |
jrdfToMPT(java.util.Set jrdfTriples)
Convert the given set of JRDF Triple objects to MPT Triple objects. |
java.lang.String[] |
listTripleLanguages()
|
java.lang.String[] |
listTupleLanguages()
|
TupleIterator |
query(java.lang.String query,
java.lang.String lang)
Perform a tuple query against the store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] TRIPLE_LANGUAGES
public static final java.lang.String[] TUPLE_LANGUAGES
Constructor Detail |
---|
public MPTSession(org.apache.commons.dbcp.BasicDataSource dbPool, org.nsdl.mptstore.core.DatabaseAdaptor adaptor, int fetchSize)
Method Detail |
---|
public java.lang.String[] listTripleLanguages()
listTripleLanguages
in interface TriplestoreSession
public java.lang.String[] listTupleLanguages()
listTupleLanguages
in interface TriplestoreSession
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 TupleIterator query(java.lang.String query, java.lang.String lang) throws TrippiException
TriplestoreSession
query
in interface TriplestoreSession
query
- the text of the querylang
- the query language
TrippiException
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.protected static java.util.Set jrdfToMPT(java.util.Set jrdfTriples)
protected static org.nsdl.mptstore.rdf.Node jrdfToMPT(org.jrdf.graph.Node jrdfNode)
public void close() throws TrippiException
TriplestoreSession
close
in interface TriplestoreSession
TrippiException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |