|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthok.model.ModelMediator
public class ModelMediator
The ModelMediator
mediates between the ontology model and the sparql
ast model. It provides methods to generate the AST from Sparql constraint
rows which are configured by the user in the view and to use the ast to query
the ontology.
Field Summary | |
---|---|
static java.lang.String |
ONT_PATH
|
static java.lang.String |
REASONER_URL
|
static java.lang.String |
RESOURCE_PATH
|
Constructor Summary | |
---|---|
ModelMediator()
Constructor. |
Method Summary | |
---|---|
ITreeNode |
getConceptTree()
Returns the concept tree. |
ITreeNode |
getPredicateTree()
Returns the predicate tree. |
PatternModel |
queryModel(java.util.Vector<ConstraintRow> constraints)
Queries the ontology model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RESOURCE_PATH
public static final java.lang.String REASONER_URL
public static final java.lang.String ONT_PATH
Constructor Detail |
---|
public ModelMediator()
Method Detail |
---|
public ITreeNode getConceptTree()
public ITreeNode getPredicateTree()
public PatternModel queryModel(java.util.Vector<ConstraintRow> constraints) throws QueryCreationFailedException, OntElementNotFoundException
constraints
- the collection of ConstraintRow
from which to create
the query.
QueryCreationFailedException
- is thrown if the query creatio has failed.
OntElementNotFoundException
- is thrown if an ontology element is not found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |