|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.trippi.impl.kowari.KowariSessionFactory
public class KowariSessionFactory
A TriplestoreSessionFactory
that provides Kowari sessions.
This wraps Kowari's built-in SessionFactory
object.
Field Summary | |
---|---|
static java.lang.String[] |
TRIPLE_LANGUAGES
spo |
static java.lang.String[] |
TUPLE_LANGUAGES
itql, rdql |
static java.net.URI |
XSD_MODEL_URI
http://tucana.org/tucana#XMLSchemaModel |
Constructor Summary | |
---|---|
KowariSessionFactory(java.lang.String hostname,
int port,
java.lang.String serverName,
java.lang.String modelName,
java.lang.String textModelName,
boolean autoCreate,
AliasManager aliasManager)
Constructor for a remote Kowari triplestore. |
|
KowariSessionFactory(java.lang.String serverPath,
java.lang.String serverName,
java.lang.String modelName,
java.lang.String textModelName,
boolean autoCreate,
AliasManager aliasManager)
Constructor for a local Kowari triplestore. |
Method Summary | |
---|---|
void |
close()
Free up any system resources allocated by the session factory. |
void |
finalize()
Ensure close() gets called at garbage collection time. |
java.lang.String[] |
listTripleLanguages()
|
java.lang.String[] |
listTupleLanguages()
|
TriplestoreSession |
newSession()
Get a new session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] TUPLE_LANGUAGES
public static final java.lang.String[] TRIPLE_LANGUAGES
public static java.net.URI XSD_MODEL_URI
Constructor Detail |
---|
public KowariSessionFactory(java.lang.String serverPath, java.lang.String serverName, java.lang.String modelName, java.lang.String textModelName, boolean autoCreate, AliasManager aliasManager) throws java.net.URISyntaxException, TrippiException
java.net.URISyntaxException
TrippiException
public KowariSessionFactory(java.lang.String hostname, int port, java.lang.String serverName, java.lang.String modelName, java.lang.String textModelName, boolean autoCreate, AliasManager aliasManager) throws java.net.URISyntaxException, TrippiException
java.net.URISyntaxException
TrippiException
Method Detail |
---|
public TriplestoreSession newSession() throws TrippiException
TriplestoreSessionFactory
newSession
in interface TriplestoreSessionFactory
TrippiException
public java.lang.String[] listTripleLanguages()
listTripleLanguages
in interface TriplestoreSessionFactory
public java.lang.String[] listTupleLanguages()
listTupleLanguages
in interface TriplestoreSessionFactory
public void close() throws TrippiException
TriplestoreSessionFactory
close
in interface TriplestoreSessionFactory
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 |