Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.hp.hpl.jena.reasoner.dig
Class DIGQueryEquivalentsTranslator

    java.lang.Object
      com.hp.hpl.jena.reasoner.dig.DIGQueryTranslator
          com.hp.hpl.jena.reasoner.dig.DIGQueryEquivalentsTranslator

    public class DIGQueryEquivalentsTranslator

extends DIGQueryTranslator

Translator to map owl:equivalentClass to the DIG <equivalents> query.

Version:
  CVS $Id: DIGQueryEquivalentsTranslator.java,v 1.14 2008/01/02 12:07:09 andy_seaborne Exp $
Author:
  Ian Dickinson, HP Labs (email)

Field Summary

Fields inherited from class com.hp.hpl.jena.reasoner.dig.DIGQueryTranslator
`ALL`

Constructor Summary
`DIGQueryEquivalentsTranslator(java.lang.String predicate, boolean subjectFree)` Construct a translator for the DIG query 'equivalents'.

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.
`boolean` | `checkTriple(TriplePattern pattern, DIGAdapter da, Model premises)` An optional post-trigger check on the consituents of the triple pattern.
`org.w3c.dom.Document` | `translatePattern(TriplePattern pattern, DIGAdapter da)` Answer a query that will generate the class hierachy for a concept
`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, find, find, translateResponse, trigger`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DIGQueryEquivalentsTranslator

    public DIGQueryEquivalentsTranslator(java.lang.String predicate,
                                         boolean subjectFree)

  Construct a translator for the DIG query 'equivalents'.

  Parameters:
    `predicate` - The predicate URI to trigger on
    `subjectFree` - If true, the free variable is the subject of the triple

Method Detail

### translatePattern

    public org.w3c.dom.Document translatePattern(TriplePattern pattern,
                                                 DIGAdapter da)

  Answer a query that will generate the class hierachy for a concept

  Specified by:
    `translatePattern` in class `DIGQueryTranslator`

### translateResponseHook

    public ExtendedIterator translateResponseHook(org.w3c.dom.Document response,
                                                  TriplePattern query,
                                                  DIGAdapter da)

  Answer an iterator of triples that match the original find query.

### translatePattern

    public org.w3c.dom.Document translatePattern(TriplePattern pattern,
                                                 DIGAdapter da,
                                                 Model premises)

  Description copied from class: `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.

  Specified by:
    `translatePattern` in class `DIGQueryTranslator`

### checkSubject

    public boolean checkSubject(Node subject,
                                DIGAdapter da,
                                Model premises)

  Description copied from class: `DIGQueryTranslator`

  Additional test on the subject of the incoming find pattern. Default is to always match

  Overrides:
    `checkSubject` in class `DIGQueryTranslator`
  Parameters:
    `subject` - The subject resource from the incoming pattern
    `da` - The current dig adapter
    `premises` - 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.
  Returns:
    True if this subject matches the trigger condition expressed by this translator instance

### checkObject

    public boolean checkObject(Node object,
                               DIGAdapter da,
                               Model premises)

  Description copied from class: `DIGQueryTranslator`

  Additional test on the object of the incoming find pattern. Default is to always match

  Overrides:
    `checkObject` in class `DIGQueryTranslator`
  Parameters:
    `object` - The object resource from the incoming pattern
    `da` - The current dig adapter
    `premises` - 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.
  Returns:
    True if this object matches the trigger condition expressed by this translator instance

### checkTriple

    public boolean checkTriple(TriplePattern pattern,
                               DIGAdapter da,
                               Model premises)

  Description copied from class: `DIGQueryTranslator`

  An optional post-trigger check on the consituents of the triple pattern. By default, delegates to a check on each of the subjec, object and predicate. However, this method may be overridden by sub-classes to provide a more context-sensitive test.

  Overrides:
    `checkTriple` in class `DIGQueryTranslator`
  Parameters:
    `pattern` - The triple pattern
    `da` - The current dig adapter
    `premises` - Model denoting premises to the query, or null
  Returns:
    True if the pattern conforms to the prerequisites for a given translation step

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP