|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.trippi.impl.base.SynchronizedTriplestoreReader
public class SynchronizedTriplestoreReader
A TriplestoreReader that provides synchronized read access to
a triplestore by means of a SynchronizedTriplestoreSession.
| Constructor Summary | |
|---|---|
SynchronizedTriplestoreReader(SynchronizedTriplestoreSession session,
AliasManager aliasManager)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Close the reader, releasing any resources. |
int |
countTriples(java.lang.String queryLang,
java.lang.String tripleQuery,
int limit,
boolean distinct)
Get the number of triples that would be returned via findTriples. |
int |
countTriples(java.lang.String queryLang,
java.lang.String tupleQuery,
java.lang.String tripleTemplate,
int limit,
boolean distinct)
Get the number of triples that would be returned via findTriples. |
int |
countTriples(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object,
int limit)
Get the number of triples that would be returned via findTriples. |
int |
countTuples(java.lang.String queryLang,
java.lang.String tupleQuery,
int limit,
boolean distinct)
Get the number of tuples that would be returned via findTuples. |
void |
finalize()
Ensure close() gets called at garbage collection time. |
TripleIterator |
findTriples(java.lang.String queryLang,
java.lang.String tripleQuery,
int limit,
boolean distinct)
Delegates to underlying session for non-basic queries. |
TripleIterator |
findTriples(java.lang.String queryLang,
java.lang.String tupleQuery,
java.lang.String tripleTemplate,
int limit,
boolean distinct)
Perform a tuple query on the store and return an iterator over the triples generated by applying the given triple template to the tuples. |
TripleIterator |
findTriples(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object,
int limit)
Perform a triple query on the store given a triple pattern where null
means "any". |
TupleIterator |
findTuples(java.lang.String queryLang,
java.lang.String tupleQuery,
int limit,
boolean distinct)
Perform a tuple query on the store and return an iterator over the tuples. |
java.util.Map |
getAliasMap()
Get the default alias map for queries. |
java.lang.String[] |
listTripleLanguages()
List the supported query languages that return triples. |
java.lang.String[] |
listTupleLanguages()
List the supported query languages that return tuples. |
void |
setAliasMap(java.util.Map aliasMap)
Set the default alias map for queries. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynchronizedTriplestoreReader(SynchronizedTriplestoreSession session,
AliasManager aliasManager)
session - the session to use for reading.| Method Detail |
|---|
public java.util.Map getAliasMap()
TriplestoreReader
getAliasMap in interface TriplestoreReaderpublic void setAliasMap(java.util.Map aliasMap)
TriplestoreReader
setAliasMap in interface TriplestoreReaderpublic java.lang.String[] listTupleLanguages()
TriplestoreReader
listTupleLanguages in interface TriplestoreReaderpublic java.lang.String[] listTripleLanguages()
TriplestoreReader
listTripleLanguages in interface TriplestoreReader
public int countTuples(java.lang.String queryLang,
java.lang.String tupleQuery,
int limit,
boolean distinct)
throws TrippiException
TriplestoreReader
countTuples in interface TriplestoreReaderTrippiException
public TupleIterator findTuples(java.lang.String queryLang,
java.lang.String tupleQuery,
int limit,
boolean distinct)
throws TrippiException
TriplestoreReader
findTuples in interface TriplestoreReaderqueryLang - the query languagetupleQuery - the text of the query
TrippiException
public int countTriples(java.lang.String queryLang,
java.lang.String tripleQuery,
int limit,
boolean distinct)
throws TrippiException
TriplestoreReader
countTriples in interface TriplestoreReaderTrippiException
public TripleIterator findTriples(java.lang.String queryLang,
java.lang.String tripleQuery,
int limit,
boolean distinct)
throws TrippiException
findTriples in interface TriplestoreReaderqueryLang - the query languagetripleQuery - the text of the query
TrippiException
public int countTriples(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object,
int limit)
throws TrippiException
TriplestoreReader
countTriples in interface TriplestoreReaderTrippiException
public TripleIterator findTriples(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object,
int limit)
throws TrippiException
TriplestoreReadernull
means "any".
findTriples in interface TriplestoreReaderTrippiException
public int countTriples(java.lang.String queryLang,
java.lang.String tupleQuery,
java.lang.String tripleTemplate,
int limit,
boolean distinct)
throws TrippiException
TriplestoreReader
countTriples in interface TriplestoreReaderTrippiException
public TripleIterator findTriples(java.lang.String queryLang,
java.lang.String tupleQuery,
java.lang.String tripleTemplate,
int limit,
boolean distinct)
throws TrippiException
TriplestoreReader
A triple template is a series of triple patterns used to generate
a graph from a group of tuples. See the TriplePattern
documentation for more detail.
findTriples in interface TriplestoreReaderqueryLang - the query languagetupleQuery - the text of the querytripleTemplate - the template used to construct the triples
TrippiExceptionTriplePattern
public void close()
throws TrippiException
TriplestoreReader
close in interface TriplestoreReaderTrippiException
public void finalize()
throws TrippiException
finalize in class java.lang.ObjectTrippiException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||