View Javadoc

1   /*
2    ORDI - Ontology Repository and Data Integration
3   
4    Copyright (c) 2004-2005, OntoText Lab. / SIRMA
5   
6    This library is free software; you can redistribute it and/or modify it under
7    the terms of the GNU Lesser General Public License as published by the Free
8    Software Foundation; either version 2.1 of the License, or (at your option)
9    any later version.
10   This library is distributed in the hope that it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13   details.
14   You should have received a copy of the GNU Lesser General Public License along
15   with this library; if not, write to the Free Software Foundation, Inc.,
16   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17   */
18  package com.ontotext.ordi.wsmo4rdf;
19  
20  import org.openrdf.query.MalformedQueryException;
21  import org.wsmo.datastore.WsmoRepository;
22  
23  import com.ontotext.ordi.Connection;
24  
25  /**
26   * WSMO repository with query evaluation support.
27   */
28  public interface WsmoConnection extends WsmoRepository, Connection {
29  
30      /**
31       * Invoke a query against this repository and read the results through a
32       * call-back interface.
33       * 
34       * @param query
35       *            to be evaluated
36       * @param listener
37       *            is call-back interface to be used
38       * @throws MalformedQueryException
39       */
40      public void evaluate(String query, QueryResultListener listener)
41              throws MalformedQueryException;
42  
43  }