|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.acewiki.core.ontology.OntologyElement
ch.uzh.ifi.attempto.acewiki.core.ontology.Role
ch.uzh.ifi.attempto.acewiki.core.ontology.VerbRole
public class VerbRole
This class stands for roles that are represented by a transitive verb. 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 | |
|---|---|
VerbRole()
Creates a new verb role. |
|
| Method Summary | |
|---|---|
protected void |
changeWords(java.lang.String... words)
Changes the word forms without updating the ontology indexes. |
java.lang.String |
getInternalType()
Returns the word type as it is used internally. |
java.lang.String |
getPastPart()
Returns the past participle which is the passive form without the "by". |
java.lang.String |
getPrettyPastPart()
Returns the pretty-printed past participle. |
java.lang.String |
getType()
Returns the word type as it is shown to the user. |
java.lang.String[] |
getWords()
Returns the word forms. |
| Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.ontology.OntologyElement |
|---|
add, compareTo, edit, getHeadword, getIndexEntries, getOntology, getPrettyWord, getSentences, getURI, getURISuffix, getWord, getWord, log, registerAt, remove, setWords, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VerbRole()
| Method Detail |
|---|
public java.lang.String[] getWords()
OntologyElement
getWords in class OntologyElementprotected void changeWords(java.lang.String... words)
OntologyElement
changeWords in class OntologyElementwords - The word forms.public java.lang.String getPastPart()
public java.lang.String getPrettyPastPart()
getPastPart()public java.lang.String getType()
OntologyElement
getType in class OntologyElementpublic java.lang.String getInternalType()
OntologyElement
getInternalType in class OntologyElement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||