edu.unika.aifb.owltools.tools
Class Filter

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

public class Filter
extends KAON2Tool

Filter removes axioms from an ontology, specified by their axiom type


Field Summary
 
Fields inherited from class edu.unika.aifb.owltools.tools.KAON2Tool
m_connection, printer
 
Constructor Summary
Filter()
           
 
Method Summary
 void compile()
          Entry point for the command line based usage of the Filter owl tool
 org.semanticweb.kaon2.api.Ontology filter(org.semanticweb.kaon2.api.Ontology ontology, java.lang.Class filterclass)
          Removes all axioms but those of the specified kind from an ontology
 org.semanticweb.kaon2.api.Ontology filterOut(org.semanticweb.kaon2.api.Ontology ontology, java.lang.Class filterclass)
          Removes all axioms of a certain kind from an ontology
static void main(java.lang.String[] args)
          To be called when used from a standalone command line tool
 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)
          Processes the 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

Filter

public Filter()
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)
Processes the 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


filterOut

public org.semanticweb.kaon2.api.Ontology filterOut(org.semanticweb.kaon2.api.Ontology ontology,
                                                    java.lang.Class filterclass)
                                             throws org.semanticweb.kaon2.api.KAON2Exception
Removes all axioms of a certain kind from an ontology

Parameters:
ontology - The input ontology
filterclass - The axiom type to be removed
Returns:
The ontology without the removed axioms
Throws:
org.semanticweb.kaon2.api.KAON2Exception

filter

public org.semanticweb.kaon2.api.Ontology filter(org.semanticweb.kaon2.api.Ontology ontology,
                                                 java.lang.Class filterclass)
                                          throws org.semanticweb.kaon2.api.KAON2Exception
Removes all axioms but those of the specified kind from an ontology

Parameters:
ontology - The ontology to be filtered
filterclass - The type of axioms to remain in the ontology
Returns:
The filtered ontology
Throws:
org.semanticweb.kaon2.api.KAON2Exception

printUsage

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