org.dllearner.kb
Class OWLAPIOntology

java.lang.Object
  extended by org.dllearner.core.Component
      extended by org.dllearner.core.KnowledgeSource
          extended by org.dllearner.kb.OWLAPIOntology

public class OWLAPIOntology
extends KnowledgeSource


Constructor Summary
OWLAPIOntology()
           
OWLAPIOntology(org.semanticweb.owl.model.OWLOntology onto)
           
 
Method Summary
<T> void
applyConfigEntry(ConfigEntry<T> entry)
          Applies a configuration option to this component.
 void export(File file, OntologyFormat format)
          Export the knowledge source to the specified file in the specified format.
 OWLAPIOntologyConfigurator getConfigurator()
          For each component, a configurator class is generated in package org.dllearner.core.configurators using the script ConfigJavaGenerator.
static String getName()
           
 Set<org.semanticweb.owl.model.OWLClass> getOWLClasses()
           
 Set<org.semanticweb.owl.model.OWLDataProperty> getOWLDataProperies()
           
 Set<org.semanticweb.owl.model.OWLIndividual> getOWLIndividuals()
           
 Set<org.semanticweb.owl.model.OWLObjectProperty> getOWLObjectProperies()
           
 Set<org.semanticweb.owl.model.OWLOntology> getOWLOnntologies()
           
 org.semanticweb.owl.model.OWLOntology getOWLOntolgy()
           
 void init()
          Method to be called after the component has been configured.
 void setOWLOntologies(Set<org.semanticweb.owl.model.OWLOntology> onto)
           
 String toDIG(URI kbURI)
          Transforms this knowledge source to DIG 1.1 code according to the specification.
 KB toKB()
          Transforms this knowledge source into an internal knowledge base.
 
Methods inherited from class org.dllearner.core.Component
createConfigOptions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLAPIOntology

public OWLAPIOntology()

OWLAPIOntology

public OWLAPIOntology(org.semanticweb.owl.model.OWLOntology onto)
Method Detail

getConfigurator

public OWLAPIOntologyConfigurator getConfigurator()
Description copied from class: Component
For each component, a configurator class is generated in package org.dllearner.core.configurators using the script ConfigJavaGenerator. The configurator provides set and get methods for the configuration options of a component.

Specified by:
getConfigurator in class Component
Returns:
An object allowing to configure this component.

getName

public static String getName()

applyConfigEntry

public <T> void applyConfigEntry(ConfigEntry<T> entry)
                      throws InvalidConfigOptionValueException
Description copied from class: Component
Applies a configuration option to this component. Implementations of components should use option and value of the config entry to perform an action (usually setting an internal variable to an appropriate value). Since the availability of configurators, it is optional for components to implement this method. Instead of using this method to take an action based on a configuration value, components can also use the getters defined in the components configurator. Important note: Never call this method directly. All calls are done via the ComponentManager.

Type Parameters:
T - Type of the config entry (Integer, String etc.).
Parameters:
entry - A configuration entry.
Throws:
InvalidConfigOptionValueException - This exception is thrown if the value of the config entry is not valid. For instance, a config option may only accept values, which are within intervals 0.1 to 0.3 or 0.5 to 0.8. If the value is outside of those intervals, an exception is thrown. Note that many of the common cases are already caught in the constructor of ConfigEntry (for instance for a DoubleConfigOption you can specify an interval for the value). This means that, as a component developer, you often do not need to implement further validity checks.
See Also:
Component.getConfigurator()

getOWLOntolgy

public org.semanticweb.owl.model.OWLOntology getOWLOntolgy()

toKB

public KB toKB()
Description copied from class: KnowledgeSource
Transforms this knowledge source into an internal knowledge base.

Specified by:
toKB in class KnowledgeSource
Returns:
An internal Knowledge base or null if this knowledge source does not support a conversion to an internal knowledge base.

init

public void init()
Description copied from class: Component
Method to be called after the component has been configured. Implementation of components can overwrite this method to perform setup and initialisation tasks for this component.

Specified by:
init in class Component

export

public void export(File file,
                   OntologyFormat format)
Description copied from class: KnowledgeSource
Export the knowledge source to the specified file in the specified format.

Specified by:
export in class KnowledgeSource
Parameters:
file - File to store the knowledge base.
format - Format of the knowledge base, e.g. N-Triples.

toDIG

public String toDIG(URI kbURI)
Description copied from class: KnowledgeSource
Transforms this knowledge source to DIG 1.1 code according to the specification. DIG is used for communicating with reasoners.

Specified by:
toDIG in class KnowledgeSource
Parameters:
kbURI - The URI which is assigned to the knowledge base. The URI is used to refer to the knowledge base in queries (DIG supports using several knowledge bases).
Returns:
The DIG XML code.

setOWLOntologies

public void setOWLOntologies(Set<org.semanticweb.owl.model.OWLOntology> onto)

getOWLOnntologies

public Set<org.semanticweb.owl.model.OWLOntology> getOWLOnntologies()

getOWLClasses

public Set<org.semanticweb.owl.model.OWLClass> getOWLClasses()

getOWLObjectProperies

public Set<org.semanticweb.owl.model.OWLObjectProperty> getOWLObjectProperies()

getOWLDataProperies

public Set<org.semanticweb.owl.model.OWLDataProperty> getOWLDataProperies()

getOWLIndividuals

public Set<org.semanticweb.owl.model.OWLIndividual> getOWLIndividuals()


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2008 Jens Lehmann