Protégé-OWL 3.4.8

edu.stanford.smi.protegex.owl.swrl.sqwrl
Interface SQWRLQueryEngine

All Known Subinterfaces:
SWRLRuleEngine
All Known Implementing Classes:
DefaultSWRLRuleEngine

public interface SQWRLQueryEngine

This interface defines the methods that must be provided by a SQWRL query engine.


Method Summary
 void createSQWRLQuery(String queryName, String queryText)
          Create a SQWRL query.
 void deleteSQWRLQuery(String queryName)
          Delete a SQWRL query.
 Set<SWRLRuleReference> getSQWRLQueries()
          Get all the enabled SQWRL queries in the ontology.
 Set<String> getSQWRLQueryNames()
          Get the names of the enabled SQWRL queries in the ontology.
 SQWRLResult getSQWRLResult(String queryName)
          Get the results from a previously executed SQWRL query.
 String getTargetRuleEngineName()
          Returns the name of the underlying targer rule engine.
 String name2URI(String prefixedName)
           
 void runSQWRLQueries()
          Run all SQWRL enabled queries.
 SQWRLResult runSQWRLQuery(String queryName)
          Run a named SQWRL query.
 SQWRLResult runSQWRLQuery(String queryName, String queryText)
          Create and run a SQWRL query.
 SQWRLResult runStandaloneSQWRLQuery(String queryName)
          Run a named SQWRL query without executing any SWRL rules in ontology.
 String uri2PrefixedName(String uri)
           
 

Method Detail

runSQWRLQuery

SQWRLResult runSQWRLQuery(String queryName)
                          throws SQWRLException
Run a named SQWRL query. SWRL rules will also be executed and any inferences produced by them will be available in the query.

Throws:
SQWRLException

runStandaloneSQWRLQuery

SQWRLResult runStandaloneSQWRLQuery(String queryName)
                                    throws SQWRLException
Run a named SQWRL query without executing any SWRL rules in ontology.

Throws:
SQWRLException

runSQWRLQueries

void runSQWRLQueries()
                     throws SQWRLException
Run all SQWRL enabled queries.

Throws:
SQWRLException

runSQWRLQuery

SQWRLResult runSQWRLQuery(String queryName,
                          String queryText)
                          throws SQWRLException,
                                 SWRLParseException
Create and run a SQWRL query. Query will be created and added to ontology.

Throws:
SQWRLException
SWRLParseException

createSQWRLQuery

void createSQWRLQuery(String queryName,
                      String queryText)
                      throws SQWRLException,
                             SWRLParseException
Create a SQWRL query.

Throws:
SQWRLException
SWRLParseException

deleteSQWRLQuery

void deleteSQWRLQuery(String queryName)
                      throws SQWRLException
Delete a SQWRL query.

Throws:
SQWRLException

getSQWRLResult

SQWRLResult getSQWRLResult(String queryName)
                           throws SQWRLException
Get the results from a previously executed SQWRL query. Null is returned if there is no result.

Throws:
SQWRLException

getSQWRLQueries

Set<SWRLRuleReference> getSQWRLQueries()
                                       throws SQWRLException
Get all the enabled SQWRL queries in the ontology.

Throws:
SQWRLException

getSQWRLQueryNames

Set<String> getSQWRLQueryNames()
                               throws SQWRLException
Get the names of the enabled SQWRL queries in the ontology.

Throws:
SQWRLException

getTargetRuleEngineName

String getTargetRuleEngineName()
Returns the name of the underlying targer rule engine.


uri2PrefixedName

String uri2PrefixedName(String uri)

name2URI

String name2URI(String prefixedName)

Protégé-OWL 3.4.8

Submit a bug report or feature request
Copyright (c) 1998-2012 Stanford University.