edu.unika.aifb.owltools.tools
Class Script
java.lang.Object
edu.unika.aifb.owltools.tools.KAON2Tool
edu.unika.aifb.owltools.tools.Script
public class Script
- extends KAON2Tool
This is an experimental class. I use it only for my own scripts.
If you like, look into it, but as a user -- just forget about it.
Method Summary |
void |
compile()
|
static org.semanticweb.kaon2.api.Ontology |
deo(org.semanticweb.kaon2.api.Ontology ontology)
|
int |
getDistance(org.semanticweb.kaon2.api.Ontology ontology,
org.semanticweb.kaon2.api.owl.elements.OWLClass start,
org.semanticweb.kaon2.api.owl.elements.OWLClass goal)
|
int |
getLevel(org.semanticweb.kaon2.api.Ontology ontology,
org.semanticweb.kaon2.api.owl.elements.OWLClass clazz)
|
boolean |
getPair(org.semanticweb.kaon2.api.Ontology ontology)
|
static void |
main(java.lang.String[] args)
|
void |
makeTaxon(java.util.Map<java.lang.String,java.lang.Integer> taxon,
org.semanticweb.kaon2.api.Ontology ontology,
org.semanticweb.kaon2.api.owl.elements.OWLClass clazz,
int level)
|
java.lang.String |
name()
the name of the specified tool. |
static void |
printUsage()
prints the command line parameters and a short info |
boolean |
processArguments(java.lang.String[] args)
needs to be implemented by all tools:
processArgument to process all the given command line arguments |
void |
queryTop(org.semanticweb.kaon2.api.Ontology ontology)
|
org.semanticweb.kaon2.api.Ontology |
script(org.semanticweb.kaon2.api.Ontology ontology)
|
org.semanticweb.kaon2.api.Ontology |
script1(org.semanticweb.kaon2.api.Ontology ontology)
|
org.semanticweb.kaon2.api.Ontology |
scriptNominal(org.semanticweb.kaon2.api.Ontology o)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Script
public Script()
name
public java.lang.String name()
- Description copied from class:
KAON2Tool
- the name of the specified tool. Needs to be implemented by all tools
- Specified by:
name
in class KAON2Tool
- Returns:
- the name of the tool
script
public org.semanticweb.kaon2.api.Ontology script(org.semanticweb.kaon2.api.Ontology ontology)
throws org.semanticweb.kaon2.api.KAON2Exception,
java.lang.InterruptedException
- Throws:
org.semanticweb.kaon2.api.KAON2Exception
java.lang.InterruptedException
script1
public org.semanticweb.kaon2.api.Ontology script1(org.semanticweb.kaon2.api.Ontology ontology)
throws org.semanticweb.kaon2.api.KAON2Exception,
java.lang.InterruptedException
- Throws:
org.semanticweb.kaon2.api.KAON2Exception
java.lang.InterruptedException
getLevel
public int getLevel(org.semanticweb.kaon2.api.Ontology ontology,
org.semanticweb.kaon2.api.owl.elements.OWLClass clazz)
throws org.semanticweb.kaon2.api.KAON2Exception
- Throws:
org.semanticweb.kaon2.api.KAON2Exception
makeTaxon
public void makeTaxon(java.util.Map<java.lang.String,java.lang.Integer> taxon,
org.semanticweb.kaon2.api.Ontology ontology,
org.semanticweb.kaon2.api.owl.elements.OWLClass clazz,
int level)
throws org.semanticweb.kaon2.api.KAON2Exception
- Throws:
org.semanticweb.kaon2.api.KAON2Exception
getDistance
public int getDistance(org.semanticweb.kaon2.api.Ontology ontology,
org.semanticweb.kaon2.api.owl.elements.OWLClass start,
org.semanticweb.kaon2.api.owl.elements.OWLClass goal)
throws org.semanticweb.kaon2.api.KAON2Exception
- Throws:
org.semanticweb.kaon2.api.KAON2Exception
getPair
public boolean getPair(org.semanticweb.kaon2.api.Ontology ontology)
throws org.semanticweb.kaon2.api.KAON2Exception
- Throws:
org.semanticweb.kaon2.api.KAON2Exception
queryTop
public void queryTop(org.semanticweb.kaon2.api.Ontology ontology)
throws org.semanticweb.kaon2.api.KAON2Exception,
java.lang.InterruptedException
- Throws:
org.semanticweb.kaon2.api.KAON2Exception
java.lang.InterruptedException
processArguments
public boolean processArguments(java.lang.String[] args)
- Description copied from class:
KAON2Tool
- needs to be implemented by all tools:
processArgument to process all the given command line arguments
- Specified by:
processArguments
in class KAON2Tool
main
public static void main(java.lang.String[] args)
- Parameters:
args
-
scriptNominal
public org.semanticweb.kaon2.api.Ontology scriptNominal(org.semanticweb.kaon2.api.Ontology o)
throws org.semanticweb.kaon2.api.KAON2Exception
- Throws:
org.semanticweb.kaon2.api.KAON2Exception
deo
public static org.semanticweb.kaon2.api.Ontology deo(org.semanticweb.kaon2.api.Ontology ontology)
throws org.semanticweb.kaon2.api.KAON2Exception
- Throws:
org.semanticweb.kaon2.api.KAON2Exception
compile
public void compile()
printUsage
public static void printUsage()
- prints the command line parameters and a short info