|
|||||||||
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.AbstractOntologyElement ch.uzh.ifi.attempto.acewiki.owl.AbstractOWLOntoElement ch.uzh.ifi.attempto.acewiki.owl.OWLRelation ch.uzh.ifi.attempto.acewiki.aceowl.VerbRelation
public class VerbRelation
This class stands for relations that are represented by transitive verbs in ACE and object properties in OWL. Transitive verbs have three word forms: a third singular form, a bare infinitive form, and a passive form. The bare infinitive form is used in the case of negation and plural. The passive form always ends with the word "by".
0: third singular form. 1: bare infinitive form. 2: passive form.
Examples: ["gives", "give", "given by"]; ["knows", "know", "known by"].
Constructor Summary | |
---|---|
VerbRelation()
Creates a new verb relation. |
Method Summary | |
---|---|
void |
collectLexicalRules(java.lang.String catName,
java.util.Collection<LexicalRule> lexRules)
This method should collect the lexical rules of this ontology element for the given category name. |
java.lang.String |
getInternalType()
Returns the word type as it is used internally. |
java.lang.String |
getIRISuffix()
Returns the suffix of the OWL identifier of this ontology element. |
java.util.List<ch.uzh.ifi.attempto.ape.LexiconEntry> |
getLexiconEntries()
Returns the lexicon entries (one for each word form). |
java.lang.String |
getPastPart()
Returns the past participle which is the passive form without the "by". |
java.lang.String |
getType()
Returns the word type as it is shown to the user. |
java.lang.String[] |
getWords()
Returns an array of all word forms. |
java.lang.String |
serializeWords()
Returns the word forms of this ontology element in a serialized form. |
void |
setWords(java.lang.String serializedWords)
Sets the word forms. |
Methods inherited from class ch.uzh.ifi.attempto.acewiki.owl.OWLRelation |
---|
getOWLRepresentation |
Methods inherited from class ch.uzh.ifi.attempto.acewiki.owl.AbstractOWLOntoElement |
---|
getIRI, getOWLDataFactory, getOWLDeclaration |
Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.AbstractOntologyElement |
---|
getArticle, getHeadwords, getId, getOntology, getWord, getWord, initArticle, initId, initOntology, log, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ch.uzh.ifi.attempto.acewiki.core.OntologyElement |
---|
getArticle, getHeadwords, getId, getOntology, getWord, getWord, initArticle, initId, initOntology |
Methods inherited from interface ch.uzh.ifi.attempto.acewiki.owl.OWLOntoElement |
---|
getIRI, getOWLDeclaration, getOWLRepresentation |
Constructor Detail |
---|
public VerbRelation()
Method Detail |
---|
public java.lang.String[] getWords()
OntologyElement
getWords
in interface OntologyElement
public void setWords(java.lang.String serializedWords)
OntologyElement
setWords
in interface OntologyElement
serializedWords
- The serialized word forms to be set.public java.lang.String serializeWords()
OntologyElement
serializeWords
in interface OntologyElement
public java.lang.String getPastPart()
public java.lang.String getIRISuffix()
AbstractOWLOntoElement
getIRISuffix
in class AbstractOWLOntoElement
public java.util.List<ch.uzh.ifi.attempto.ape.LexiconEntry> getLexiconEntries()
ACEOWLOntoElement
getLexiconEntries
in interface ACEOWLOntoElement
public java.lang.String getType()
OntologyElement
getType
in interface OntologyElement
public java.lang.String getInternalType()
OntologyElement
getInternalType
in interface OntologyElement
public void collectLexicalRules(java.lang.String catName, java.util.Collection<LexicalRule> lexRules)
ACEOWLOntoElement
collectLexicalRules
in interface ACEOWLOntoElement
catName
- The category name.lexRules
- The lexical rules should be added to this collection.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |