|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 TriplestoreReader
public void setAliasMap(java.util.Map aliasMap)
TriplestoreReader
setAliasMap
in interface TriplestoreReader
public java.lang.String[] listTupleLanguages()
TriplestoreReader
listTupleLanguages
in interface TriplestoreReader
public 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 TriplestoreReader
TrippiException
public TupleIterator findTuples(java.lang.String queryLang, java.lang.String tupleQuery, int limit, boolean distinct) throws TrippiException
TriplestoreReader
findTuples
in interface TriplestoreReader
queryLang
- 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 TriplestoreReader
TrippiException
public TripleIterator findTriples(java.lang.String queryLang, java.lang.String tripleQuery, int limit, boolean distinct) throws TrippiException
findTriples
in interface TriplestoreReader
queryLang
- 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 TriplestoreReader
TrippiException
public TripleIterator findTriples(org.jrdf.graph.SubjectNode subject, org.jrdf.graph.PredicateNode predicate, org.jrdf.graph.ObjectNode object, int limit) throws TrippiException
TriplestoreReader
null
means "any".
findTriples
in interface TriplestoreReader
TrippiException
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 TriplestoreReader
TrippiException
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 TriplestoreReader
queryLang
- the query languagetupleQuery
- the text of the querytripleTemplate
- the template used to construct the triples
TrippiException
TriplePattern
public void close() throws TrippiException
TriplestoreReader
close
in interface TriplestoreReader
TrippiException
public void finalize() throws TrippiException
finalize
in class java.lang.Object
TrippiException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |