|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fraunhofer.ipsi.ipsixq.api.XQIConnection
public class XQIConnection
Implementation of an XQuery Connection for XQI. This is the main entry point to use the XQuery interpreter. To use it, simply call the constructor with the properties you want and then call executeQuery. The accepted properties are:
Example:
Properties props = new Properties(); props.setProperty("XQueryPrettyPrint", "false"); props.setProperty("CorePrettyPrint", "false"); props.setProperty("importedTypes", "false"); props.setProperty("optimize", "false"); props.setProperty("infer", "true"); props.setProperty("eval", "true"); Connection connection = new XQIConnection(null, props); QueryResult result = connection.executeQuery(someQuery); String stringResult = result.getRawString();
Constructor Summary | |
---|---|
XQIConnection(java.lang.String uri,
java.util.Properties props)
Deprecated. Constructor. |
Method Summary | |
---|---|
QueryResult |
executeQuery(java.lang.String query)
Deprecated. Executes the query. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XQIConnection(java.lang.String uri, java.util.Properties props)
uri
- sets the base uri where to find documentsprops
- the properties to define the behavior of the execution.Method Detail |
---|
public QueryResult executeQuery(java.lang.String query) throws XQueryException
executeQuery
in interface Connection
query
- the query to execute
XQueryException
- if the query could not be executed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |