edu.unika.aifb.owltools.tools
Class Populate

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

public class Populate
extends KAON2Tool

creates instances for classes


Field Summary
 
Fields inherited from class edu.unika.aifb.owltools.tools.KAON2Tool
m_connection, printer
 
Constructor Summary
Populate()
           
 
Method Summary
 void compile()
          Entry point for the command line based usage of the Filter owl tool
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
 org.semanticweb.kaon2.api.Ontology populate(org.semanticweb.kaon2.api.Ontology ontology, int instances)
          Populates an ontology with newly created individuals.
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

Populate

public Populate()
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

populate

public org.semanticweb.kaon2.api.Ontology populate(org.semanticweb.kaon2.api.Ontology ontology,
                                                   int instances)
                                            throws org.semanticweb.kaon2.api.KAON2Exception
Populates an ontology with newly created individuals. The individuals are simply sticked to different classes, randomly.

Parameters:
ontology - The ontology to be populated
instances - The number of instances to generate
Returns:
The populated ontology
Throws:
org.semanticweb.kaon2.api.KAON2Exception

compile

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


printUsage

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