|
DIG 1.1 Reasoners API, April 26, 2004 (12:45 PM) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kr.dl.dig.reasoner.v1_1.impl.TReasoner
TBox reasoner wrapper for Reasoner
s.
Field Summary |
Fields inherited from interface org.kr.dl.dig.reasoner.v1_1.Reasoner |
XML_HEADER |
Constructor Summary | |
TReasoner(Reasoner reasoner)
Sets reasoner . |
Method Summary | |
Set |
allConceptNames(URI kbURI)
Returns the Set of String s corresponding
to names of all concepts in the knowledge base kbURI . |
Set |
ancestorsNames(Concept concept,
URI kbURI)
Returns the Set of String s corresponding
to names of concept ancestors of concept . |
ResponsesDocument |
asks(AsksDocument asks)
Delegates to wrapped Reasoner . |
Set |
childrenNames(Concept concept,
URI kbURI)
Returns the Set of String s corresponding
to names of concept children of concept . |
Set |
descendantsNames(Concept concept,
URI kbURI)
Returns the Set of String s corresponding
to names of concept descendants of concept . |
Set |
equivalentsNames(Concept concept,
URI kbURI)
Returns the Set of String s corresponding
to names of concept descendants of concept . |
static void |
extractError(ResponseType responses)
Throws a ReasonerException using the first error in responses
if it exists, or simply "Unknown error in ask" with code 400. |
IdentifierDocument |
getIdentifier()
Delegates to wrapped Reasoner . |
Reasoner |
getReasoner()
|
URI |
newKB()
Delegates to wrapped Reasoner . |
Set |
parentsNames(Concept concept,
URI kbURI)
Returns the Set of String s corresponding
to names of concept parents of concept . |
boolean |
releaseKB(URI kb)
Delegates to wrapped Reasoner . |
boolean |
satisfiable(Concept concept,
URI kbURI)
Returns true if concept is satisfiable. |
void |
setReasoner(Reasoner reasoner)
|
boolean |
subsumes(Concept subsumer,
Concept subsumee,
URI kbURI)
Returns true if subsumer subsumes subsumee . |
ResponseDocument |
tells(TellsDocument tells)
Delegates to wrapped Reasoner . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TReasoner(Reasoner reasoner)
reasoner
.
reasoner
- The reasoner to set.Method Detail |
public Set allConceptNames(URI kbURI) throws ReasonerException
Set
of String
s corresponding
to names of all concepts in the knowledge base kbURI
.
allConceptNames
in interface TReasoner
kbURI
- the URI
of the knowledge base we want to use.
Set
of String
s corresponding
to names of all concepts in the knowledge base.
ReasonerException.
ReasonerException
Reasoner.asks(AsksDocument).
public boolean satisfiable(Concept concept, URI kbURI) throws ReasonerException
true
if concept
is satisfiable.
satisfiable
in interface TReasoner
concept
- the Concept
for which satisfiability is tested.kbURI
- the URI
of the knowledge base we want to use.
true
if concept
is satisfiable.
ReasonerException
Reasoner.asks(AsksDocument).
public boolean subsumes(Concept subsumer, Concept subsumee, URI kbURI) throws ReasonerException
true
if subsumer
subsumes subsumee
.
subsumes
in interface TReasoner
subsumer
- a Concept
expected to subsume subsumee
.subsumee
- a Concept
expected to be subsumed subsumer
.kbURI
- the URI
of the knowledge base we want to use.
true
if subsumer
subsumes subsumee
.
ReasonerException
Reasoner.asks(AsksDocument).
public static void extractError(ResponseType responses) throws ReasonerException
ReasonerException
using the first error in responses
if it exists, or simply "Unknown error in ask" with code 400.
responses
- a ResponseType
.
a
- new ReasonerException
using the first error in
responses
if it exists, or simply "Unknown
error in ask" with code 400.
ReasonerException
public Set childrenNames(Concept concept, URI kbURI) throws ReasonerException
Set
of String
s corresponding
to names of concept children of concept
.
childrenNames
in interface TReasoner
concept
- the Concept
whose children are returned.kbURI
- the URI
of the knowledge base we want to use.
Set
of String
s corresponding
to names of concept children of concept
.
ReasonerException.
ReasonerException
Reasoner.asks(AsksDocument).
public Set descendantsNames(Concept concept, URI kbURI) throws ReasonerException
Set
of String
s corresponding
to names of concept descendants of concept
.
descendantsNames
in interface TReasoner
concept
- the Concept
whose descendants are returned.kbURI
- the URI
of the knowledge base we want to use.
Set
of String
s corresponding
to names of concept descendants of concept
.
ReasonerException.
ReasonerException
Reasoner.asks(AsksDocument).
public Set parentsNames(Concept concept, URI kbURI) throws ReasonerException
Set
of String
s corresponding
to names of concept parents of concept
.
parentsNames
in interface TReasoner
concept
- the Concept
whose parents are returned.kbURI
- the URI
of the knowledge base we want to use.
Set
of String
s corresponding
to names of concept parents of concept
.
ReasonerException.
ReasonerException
Reasoner.asks(AsksDocument)
public Set ancestorsNames(Concept concept, URI kbURI) throws ReasonerException
Set
of String
s corresponding
to names of concept ancestors of concept
.
ancestorsNames
in interface TReasoner
concept
- the Concept
whose ancestors are returned.kbURI
- the URI
of the knowledge base we want to use.
Set
of String
s corresponding
to names of concept ancestors of concept
.
ReasonerException.
ReasonerException
Reasoner.asks(AsksDocument)
public Set equivalentsNames(Concept concept, URI kbURI) throws ReasonerException
Set
of String
s corresponding
to names of concept descendants of concept
.
equivalentsNames
in interface TReasoner
concept
- the Concept
whose descendants are returned.kbURI
- the URI
of the knowledge base we want to use.
Set
of String
s corresponding
to names of concept descendants of concept
.
ReasonerException.
ReasonerException
Reasoner.asks(AsksDocument)
public ResponseDocument tells(TellsDocument tells) throws ReasonerException
Reasoner
.
tells
in interface Reasoner
tells
- a TellsDocument
.
ResponseDocument
corresponding to the tells
.
ReasonerException
- with code:
Reasoner.tells(org.kr.dl.dig.v1_1.TellsDocument)
public ResponsesDocument asks(AsksDocument asks) throws ReasonerException
Reasoner
.
asks
in interface Reasoner
asks
- an AsksDocument
.
ResponsesDocument
corresponding to the asks
.
ReasonerException
- with code:
Reasoner.asks(org.kr.dl.dig.v1_1.AsksDocument)
public IdentifierDocument getIdentifier() throws ReasonerException
Reasoner
.
getIdentifier
in interface Reasoner
IdentifierDocument
corresponding to the
getIdentifier
request.
ReasonerException
- with code:
Reasoner.getIdentifier()
public URI newKB() throws ReasonerException
Reasoner
.
newKB
in interface Reasoner
URI
for a new knowledge base from the reasoner.
ReasonerException
- with code:
Reasoner.newKB()
public boolean releaseKB(URI kb) throws ReasonerException
Reasoner
.
releaseKB
in interface Reasoner
kb
- the URI
of a knowledge base.
true
if the operation succeeds.
ReasonerException
- with code:
Reasoner.releaseKB(java.net.URI)
public Reasoner getReasoner()
public void setReasoner(Reasoner reasoner)
reasoner
- The reasoner to set.
|
DIG 1.1 Reasoners API, April 26, 2004 (12:45 PM) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |