|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.inference.dig.reasoner.DefaultDIGReasoner
User: matthewhorridge
The Univeristy Of Manchester
Medical Informatics Group
Date: Jun 4, 2004
Field Summary | |
private DocumentBuilder |
docBuilder
|
private DocumentBuilderFactory |
docBuilderFactory
|
private org.apache.xml.serialize.OutputFormat |
format
|
static boolean |
log
Deprecated. Use DIGReasonerPreferences to set logging |
private URL |
reasonerURL
|
private org.apache.xml.serialize.XMLSerializer |
serializer
|
private DIGTranslator |
translator
|
Fields inherited from interface edu.stanford.smi.protegex.owl.inference.dig.reasoner.DIGReasoner |
LOGGER_NAME |
Constructor Summary | |
DefaultDIGReasoner()
|
Method Summary | |
void |
clearKnowledgeBase(String kbURI)
Clears the knowledge base |
String |
createKnowledgeBase()
A helper method that asks the reasoner to create a new knowledgebase. |
DIGReasonerIdentity |
getIdentity()
Gets the identity of the inference |
String |
getReasonerURL()
Gets the URL of the reasoner. |
protected void |
log(Document doc)
A helper method that lets us log the DIG XML used to communicate with the reasoner. |
protected void |
performErrorCheck(Document doc)
This method checks for any errors in the DIG response and throws a DIGErrorException if there are any errors. |
Document |
performRequest(Document request)
Sends a request to the reasoner and retrieves the response. |
void |
releaseKnowledgeBase(String kbURI)
A helper method that releases a previously created knowledgebase. |
void |
setReasonerURL(String url)
Sets the URL of the inference. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private URL reasonerURL
private DocumentBuilderFactory docBuilderFactory
private DocumentBuilder docBuilder
private org.apache.xml.serialize.XMLSerializer serializer
private org.apache.xml.serialize.OutputFormat format
private DIGTranslator translator
public static boolean log
Constructor Detail |
public DefaultDIGReasoner()
Method Detail |
public void setReasonerURL(String url)
setReasonerURL
in interface DIGReasoner
url
- The URLpublic String getReasonerURL()
getReasonerURL
in interface DIGReasoner
public DIGReasonerIdentity getIdentity() throws DIGReasonerException
getIdentity
in interface DIGReasoner
DIGReasonerIdentity
object that encapsulates the
information about the inference.
DIGReasonerException
public String createKnowledgeBase() throws DIGReasonerException
createKnowledgeBase
in interface DIGReasoner
String
that represents a URI that is an identifier for
the newly created knowledgebase.
DIGReasonerException
public void releaseKnowledgeBase(String kbURI) throws DIGReasonerException
releaseKnowledgeBase
in interface DIGReasoner
kbURI
- The URI
of the knowledgebase
DIGReasonerException
public void clearKnowledgeBase(String kbURI) throws DIGReasonerException
clearKnowledgeBase
in interface DIGReasoner
kbURI
- The uri that identifies the knowledge
base to be cleared.
DIGReasonerException
public Document performRequest(Document request) throws DIGReasonerException
DIGReasoner
performRequest
in interface DIGReasoner
request
- A Document
containing the
DIG request
Document
containing the reponse from the reasoner
DIGReasonerException
protected void performErrorCheck(Document doc) throws DIGErrorException
doc
- The XML DIG Document that contains that response
from the reasoner.
DIGErrorException
protected void log(Document doc)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |