com.hp.hpl.jena.rdf.query
Class QueryEngineSesame

java.lang.Object
  |
  +--com.hp.hpl.jena.rdf.query.QueryEngineSesame
All Implemented Interfaces:
QueryExecution

public class QueryEngineSesame
extends java.lang.Object
implements QueryExecution

QueryExecution implemenetation that issues a query to a Sesame repository and presents the Jena interface to queries.

Version:
$Id: QueryEngineSesame.java,v 1.1 2002/09/18 10:50:43 andy_seaborne Exp $
Author:
Andy Seaborne

Constructor Summary
QueryEngineSesame(Query q, java.lang.String sesameServerStr, java.lang.String rep)
          Construct a query execution instance that accesses a Sesame server
QueryEngineSesame(Query q, java.net.URL sesameServer, java.lang.String rep)
          Construct a query execution instance that accesses a Sesame server
 
Method Summary
 void abort()
          QueryExecution interface: Try to stop in mid execution.
 void close()
          QueryExecution interface: Normal end of use of this execution
 QueryResults exec()
          Do it!
 QueryResults exec(ResultBinding rb)
          QueryExecution interface: not supported
 void init()
          QueryExecution interface: initialise a query execution.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryEngineSesame

public QueryEngineSesame(Query q,
                         java.lang.String sesameServerStr,
                         java.lang.String rep)
                  throws java.net.MalformedURLException
Construct a query execution instance that accesses a Sesame server


QueryEngineSesame

public QueryEngineSesame(Query q,
                         java.net.URL sesameServer,
                         java.lang.String rep)
                  throws java.net.MalformedURLException
Construct a query execution instance that accesses a Sesame server

Method Detail

init

public void init()
QueryExecution interface: initialise a query execution. Should be called before exec.

Specified by:
init in interface QueryExecution

exec

public QueryResults exec()
Description copied from interface: QueryExecution
Do it!

Specified by:
exec in interface QueryExecution

exec

public QueryResults exec(ResultBinding rb)
QueryExecution interface: not supported

Specified by:
exec in interface QueryExecution
Throws:
java.lang.UnsupportedOperationException

abort

public void abort()
QueryExecution interface: Try to stop in mid execution.

Specified by:
abort in interface QueryExecution

close

public void close()
QueryExecution interface: Normal end of use of this execution

Specified by:
close in interface QueryExecution


Copyright © 2001 Hewlett-Packard. All Rights Reserved.