ch.uzh.ifi.attempto.acewiki.gf
Class GFEngine

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.core.AbstractAceWikiEngine
      extended by ch.uzh.ifi.attempto.acewiki.gf.GFEngine
All Implemented Interfaces:
AceWikiEngine

public class GFEngine
extends AbstractAceWikiEngine

This is an AceWiki engine using GF (Grammatical Framework).

Author:
Tobias Kuhn

Constructor Summary
GFEngine()
          Creates a new GF-based AceWiki engine.
 
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.
 GFGrammar getGFGrammar()
          Returns the grammar object.
 LanguageHandler getLanguageHandler(java.lang.String language)
          Returns the language handler for the given language.
 java.lang.String[] getLanguages()
          Returns the available languages.
 AceWikiReasoner getReasoner()
          Returns the reasoner.
 void init(Ontology ontology)
          This is the first method to be called and provides the ontology object.
 
Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.AbstractAceWikiEngine
addExporter, getExporters, getLexicalTypes, getWordIndex, setLexicalTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GFEngine

public GFEngine()
Creates a new GF-based AceWiki engine.

Method Detail

init

public void init(Ontology ontology)
Description copied from interface: AceWikiEngine
This is the first method to be called and provides the ontology object.

Specified by:
init in interface AceWikiEngine
Overrides:
init in class AbstractAceWikiEngine
Parameters:
ontology - The ontology object.

getLanguageHandler

public LanguageHandler getLanguageHandler(java.lang.String language)
Description copied from interface: AceWikiEngine
Returns the language handler for the given language.

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

getLanguages

public java.lang.String[] getLanguages()
Description copied from interface: AceWikiEngine
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.

getGFGrammar

public GFGrammar getGFGrammar()
Returns the grammar object.

Returns:
The grammar object.

getReasoner

public AceWikiReasoner getReasoner()
Description copied from interface: AceWikiEngine
Returns the reasoner.

Returns:
The reasoner.

createOntologyElement

public OntologyElement createOntologyElement(java.lang.String type)
Description copied from interface: AceWikiEngine
Creates a new ontology element for the given lexical type.

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

createSentence

public Sentence createSentence(java.lang.String serialized)
Description copied from interface: AceWikiEngine
Creates a new sentence object based on the given serialization.

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

createAssignmentSentence

public Sentence createAssignmentSentence(Individual ind,
                                         Concept concept)
Description copied from interface: AceWikiEngine
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

public Sentence createHierarchySentence(Concept subConcept,
                                        Concept superConcept)
Description copied from interface: AceWikiEngine
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