|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.reasoner.dig.DIGQueryTranslator com.hp.hpl.jena.reasoner.dig.DIGQueryDifferentFromTranslator
public class DIGQueryDifferentFromTranslator
Translator for queries as to whether two ground individuals are different-from each other. This does not have a direct translation in DIG at the moment; instead we ask if the class expressions formed from the set of each single individual are disjoint.
Field Summary |
---|
Fields inherited from class com.hp.hpl.jena.reasoner.dig.DIGQueryTranslator |
---|
ALL |
Constructor Summary | |
---|---|
DIGQueryDifferentFromTranslator(java.lang.String predicate)
Construct a translator to test whether two individuals are different |
Method Summary | |
---|---|
boolean |
checkObject(Node object,
DIGAdapter da,
Model premises)
Additional test on the object of the incoming find pattern. |
boolean |
checkSubject(Node subject,
DIGAdapter da,
Model premises)
Additional test on the subject of the incoming find pattern. |
org.w3c.dom.Document |
translatePattern(TriplePattern pattern,
DIGAdapter da)
Answer a query that will test difference between two individuals |
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 |
---|
checkPredicate, checkTriple, find, find, translateResponse, trigger |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DIGQueryDifferentFromTranslator(java.lang.String predicate)
Construct a translator to test whether two individuals are different
predicate
- The predicate we are matching onMethod Detail |
---|
public org.w3c.dom.Document translatePattern(TriplePattern pattern, DIGAdapter da)
Answer a query that will test difference between two individuals
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)
DIGQueryTranslator
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.
translatePattern
in class DIGQueryTranslator
public boolean checkSubject(Node subject, DIGAdapter da, Model premises)
DIGQueryTranslator
Additional test on the subject of the incoming find pattern. Default is to always match
checkSubject
in class DIGQueryTranslator
subject
- The subject 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.
public boolean checkObject(Node object, DIGAdapter da, Model premises)
DIGQueryTranslator
Additional test on the object of the incoming find pattern. Default is to always match
checkObject
in class DIGQueryTranslator
object
- The object 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 |