net.sourceforge.fluxion.spring
Interface QueryTransformer


public interface QueryTransformer

Defines the logic for a fluxion service which can transform queries from an exposed ontology to one or more underlying ontologies used by other fluxion services.

Author:
Tom

Method Summary
 org.semanticweb.owl.model.OWLOntology inferExposedSchema(QueryTransformerConfiguration configuration)
          Called after properties have been set on the QueryTransformingFluxionService, return the OWL ontology representing the exposed schema for this configuration.
 OntologyURIPair transformQueryRequest(QueryTransformerConfiguration configuration, OntologyURIPair queryRequest)
          Transform a query request using the specified configuration, transforming both query ontology and query class URI from the exposed ontology into the underlying ontology for this configuration
 org.semanticweb.owl.model.OWLOntology transformQueryResponse(QueryTransformerConfiguration configuration, org.semanticweb.owl.model.OWLOntology queryResponse)
          Transform a query response from the underlying ontology defined by the configuration into the exposed ontology
 

Method Detail

inferExposedSchema

org.semanticweb.owl.model.OWLOntology inferExposedSchema(QueryTransformerConfiguration configuration)
                                                         throws DataSourceException
Called after properties have been set on the QueryTransformingFluxionService, return the OWL ontology representing the exposed schema for this configuration. In many cases this will be a single shared schema but it can depend on the mapping rules which can in turn be accessed through the configuration object.

Throws:
DataSourceException

transformQueryRequest

OntologyURIPair transformQueryRequest(QueryTransformerConfiguration configuration,
                                      OntologyURIPair queryRequest)
                                      throws DataSourceException
Transform a query request using the specified configuration, transforming both query ontology and query class URI from the exposed ontology into the underlying ontology for this configuration

Parameters:
configuration -
queryRequest -
Returns:
Throws:
DataSourceException

transformQueryResponse

org.semanticweb.owl.model.OWLOntology transformQueryResponse(QueryTransformerConfiguration configuration,
                                                             org.semanticweb.owl.model.OWLOntology queryResponse)
Transform a query response from the underlying ontology defined by the configuration into the exposed ontology

Parameters:
configuration -
queryResponse -
Returns:


Copyright © 2010. All Rights Reserved.