|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.acewiki.core.AbstractAceWikiEngine ch.uzh.ifi.attempto.acewiki.gf.GFEngine
public class GFEngine
This is an AceWiki engine using GF (Grammatical Framework).
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 |
---|
public GFEngine()
Method Detail |
---|
public void init(Ontology ontology)
AceWikiEngine
init
in interface AceWikiEngine
init
in class AbstractAceWikiEngine
ontology
- The ontology object.public LanguageHandler getLanguageHandler(java.lang.String language)
AceWikiEngine
language
- The name of the language.
public java.lang.String[] getLanguages()
AceWikiEngine
public GFGrammar getGFGrammar()
public AceWikiReasoner getReasoner()
AceWikiEngine
public OntologyElement createOntologyElement(java.lang.String type)
AceWikiEngine
type
- The lexical type.
public Sentence createSentence(java.lang.String serialized)
AceWikiEngine
serialized
- The serialized representation of the sentence.
public Sentence createAssignmentSentence(Individual ind, Concept concept)
AceWikiEngine
ind
- The individual.concept
- The concept.
public Sentence createHierarchySentence(Concept subConcept, Concept superConcept)
AceWikiEngine
subConcept
- The sub-concept.superConcept
- The super-concept.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |