uk.ac.manchester.cs.owl.inference.dig11
Class DIGQueryResponseImpl

java.lang.Object
  extended by uk.ac.manchester.cs.owl.inference.dig11.DIGQueryResponseImpl
All Implemented Interfaces:
DIGQueryResponse

public class DIGQueryResponseImpl
extends java.lang.Object
implements DIGQueryResponse

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 21-Nov-2006


Constructor Summary
DIGQueryResponseImpl(OWLDataFactory kb)
           
 
Method Summary
 boolean getBoolean()
          If the query resultied in a boolean response, for example asking if a concept was satisfiable, then this method may be used to get the boolean result.
 java.util.Set<java.util.Set<OWLClass>> getConceptSets()
          If the query resulted in a concept set response type for example a query for super concepts then this method can be used to get the concepts.
 java.lang.String getID()
          Gets the ID of the query that the reponse corresponds to
 java.util.Set<OWLIndividual> getIndividuals()
          If the query resulted in an individual set response type then this method may be used to obtain the individuals in the response.
 java.util.Set<java.util.Set<OWLObjectProperty>> getRoleSets()
          If the query resulted in an object property set response type for example a query for super properties then this method can be used to get the concepts.
 void setElement(org.w3c.dom.Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DIGQueryResponseImpl

public DIGQueryResponseImpl(OWLDataFactory kb)
Method Detail

setElement

public void setElement(org.w3c.dom.Element element)

getID

public java.lang.String getID()
Description copied from interface: DIGQueryResponse
Gets the ID of the query that the reponse corresponds to

Specified by:
getID in interface DIGQueryResponse

getConceptSets

public java.util.Set<java.util.Set<OWLClass>> getConceptSets()
                                                      throws DIGReasonerException
Description copied from interface: DIGQueryResponse
If the query resulted in a concept set response type for example a query for super concepts then this method can be used to get the concepts.

Specified by:
getConceptSets in interface DIGQueryResponse
Returns:
A Set of OWLClasss
Throws:
DIGReasonerException

getRoleSets

public java.util.Set<java.util.Set<OWLObjectProperty>> getRoleSets()
                                                            throws DIGReasonerException
Description copied from interface: DIGQueryResponse
If the query resulted in an object property set response type for example a query for super properties then this method can be used to get the concepts.

Specified by:
getRoleSets in interface DIGQueryResponse
Returns:
A Set of OWLObjectPropertys
Throws:
DIGReasonerException

getIndividuals

public java.util.Set<OWLIndividual> getIndividuals()
                                            throws DIGReasonerException
Description copied from interface: DIGQueryResponse
If the query resulted in an individual set response type then this method may be used to obtain the individuals in the response.

Specified by:
getIndividuals in interface DIGQueryResponse
Returns:
A Set of OWLIndividuals
Throws:
DIGReasonerException

getBoolean

public boolean getBoolean()
Description copied from interface: DIGQueryResponse
If the query resultied in a boolean response, for example asking if a concept was satisfiable, then this method may be used to get the boolean result.

Specified by:
getBoolean in interface DIGQueryResponse