|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.reasoner.dig.DIGQueryTranslator
com.hp.hpl.jena.reasoner.dig.DIGQueryRelatedIndividualsTranslator
public class DIGQueryRelatedIndividualsTranslator
Translator that generates DIG relatedIndividuals queries in response to a find queries:
* :r *or similar.
| Field Summary |
|---|
| Fields inherited from class com.hp.hpl.jena.reasoner.dig.DIGQueryTranslator |
|---|
ALL |
| Constructor Summary | |
|---|---|
DIGQueryRelatedIndividualsTranslator()
Construct a translator for the DIG query 'relatedIndividuals'. |
|
| Method Summary | |
|---|---|
boolean |
checkPredicate(Node predicate,
DIGAdapter da,
Model premises)
Additional test on the predicate of the incoming find pattern. |
org.w3c.dom.Document |
translatePattern(TriplePattern pattern,
DIGAdapter da)
Answer a query that will list the role fillers for an individual-role pair |
org.w3c.dom.Document |
translatePattern(TriplePattern pattern,
DIGAdapter da,
Model premises)
Answer an XML document that presents the translation of the query into DIG query language, given that either the subject or object may be expressions defined by the statements in the premises model. |
ExtendedIterator |
translateResponseHook(org.w3c.dom.Document response,
TriplePattern query,
DIGAdapter da)
Answer an iterator of triples that match the original find query. |
| Methods inherited from class com.hp.hpl.jena.reasoner.dig.DIGQueryTranslator |
|---|
checkObject, checkSubject, checkTriple, find, find, translateResponse, trigger |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DIGQueryRelatedIndividualsTranslator()
Construct a translator for the DIG query 'relatedIndividuals'.
| Method Detail |
|---|
public org.w3c.dom.Document translatePattern(TriplePattern pattern,
DIGAdapter da)
Answer a query that will list the role fillers for an individual-role pair
translatePattern in class DIGQueryTranslator
public ExtendedIterator translateResponseHook(org.w3c.dom.Document response,
TriplePattern query,
DIGAdapter da)
Answer an iterator of triples that match the original find query.
public org.w3c.dom.Document translatePattern(TriplePattern pattern,
DIGAdapter da,
Model premises)
DIGQueryTranslatorAnswer an XML document that presents the translation of the query into DIG query language, given that either the subject or object may be expressions defined by the statements in the premises model.
translatePattern in class DIGQueryTranslator
public boolean checkPredicate(Node predicate,
DIGAdapter da,
Model premises)
DIGQueryTranslatorAdditional test on the predicate of the incoming find pattern. Default is to always match
checkPredicate in class DIGQueryTranslatorpredicate - The predicate resource from the incoming patternda - The current dig adapterpremises - A model that conveys additional information about the premises
of the query, which might assist the check to suceed or fail. By default it
is ignored.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||