|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.fluxion.spring.QueryTransformingFluxionService
public class QueryTransformingFluxionService
Implementation of FluxionService which delegates to a list of other FluxionServices and transforms queries with an injected QueryTransformer. The transformation is driven from a list of QueryTransformerConfiguration beans.
| Constructor Summary | |
|---|---|
QueryTransformingFluxionService()
Create a new transforming fluxion service instance, does very little configuration by default - use the set methods to inject resources. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Use the bean initializer hook to call out to the injected query transformer to get the exposed schemata for all configured mappings |
java.util.Set<java.net.URI> |
getDataSources()
Return the set of exposed data source URIs from all configurations |
java.net.URI |
getId()
The ID of this service. |
java.net.URI |
getReasonerLevel(java.net.URI dataSource)
Currently returns the constant 'http://www.w3.org/ns/owl2-xml' as the reasoner level |
org.semanticweb.owl.model.OWLOntology |
getSchema(java.net.URI dataSource)
Search for a configuration with the specified exposed URI and return its exposed schema property |
org.semanticweb.owl.model.OWLOntology |
query(java.net.URI dataSourceURI,
java.net.URI queryClassURI,
org.semanticweb.owl.model.OWLOntology queryOntology)
Do a query, transforming the query request and response messages using the injected query transformer and passing it the appropriate configuration |
void |
setMapping(java.util.List<QueryTransformerConfiguration> configurations)
Inject a list of configuration objects defining the mapping from underlying data source to rules documents |
void |
setQueryTransformer(QueryTransformer transformer)
Inject a QueryTransformer to perform the actual query manipulation |
void |
setServices(java.util.List<FluxionService> services)
Inject a list of one or more fluxion services which can be mapped by this transforming service |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryTransformingFluxionService()
| Method Detail |
|---|
public void setQueryTransformer(QueryTransformer transformer)
public void setServices(java.util.List<FluxionService> services)
throws DataSourceException
DataSourceExceptionpublic void setMapping(java.util.List<QueryTransformerConfiguration> configurations)
public java.net.URI getId()
getId in interface FluxionService
public java.util.Set<java.net.URI> getDataSources()
throws DataSourceException
getDataSources in interface FluxionServiceDataSourceException
public java.net.URI getReasonerLevel(java.net.URI dataSource)
throws DataSourceException
getReasonerLevel in interface FluxionServicedataSource - the being operated upon
DataSourceException - if the data source is not known by this service or if there
was an error connecting to the data source
public org.semanticweb.owl.model.OWLOntology getSchema(java.net.URI dataSource)
throws DataSourceException
getSchema in interface FluxionServicedataSource - the being operated upon
DataSourceException - if the data source is not known by this service or if there
was an error connecting to the data source
public org.semanticweb.owl.model.OWLOntology query(java.net.URI dataSourceURI,
java.net.URI queryClassURI,
org.semanticweb.owl.model.OWLOntology queryOntology)
throws DataSourceException
query in interface FluxionServicedataSourceURI - the being operated uponqueryClassURI - the qualified name of the class from the specified ontology
for which instances should be foundqueryOntology - the ontology containing the specified query class
DataSourceException - if the data source is not known by this service or if there
was an error connecting to the data source
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||