|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.fluxion.datasource.impl.OWLFileDataSource
public class OWLFileDataSource
Javadocs go here.
Constructor Summary | |
---|---|
OWLFileDataSource(java.net.URI uri,
org.semanticweb.owl.model.OWLOntology ontology)
|
Method Summary | |
---|---|
java.net.URI |
getReasonerLevel()
The reasoner level at which this datasource operates. |
org.semanticweb.owl.model.OWLOntology |
getSchema()
The "schema" ontology for this datasource (sometimes called the T-Box). |
java.net.URI |
getURI()
The URI of this datasource. |
org.semanticweb.owl.model.OWLOntology |
query(org.semanticweb.owl.model.OWLOntology ontology,
java.net.URI queryClass)
Queries this datasource for all instances that may be instances of the OWL class with the URI given by the queryClass parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OWLFileDataSource(java.net.URI uri, org.semanticweb.owl.model.OWLOntology ontology)
Method Detail |
---|
public java.net.URI getURI()
DataSource
getURI
in interface DataSource
public java.net.URI getReasonerLevel() throws DataSourceException
DataSource
getReasonerLevel
in interface DataSource
DataSourceException
- if there was a problem retrieving the
expressivity of this datasourcepublic org.semanticweb.owl.model.OWLOntology getSchema() throws DataSourceException
DataSource
getSchema
in interface DataSource
DataSourceException
- if the schema could not be recoveredpublic org.semanticweb.owl.model.OWLOntology query(org.semanticweb.owl.model.OWLOntology ontology, java.net.URI queryClass) throws DataSourceException
DataSource
Implementations are free to return as much data as they choose here, but must guarantee to return at least all individuals belonging to the given query class, and never less. It would be viable (but not helpful) to return every individual in this datasource, for example.
The ontology parameter supplied is the query ontology; any extra axioms here, compared with the schema ontology, should be merged before returning results. This means querying clients can add extra assertions to restrict the results they acquire. This can include adding new classes - so, for example, clients can declare a new class "foo" where foo is the union of classes A and B, and then query for all instances of foo by passing the newly declared URI.
The result is the knowledgebase, contains all schema axioms, all newly added axioms supplied by the client, and all instances that satisfy the query (plus, optionally, more).
query
in interface DataSource
ontology
- the ontology containing any axioms we need to describe
the queryqueryClass
- the URI of the class we require individuals of
DataSourceException
- if there was any problem acquiring results
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |