org.trippi.server
Class TrippiServer
java.lang.Object
org.trippi.server.TrippiServer
public class TrippiServer
- extends java.lang.Object
Implements a Trippi Server without regard to how it's exposed.
Method Summary |
java.lang.String |
find(java.lang.String type,
java.lang.String template,
java.lang.String lang,
java.lang.String query,
java.lang.String limit,
java.lang.String distinct,
java.lang.String format,
java.lang.String dumbTypes,
java.lang.String flush,
java.io.OutputStream out)
Do a query against the triplestore, putting results into the
OutputStream. |
static boolean |
getBoolean(java.lang.String in,
boolean defaultValue)
|
TriplestoreReader |
getReader()
|
static java.lang.String |
getResponseMediaType(java.lang.String formatName,
boolean isTupleQuery,
boolean useDumbType)
|
TriplestoreWriter |
getWriter()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrippiServer
public TrippiServer(TriplestoreReader reader)
TrippiServer
public TrippiServer(TriplestoreConnector conn)
TrippiServer
public TrippiServer(TriplestoreWriter writer)
getReader
public TriplestoreReader getReader()
getWriter
public TriplestoreWriter getWriter()
getResponseMediaType
public static java.lang.String getResponseMediaType(java.lang.String formatName,
boolean isTupleQuery,
boolean useDumbType)
throws TrippiException
- Throws:
TrippiException
find
public java.lang.String find(java.lang.String type,
java.lang.String template,
java.lang.String lang,
java.lang.String query,
java.lang.String limit,
java.lang.String distinct,
java.lang.String format,
java.lang.String dumbTypes,
java.lang.String flush,
java.io.OutputStream out)
throws java.io.IOException,
TrippiException
- Do a query against the triplestore, putting results into the
OutputStream.
- Throws:
java.io.IOException
TrippiException
getBoolean
public static boolean getBoolean(java.lang.String in,
boolean defaultValue)