ch.uzh.ifi.attempto.acewiki.core
Interface AceWikiEngine

All Known Implementing Classes:
AbstractAceWikiEngine, ACEOWLEngine, GFEngine, MonolingualEngine

public interface AceWikiEngine

This is the main interface for the AceWiki behavior.

Author:
Tobias Kuhn

Method Summary
 Sentence createAssignmentSentence(Individual ind, Concept concept)
          Creates a new assignement sentence that assigns a given individual to a given concept.
 Sentence createHierarchySentence(Concept subConcept, Concept superConcept)
          Creates a new hierarchy sentence that states that a certain concept is a sub-concept of another concept.
 OntologyElement createOntologyElement(java.lang.String type)
          Creates a new ontology element for the given lexical type.
 Sentence createSentence(java.lang.String serialized)
          Creates a new sentence object based on the given serialization.
 java.util.List<OntologyExporter> getExporters()
          Returns a list of exporters to export the wiki content in different formats.
 LanguageHandler getLanguageHandler(java.lang.String language)
          Returns the language handler for the given language.
 java.lang.String[] getLanguages()
          Returns the available languages.
 java.lang.String[] getLexicalTypes()
          Returns the lexical types, as defined by the respective ontology element types.
 AceWikiReasoner getReasoner()
          Returns the reasoner.
 WordIndex getWordIndex()
          Returns the word index.
 void init(Ontology ontology)
          This is the first method to be called and provides the ontology object.
 

Method Detail

init

void init(Ontology ontology)
This is the first method to be called and provides the ontology object.

Parameters:
ontology - The ontology object.

getLanguageHandler

LanguageHandler getLanguageHandler(java.lang.String language)
Returns the language handler for the given language.

Parameters:
language - The name of the language.
Returns:
The language handler for the given language.

getLanguages

java.lang.String[] getLanguages()
Returns the available languages. The first language is considered the default one, which means that at least one language must be returned.

Returns:
An array of language names.

getLexicalTypes

java.lang.String[] getLexicalTypes()
Returns the lexical types, as defined by the respective ontology element types.

Returns:
The lexical types.

getReasoner

AceWikiReasoner getReasoner()
Returns the reasoner.

Returns:
The reasoner.

getWordIndex

WordIndex getWordIndex()
Returns the word index.

Returns:
The word index.

getExporters

java.util.List<OntologyExporter> getExporters()
Returns a list of exporters to export the wiki content in different formats.

Returns:
A list of ontology exporters.

createOntologyElement

OntologyElement createOntologyElement(java.lang.String type)
Creates a new ontology element for the given lexical type.

Parameters:
type - The lexical type.
Returns:
A new ontology element.

createSentence

Sentence createSentence(java.lang.String serialized)
Creates a new sentence object based on the given serialization.

Parameters:
serialized - The serialized representation of the sentence.
Returns:
A new sentence object.

createAssignmentSentence

Sentence createAssignmentSentence(Individual ind,
                                  Concept concept)
Creates a new assignement sentence that assigns a given individual to a given concept.

Parameters:
ind - The individual.
concept - The concept.
Returns:
A new sentence representing the assignment.

createHierarchySentence

Sentence createHierarchySentence(Concept subConcept,
                                 Concept superConcept)
Creates a new hierarchy sentence that states that a certain concept is a sub-concept of another concept.

Parameters:
subConcept - The sub-concept.
superConcept - The super-concept.
Returns:
A new sentence representing the assignment.


Copyright 2008-2012, AceWiki developers