edu.washington.cs.knowitall.ontology
Class OntologicalRelation
java.lang.Object
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
name
public final String name
arguments
public final com.google.common.collect.ImmutableList<OntologicalRelationArgument> arguments
OntologicalRelation
public OntologicalRelation(String name,
List<OntologicalRelationArgument> arguments)
OntologicalRelation
public OntologicalRelation(OntologicalForm form,
List<OntologicalRelationArgument> arguments)
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.