|
||||||||||
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.DIGQueryAncestorsTranslator com.hp.hpl.jena.reasoner.dig.DIGQueryParentsTranslator
public class DIGQueryParentsTranslator
Translator that generates DIG parents/childre queries in response to a find queries:
:X direct-subClassOf * * direct-subClassOf :Xor similar.
Field Summary |
---|
Fields inherited from class com.hp.hpl.jena.reasoner.dig.DIGQueryTranslator |
---|
ALL |
Constructor Summary | |
---|---|
DIGQueryParentsTranslator(java.lang.String predicate,
boolean parents)
Construct a translator for the DIG query 'parents'. |
|
DIGQueryParentsTranslator(java.lang.String subject,
java.lang.String predicate,
java.lang.String object,
boolean parents)
Construct a translator for the DIG query 'parents', with explicit subject and object values. |
Method Summary | |
---|---|
org.w3c.dom.Document |
translatePattern(TriplePattern pattern,
DIGAdapter da)
Answer a query that will generate the direct class hierarchy (one level up or down) for a node |
Methods inherited from class com.hp.hpl.jena.reasoner.dig.DIGQueryAncestorsTranslator |
---|
checkObject, checkSubject, translatePattern, translateResponseHook |
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 DIGQueryParentsTranslator(java.lang.String predicate, boolean parents)
Construct a translator for the DIG query 'parents'.
predicate
- The predicate URI to trigger onparents
- If true, we are searching for parents of the class; if false, the childrenpublic DIGQueryParentsTranslator(java.lang.String subject, java.lang.String predicate, java.lang.String object, boolean parents)
Construct a translator for the DIG query 'parents', with explicit subject and object values.
subject
- The subject URI to trigger onpredicate
- The predicate URI to trigger onobject
- The object URI to trigger onparents
- If true, we are searching for parents of the class; if false, the childrenMethod Detail |
---|
public org.w3c.dom.Document translatePattern(TriplePattern pattern, DIGAdapter da)
Answer a query that will generate the direct class hierarchy (one level up or down) for a node
translatePattern
in class DIGQueryAncestorsTranslator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |