|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unika.aifb.owltools.tools.KAON2Tool
edu.unika.aifb.owltools.tools.Dump
public class Dump
dump is used to serialize the ontology, or filtered parts of it, or to count it
Field Summary |
---|
Fields inherited from class edu.unika.aifb.owltools.tools.KAON2Tool |
---|
m_connection, printer |
Constructor Summary | |
---|---|
Dump()
|
Method Summary | |
---|---|
void |
compile()
Entry point for the command line based usage of the Dump owl tool |
int |
count(org.semanticweb.kaon2.api.Ontology ontology)
Counts the number of axioms in an ontology |
int |
count(org.semanticweb.kaon2.api.Ontology ontology,
java.lang.Class filter)
Counts the number of axioms of the specified kind in an ontology |
int |
countEntities(org.semanticweb.kaon2.api.Ontology ontology)
Counts the number of entities mentioned in an ontology |
int |
countEntities(org.semanticweb.kaon2.api.Ontology ontology,
java.lang.Class filter)
Counts the number of entities of the specified kind in an ontology |
java.util.List<java.lang.String> |
dump(org.semanticweb.kaon2.api.Ontology ontology)
Lists all the axioms of the ontology |
java.util.List<java.lang.String> |
dump(org.semanticweb.kaon2.api.Ontology ontology,
java.lang.Class filter)
Lists all the axioms of a special kind |
java.util.List<java.lang.String> |
dumpEntities(org.semanticweb.kaon2.api.Ontology ontology)
Lists all entities in the ontology |
java.util.List<java.lang.String> |
dumpEntities(org.semanticweb.kaon2.api.Ontology ontology,
java.lang.Class filter)
Lists all entities of the specified kind in the ontology |
static void |
main(java.lang.String[] args)
If the tool is being called from the outside, some basic processing is being done |
java.lang.String |
name()
Name of the tool |
static void |
printUsage()
prints the command line parameters and a short info |
boolean |
processArguments(java.lang.String[] args)
processes the command line parameteres |
Methods inherited from class edu.unika.aifb.owltools.tools.KAON2Tool |
---|
endConnection, loadOntology, printUsageError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dump()
Method Detail |
---|
public java.lang.String name()
name
in class KAON2Tool
public static void main(java.lang.String[] args)
args
- Command line parameters. The same as for the OWLtools callpublic boolean processArguments(java.lang.String[] args)
processArguments
in class KAON2Tool
public java.util.List<java.lang.String> dump(org.semanticweb.kaon2.api.Ontology ontology) throws org.semanticweb.kaon2.api.KAON2Exception
ontology
- The ontology to be listed
org.semanticweb.kaon2.api.KAON2Exception
public java.util.List<java.lang.String> dump(org.semanticweb.kaon2.api.Ontology ontology, java.lang.Class filter) throws org.semanticweb.kaon2.api.KAON2Exception
ontology
- The ontology to be listed fromfilter
- The type of axiom. Must be one of the KAON2 axiom sublcass
org.semanticweb.kaon2.api.KAON2Exception
public java.util.List<java.lang.String> dumpEntities(org.semanticweb.kaon2.api.Ontology ontology) throws org.semanticweb.kaon2.api.KAON2Exception
ontology
- The ontology to be listed from
org.semanticweb.kaon2.api.KAON2Exception
public java.util.List<java.lang.String> dumpEntities(org.semanticweb.kaon2.api.Ontology ontology, java.lang.Class filter) throws org.semanticweb.kaon2.api.KAON2Exception
ontology
- The ontology to be listed fromfilter
- The kind of entities to be looked for
org.semanticweb.kaon2.api.KAON2Exception
public int count(org.semanticweb.kaon2.api.Ontology ontology) throws org.semanticweb.kaon2.api.KAON2Exception
ontology
- The ontology to be counted
org.semanticweb.kaon2.api.KAON2Exception
public int count(org.semanticweb.kaon2.api.Ontology ontology, java.lang.Class filter) throws org.semanticweb.kaon2.api.KAON2Exception
ontology
- The ontology to be countedfilter
- The kind of axioms to be counted
org.semanticweb.kaon2.api.KAON2Exception
public int countEntities(org.semanticweb.kaon2.api.Ontology ontology) throws org.semanticweb.kaon2.api.KAON2Exception
ontology
- The ontology to be counted
org.semanticweb.kaon2.api.KAON2Exception
public int countEntities(org.semanticweb.kaon2.api.Ontology ontology, java.lang.Class filter) throws org.semanticweb.kaon2.api.KAON2Exception
ontology
- The ontology to be countedfilter
- The kind of entities to be counted
org.semanticweb.kaon2.api.KAON2Exception
public void compile()
public static void printUsage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |