net.lexinfo
Class LexInfo

java.lang.Object
  extended by net.lexinfo.LexInfo
All Implemented Interfaces:
LinguisticOntology

public class LexInfo
extends Object
implements LinguisticOntology


Field Summary
static String LEXINFO_URI
           
 
Constructor Summary
LexInfo()
           
 
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... strings)
          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 reference by its name
 Collection<SynArg> getSynArgs()
          Get the set of properties listed in the linguistics ontology
 Collection<SynArg> getSynArgsForFrame(URI frameClass)
          Get the set of URI values listed in the linguistic ontology for a given URI
 Collection<PropertyValue> getValues(Property property)
          Get the set of property values listed in the linguistic ontology for a given property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEXINFO_URI

public static final String LEXINFO_URI
See Also:
Constant Field Values
Constructor Detail

LexInfo

public LexInfo()
Method Detail

getProperty

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

Specified by:
getProperty in interface LinguisticOntology
Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getProperties

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

Specified by:
getProperties in interface LinguisticOntology

getPropertyValue

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

Specified by:
getPropertyValue in interface LinguisticOntology
Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getValues

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

Specified by:
getValues in interface LinguisticOntology

getSynArg

public SynArg getSynArg(String name)
Get a synArg reference by its name

Specified by:
getSynArg in interface LinguisticOntology
Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getSynArgs

public Collection<SynArg> getSynArgs()
Get the set of properties listed in the linguistics ontology

Specified by:
getSynArgs in interface LinguisticOntology

getSynArgsForFrame

public Collection<SynArg> getSynArgsForFrame(URI frameClass)
Get the set of URI values listed in the linguistic ontology for a given URI

Specified by:
getSynArgsForFrame in interface LinguisticOntology

getCondition

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

Specified by:
getCondition in interface LinguisticOntology
Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getConditions

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

Specified by:
getConditions in interface LinguisticOntology

getContext

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

Specified by:
getContext in interface LinguisticOntology
Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getContexts

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

Specified by:
getContexts in interface LinguisticOntology

getDefinition

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

Specified by:
getDefinition in interface LinguisticOntology
Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getDefinitions

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

Specified by:
getDefinitions in interface LinguisticOntology

getEdge

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

Specified by:
getEdge in interface LinguisticOntology
Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getEdge

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

Specified by:
getEdge in interface LinguisticOntology

getFormVariant

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

Specified by:
getFormVariant in interface LinguisticOntology
Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getFormVariant

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

Specified by:
getFormVariant in interface LinguisticOntology

getLexicalVariant

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

Specified by:
getLexicalVariant in interface LinguisticOntology
Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getLexicalVariant

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

Specified by:
getLexicalVariant in interface LinguisticOntology

getRepresentation

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

Specified by:
getRepresentation in interface LinguisticOntology
Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getRepresentation

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

Specified by:
getRepresentation in interface LinguisticOntology

getSenseRelation

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

Specified by:
getSenseRelation in interface LinguisticOntology
Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getSenseRelation

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

Specified by:
getSenseRelation in interface LinguisticOntology

getFrameClasses

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

Specified by:
getFrameClasses in interface LinguisticOntology

getFrameClass

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

Specified by:
getFrameClass in interface LinguisticOntology
Throws:
IllegalArgumentException - If the name is not recognised by the ontology

getPropertyMap

public Map<Property,Collection<PropertyValue>> getPropertyMap(String... strings)
Description copied from interface: LinguisticOntology
Convenience method to get a property map

Specified by:
getPropertyMap in interface LinguisticOntology

getDefinitions

public Collection<String> getDefinitions(LemonElementOrPredicate elem)
Description copied from interface: LinguisticOntology
Get any definitions of an element or predicate

Specified by:
getDefinitions in interface LinguisticOntology

getExamples

public Collection<Text> getExamples(URI frameClass)
Description copied from interface: LinguisticOntology
Get any examples of a frame

Specified by:
getExamples in interface LinguisticOntology


Copyright © 2012. All Rights Reserved.