eu.monnetproject.lemon
Interface LinguisticOntology

All Known Implementing Classes:
LexInfo

public interface LinguisticOntology

Gives access to all values specified in a linguistic ontology

Author:
John McCrae

Method Summary
 Condition getCondition(String name)
          Get a condition predicate by its name
 Collection<Condition> getConditions()
          Get the set of condition predicates listed in the linguistic ontology
 SenseContext getContext(String name)
          Get a context predicate by its name
 Collection<SenseContext> getContexts()
          Get the set of context predicates listed in the linguistic ontology
 Definition getDefinition(String name)
          Get a definition predicate by its name
 Collection<Definition> getDefinitions()
          Get the set of definition predicates listed in the linguistic ontology
 Collection<String> getDefinitions(LemonElementOrPredicate elem)
          Get any definitions of an element or predicate
 Collection<Edge> getEdge()
          Get the set of edge relation types listed in the linguistic ontology
 Edge getEdge(String name)
          Get a edge relation type by its name
 Collection<Text> getExamples(URI frameClass)
          Get any examples of a frame
 Collection<FormVariant> getFormVariant()
          Get the set of form variant relation types listed in the linguistic ontology
 FormVariant getFormVariant(String name)
          Get a form variant relation type by its name
 URI getFrameClass(String name)
          Get a frame class by name
 Collection<URI> getFrameClasses()
          Get all possible frame classes
 Collection<LexicalVariant> getLexicalVariant()
          Get the set of lexical variant relation types listed in the linguistic ontology
 LexicalVariant getLexicalVariant(String name)
          Get a lexical variant relation type by its name
 Collection<Property> getProperties()
          Get the set of properties listed in the linguistics ontology
 Property getProperty(String name)
          Get a property reference by its name
 Map<Property,Collection<PropertyValue>> getPropertyMap(String... prop)
          Convenience method to get a property map
 PropertyValue getPropertyValue(String name)
          Get a property value by its name
 Collection<Representation> getRepresentation()
          Get the set of representation relation types listed in the linguistic ontology
 Representation getRepresentation(String name)
          Get a representation relation type by its name
 Collection<SenseRelation> getSenseRelation()
          Get the set of sense relation types listed in the linguistic ontology
 SenseRelation getSenseRelation(String name)
          Get a sense relation type by its name
 SynArg getSynArg(String name)
          Get a synArg predicate by its name
 Collection<SynArg> getSynArgs()
          Get the set of synArg predicates listed in the linguistic ontology
 Collection<SynArg> getSynArgsForFrame(URI frameClass)
          Get the necessary synArgs for a given frame
 Collection<PropertyValue> getValues(Property property)
          Get the set of property values listed in the linguistic ontology for a given property
 

Method Detail

getProperty

Property getProperty(String name)
Get a property reference by its name

Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getProperties

Collection<Property> getProperties()
Get the set of properties listed in the linguistics ontology


getPropertyValue

PropertyValue getPropertyValue(String name)
Get a property value by its name

Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getValues

Collection<PropertyValue> getValues(Property property)
Get the set of property values listed in the linguistic ontology for a given property


getSynArg

SynArg getSynArg(String name)
Get a synArg predicate by its name

Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getSynArgs

Collection<SynArg> getSynArgs()
Get the set of synArg predicates listed in the linguistic ontology


getSynArgsForFrame

Collection<SynArg> getSynArgsForFrame(URI frameClass)
Get the necessary synArgs for a given frame


getCondition

Condition getCondition(String name)
Get a condition predicate by its name

Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getConditions

Collection<Condition> getConditions()
Get the set of condition predicates listed in the linguistic ontology


getContext

SenseContext getContext(String name)
Get a context predicate by its name

Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getContexts

Collection<SenseContext> getContexts()
Get the set of context predicates listed in the linguistic ontology


getDefinition

Definition getDefinition(String name)
Get a definition predicate by its name

Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getDefinitions

Collection<Definition> getDefinitions()
Get the set of definition predicates listed in the linguistic ontology


getEdge

Edge getEdge(String name)
Get a edge relation type by its name

Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getEdge

Collection<Edge> getEdge()
Get the set of edge relation types listed in the linguistic ontology


getFormVariant

FormVariant getFormVariant(String name)
Get a form variant relation type by its name

Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getFormVariant

Collection<FormVariant> getFormVariant()
Get the set of form variant relation types listed in the linguistic ontology


getLexicalVariant

LexicalVariant getLexicalVariant(String name)
Get a lexical variant relation type by its name

Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getLexicalVariant

Collection<LexicalVariant> getLexicalVariant()
Get the set of lexical variant relation types listed in the linguistic ontology


getRepresentation

Representation getRepresentation(String name)
Get a representation relation type by its name

Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getRepresentation

Collection<Representation> getRepresentation()
Get the set of representation relation types listed in the linguistic ontology


getSenseRelation

SenseRelation getSenseRelation(String name)
Get a sense relation type by its name

Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getSenseRelation

Collection<SenseRelation> getSenseRelation()
Get the set of sense relation types listed in the linguistic ontology


getFrameClasses

Collection<URI> getFrameClasses()
Get all possible frame classes


getFrameClass

URI getFrameClass(String name)
Get a frame class by name

Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getPropertyMap

Map<Property,Collection<PropertyValue>> getPropertyMap(String... prop)
Convenience method to get a property map


getDefinitions

Collection<String> getDefinitions(LemonElementOrPredicate elem)
Get any definitions of an element or predicate


getExamples

Collection<Text> getExamples(URI frameClass)
Get any examples of a frame



Copyright © 2012. All Rights Reserved.