edu.unika.aifb.owltools.tools
Class Meta

java.lang.Object
  extended by edu.unika.aifb.owltools.tools.KAON2Tool
      extended by edu.unika.aifb.owltools.tools.Meta

public class Meta
extends KAON2Tool

meta makes a meta-ontology from an ontology, and back again


Field Summary
 
Fields inherited from class edu.unika.aifb.owltools.tools.KAON2Tool
m_connection, printer
 
Constructor Summary
Meta()
           
 
Method Summary
 void compile()
          Entry point for the command line based usage of the Filter owl tool
 org.semanticweb.kaon2.api.Ontology demeta(org.semanticweb.kaon2.api.Ontology metaontology)
          Takes a metaontology and extracts the concrete ontology out of it
 void demeta(org.semanticweb.kaon2.api.Ontology metaontology, org.semanticweb.kaon2.api.Ontology ontology)
          Takes a metaontology and extracts the concrete ontology out of it
static void main(java.lang.String[] args)
          To be called when used from a standalone command line tool
 org.semanticweb.kaon2.api.Ontology meta(org.semanticweb.kaon2.api.Ontology ontology, boolean backref)
          Creates a metaontology out of an ontology
 void meta(org.semanticweb.kaon2.api.Ontology ontology, org.semanticweb.kaon2.api.Ontology metaontology, boolean backref)
          Createas a metaontology out of an ontology
 java.lang.String name()
          the name of the owl tool
static void printUsage()
          prints the command line parameters and a short info
 boolean processArguments(java.lang.String[] args)
          process command line arguments
 
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

Meta

public Meta()
Method Detail

name

public java.lang.String name()
the name of the owl tool

Specified by:
name in class KAON2Tool
Returns:
the name of the tool

main

public static void main(java.lang.String[] args)
To be called when used from a standalone command line tool

Parameters:
args - Command line parameters

processArguments

public boolean processArguments(java.lang.String[] args)
process command line arguments

Specified by:
processArguments in class KAON2Tool

compile

public void compile()
Entry point for the command line based usage of the Filter owl tool


meta

public org.semanticweb.kaon2.api.Ontology meta(org.semanticweb.kaon2.api.Ontology ontology,
                                               boolean backref)
                                        throws org.semanticweb.kaon2.api.KAON2Exception
Creates a metaontology out of an ontology

Parameters:
ontology - The ontology to be meta'd
backref - If backreferences should be included to the original ontology entities
Returns:
The meta-ontology
Throws:
org.semanticweb.kaon2.api.KAON2Exception

demeta

public org.semanticweb.kaon2.api.Ontology demeta(org.semanticweb.kaon2.api.Ontology metaontology)
                                          throws org.semanticweb.kaon2.api.KAON2Exception,
                                                 java.lang.InterruptedException
Takes a metaontology and extracts the concrete ontology out of it

Parameters:
metaontology - The metaontology that hols the ontology
Returns:
The concrete ontology
Throws:
org.semanticweb.kaon2.api.KAON2Exception
java.lang.InterruptedException

meta

public void meta(org.semanticweb.kaon2.api.Ontology ontology,
                 org.semanticweb.kaon2.api.Ontology metaontology,
                 boolean backref)
          throws org.semanticweb.kaon2.api.KAON2Exception
Createas a metaontology out of an ontology

Parameters:
ontology - The ontology to be meta'd
metaontology - The created meta-ontology
backref - If backreferences should be included to the original ontology entities
Throws:
org.semanticweb.kaon2.api.KAON2Exception

demeta

public void demeta(org.semanticweb.kaon2.api.Ontology metaontology,
                   org.semanticweb.kaon2.api.Ontology ontology)
            throws org.semanticweb.kaon2.api.KAON2Exception,
                   java.lang.InterruptedException
Takes a metaontology and extracts the concrete ontology out of it

Parameters:
metaontology - The metaontology that hols the ontology
ontology - The concrete ontology
Throws:
org.semanticweb.kaon2.api.KAON2Exception
java.lang.InterruptedException

printUsage

public static void printUsage()
prints the command line parameters and a short info