public class OWLHandler extends Object
getSubClassesCommand()
Note the java method takes no arguments. For each web API call, a new OWLHandler object is created,
with a new HttpServletRequest object, containing the http parameters of the web API call.
In this case the getSubClassesCommand() calls getParam("id") and uses the result to make the query
using the OWLAPI reasoner API.
The results of any of the API calls can be returned in a variety of formats including plaintext, json,
or any OWL syntax. The implementing java method generally does not care about the format, it performs
its task and calls the output(...) method on each result.
Modifier and Type | Class and Description |
---|---|
static class |
OWLHandler.Param |
static class |
OWLHandler.ResultType |
class |
OWLHandler.ServerMetadata |
Constructor and Description |
---|
OWLHandler(OWLServer owlserver,
OWLGraphWrapper graph,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
aboutCommand()
information about an ontology object (class, property, individual)
|
void |
allSubClassOfCommand()
Params: direct
|
void |
assertEnabledByCommand() |
void |
assertFactCommand()
Deprecated.
|
void |
assertOccursInCommand() |
void |
assertTypeCommand()
Deprecated.
|
void |
classCommand() |
void |
classSetCommand() |
void |
compareAttributeSetsCommand() |
void |
deleteFactCommand()
Deprecated.
|
void |
getAnnotationSufficiencyScoreCommand() |
void |
getAttributeInformationProfileCommand() |
void |
getAxiomsCommand()
Params: id
|
void |
getCoAnnotatedClassesCommand() |
String |
getCommandName() |
String |
getFormat() |
void |
getLowestCommonSubsumersCommand() |
void |
getOutgoingEdgesCommand() |
void |
getOwlSimMetadataCommand() |
void |
getSimilarClassesCommand() |
void |
getSimilarIndividualsCommand() |
void |
getSubClassesCommand()
Params: direct, (id | expression)
|
void |
getSuperClassesCommand()
Params: direct, (id | expression)
|
void |
headerHTML() |
void |
headerImage(String fmt) |
void |
headerOWL() |
void |
headerText() |
void |
helpCommand() |
void |
info(String msg) |
void |
isClassApplicableForTaxonCommand()
tests which of a set of input classes (specified using id) is applicable for a set of taxa
(specified using taxid)
|
void |
makeSubsetOntologyCommand()
generates a sub-ontology consisting only of classes specified using the id param.
|
void |
memCommand() |
void |
printCachedObjects() |
void |
qvizCommand()
visualize using QuickGO graphdraw.
|
void |
returnJSON(Object obj) |
void |
searchByAttributeSetCommand() |
void |
setCommandName(String commandName) |
void |
setFormat(String format) |
void |
setOwlSim(OwlSim sos2) |
void |
threadDumpCommand() |
void |
topCommand() |
public OWLHandler(OWLServer owlserver, OWLGraphWrapper graph, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
public String getFormat()
public void setOwlSim(OwlSim sos2)
public void setFormat(String format)
public String getCommandName()
public void setCommandName(String commandName)
public void topCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException, UnknownOWLClassException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
UnknownOWLClassException
public void memCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException, UnknownOWLClassException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
UnknownOWLClassException
public void helpCommand() throws IOException
IOException
public void getSubClassesCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException, org.semanticweb.owlapi.expression.ParserException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
org.semanticweb.owlapi.expression.ParserException
public void getSuperClassesCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException, org.semanticweb.owlapi.expression.ParserException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
org.semanticweb.owlapi.expression.ParserException
public void getAxiomsCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException, org.semanticweb.owlapi.expression.ParserException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
org.semanticweb.owlapi.expression.ParserException
public void allSubClassOfCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
public void getOutgoingEdgesCommand() throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
public void aboutCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
public void classCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
public void classSetCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
public void qvizCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
public void makeSubsetOntologyCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
Mooncat.makeMinimalSubsetOntology(Set, IRI)
public void isClassApplicableForTaxonCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
public void getOwlSimMetadataCommand() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException, UnknownOWLClassException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
UnknownOWLClassException
public void getSimilarClassesCommand() throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, UnknownOWLClassException
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
UnknownOWLClassException
public void getSimilarIndividualsCommand() throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, UnknownOWLClassException
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
UnknownOWLClassException
public void getLowestCommonSubsumersCommand() throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, UnknownOWLClassException
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
UnknownOWLClassException
public void compareAttributeSetsCommand() throws Exception
Exception
public void searchByAttributeSetCommand() throws Exception
Exception
public void getAnnotationSufficiencyScoreCommand() throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, UnknownOWLClassException
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
UnknownOWLClassException
public void getAttributeInformationProfileCommand() throws Exception
Exception
public void getCoAnnotatedClassesCommand() throws Exception
Exception
@Deprecated public void assertTypeCommand() throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, UnknownOWLClassException
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
UnknownOWLClassException
@Deprecated public void assertFactCommand() throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, UnknownOWLClassException
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
UnknownOWLClassException
@Deprecated public void deleteFactCommand() throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, UnknownOWLClassException
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
UnknownOWLClassException
public void returnJSON(Object obj) throws IOException
IOException
public void assertEnabledByCommand() throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, UnknownOWLClassException
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
UnknownOWLClassException
public void assertOccursInCommand() throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, UnknownOWLClassException
IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
UnknownOWLClassException
public void info(String msg) throws IOException
IOException
public void headerHTML()
public void headerText()
public void headerImage(String fmt)
public void headerOWL()
public void printCachedObjects() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
IOException
Copyright © 2010–2015. All rights reserved.