edu.washington.cs.knowitall.ontology
Class OntologicalRelation

java.lang.Object
  extended by edu.washington.cs.knowitall.ontology.OntologicalRelation
All Implemented Interfaces:
Serializable

public class OntologicalRelation
extends Object
implements Serializable

An instance of an @see OntologicalForm form.

Author:
schmmd
See Also:
Serialized Form

Field Summary
 com.google.common.collect.ImmutableList<OntologicalRelationArgument> arguments
           
 String name
           
 
Constructor Summary
OntologicalRelation(OntologicalForm form, List<OntologicalRelationArgument> arguments)
           
OntologicalRelation(String name, List<OntologicalRelationArgument> arguments)
           
 
Method Summary
 boolean contains(String string)
          Determine if any argument contains the supplied string.
 boolean equals(Object other)
           
static OntologicalRelation fromXmlElement(org.jdom.Element e)
           
 int hashCode()
           
 String toString()
           
 org.jdom.Element toXmlElement()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final String name

arguments

public final com.google.common.collect.ImmutableList<OntologicalRelationArgument> arguments
Constructor Detail

OntologicalRelation

public OntologicalRelation(String name,
                           List<OntologicalRelationArgument> arguments)

OntologicalRelation

public OntologicalRelation(OntologicalForm form,
                           List<OntologicalRelationArgument> arguments)
Method Detail

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

contains

public boolean contains(String string)
Determine if any argument contains the supplied string.

Parameters:
string - string to look for
Returns:
true if found

toXmlElement

public org.jdom.Element toXmlElement()

fromXmlElement

public static OntologicalRelation fromXmlElement(org.jdom.Element e)


Copyright © 2011 University of Washington CSE. All Rights Reserved.