de.fraunhofer.ipsi.ipsixq.api
Class XQIConnection

java.lang.Object
  extended by de.fraunhofer.ipsi.ipsixq.api.XQIConnection
All Implemented Interfaces:
Connection

Deprecated.

public class XQIConnection
extends java.lang.Object
implements Connection

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();
 

Version:
1.0
Author:
Patrick.Lehti@ipsi.fhg.de

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

XQIConnection

public XQIConnection(java.lang.String uri,
                     java.util.Properties props)
Deprecated. 
Constructor.

Parameters:
uri - sets the base uri where to find documents
props - the properties to define the behavior of the execution.
Method Detail

executeQuery

public QueryResult executeQuery(java.lang.String query)
                         throws XQueryException
Deprecated. 
Executes the query.

Specified by:
executeQuery in interface Connection
Parameters:
query - the query to execute
Returns:
a QueryResult
Throws:
XQueryException - if the query could not be executed