ch.uzh.ifi.attempto.acewiki.aceowl
Class TrAdjRelation

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.core.AbstractOntologyElement
      extended by ch.uzh.ifi.attempto.acewiki.owl.AbstractOWLOntoElement
          extended by ch.uzh.ifi.attempto.acewiki.owl.OWLRelation
              extended by ch.uzh.ifi.attempto.acewiki.aceowl.TrAdjRelation
All Implemented Interfaces:
ACEOWLOntoElement, OntologyElement, Relation, OWLOntoElement

public class TrAdjRelation
extends OWLRelation
implements ACEOWLOntoElement

This class stands for relations that are represented by transitive adjectives in ACE and object properties in OWL. Transitive adjectives consist of an adjective plus a preposition that is connected to the adjective by a hyphen "-" or an underscore "_". Underscores are replaced by blanks in the case of pretty-printing. Transitive adjectives have just one word form.

0: word form consisting of an adjective plus a preposition.

Examples: "located-in"; "used_for".

Author:
Tobias Kuhn

Constructor Summary
TrAdjRelation()
          Creates a new relation that is represented by a transitive adjective.
 
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 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

TrAdjRelation

public TrAdjRelation()
Creates a new relation that is represented by a transitive adjective.

Method Detail

getWords

public java.lang.String[] getWords()
Description copied from interface: OntologyElement
Returns an array of all word forms.

Specified by:
getWords in interface OntologyElement
Returns:
An array containing all word forms.

setWords

public void setWords(java.lang.String serializedWords)
Description copied from interface: OntologyElement
Sets the word forms.

Specified by:
setWords in interface OntologyElement
Parameters:
serializedWords - The serialized word forms to be set.

serializeWords

public java.lang.String serializeWords()
Description copied from interface: OntologyElement
Returns the word forms of this ontology element in a serialized form.

Specified by:
serializeWords in interface OntologyElement
Returns:
The serialized word forms.

getIRISuffix

public java.lang.String getIRISuffix()
Description copied from class: AbstractOWLOntoElement
Returns the suffix of the OWL identifier of this ontology element. Such identifiers are IRIs and the suffix is the part after the hash sign.

Specified by:
getIRISuffix in class AbstractOWLOntoElement
Returns:
The IRI suffix.

getLexiconEntries

public java.util.List<ch.uzh.ifi.attempto.ape.LexiconEntry> getLexiconEntries()
Description copied from interface: ACEOWLOntoElement
Returns the lexicon entries (one for each word form).

Specified by:
getLexiconEntries in interface ACEOWLOntoElement
Returns:
The lexicon entries.

getType

public java.lang.String getType()
Description copied from interface: OntologyElement
Returns the word type as it is shown to the user.

Specified by:
getType in interface OntologyElement
Returns:
The word type.

getInternalType

public java.lang.String getInternalType()
Description copied from interface: OntologyElement
Returns the word type as it is used internally.

Specified by:
getInternalType in interface OntologyElement
Returns:
The internal word type.

collectLexicalRules

public void collectLexicalRules(java.lang.String catName,
                                java.util.Collection<LexicalRule> lexRules)
Description copied from interface: ACEOWLOntoElement
This method should collect the lexical rules of this ontology element for the given category name.

Specified by:
collectLexicalRules in interface ACEOWLOntoElement
Parameters:
catName - The category name.
lexRules - The lexical rules should be added to this collection.


Copyright 2008-2012, AceWiki developers