uk.ac.open.kmi.watson.services
Class EntityResult

java.lang.Object
  extended by uk.ac.open.kmi.watson.services.EntityResult

public class EntityResult
extends java.lang.Object

Contains information about entities in the result of a search.

Author:
mda99

Constructor Summary
EntityResult(java.lang.String URI)
          build the entity from its URI
 
Method Summary
 java.lang.String getComment()
          returns the comment of the entity, or null if this information has not been requested
 java.lang.String getLabel()
          returns the label of the entity, or null if this information has not been requested
 java.lang.String[][] getLiterals()
          returns the relations to literals of the entity, or null if this information has not been requested
 java.lang.String[][] getRelationFrom()
          returns the relations from the entity, i.e.
 java.lang.String[][] getRelationTo()
          returns the relations to the entity, i.e the property and subject of statements for which the entity is object, or null if this information has not been requested
 java.lang.String getType()
          returns the type (class, property or individual) of the entity, or null if this information has not been requested
 java.lang.String getURI()
          returns the URI of the entity
 void setComment(java.lang.String comment)
          set the comment of the entity.
 void setLabel(java.lang.String label)
          set the label of the entity.
 void setLiterals(java.lang.String[][] literals)
          set the literal relations of the entity.
 void setRelationFrom(java.lang.String[][] relationFrom)
          set the relations from the entity.
 void setRelationTo(java.lang.String[][] relationTo)
          set the relations to the entity.
 void setType(java.lang.String type)
          set the type of the entity.
 void setURI(java.lang.String URI)
          set the URI of the entity.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityResult

public EntityResult(java.lang.String URI)
build the entity from its URI

Method Detail

getLabel

public java.lang.String getLabel()
returns the label of the entity, or null if this information has not been requested


setLabel

public void setLabel(java.lang.String label)
set the label of the entity. Not usable in the client API.


getURI

public java.lang.String getURI()
returns the URI of the entity


setURI

public void setURI(java.lang.String URI)
set the URI of the entity. Not useable in the client API.


getType

public java.lang.String getType()
returns the type (class, property or individual) of the entity, or null if this information has not been requested


setType

public void setType(java.lang.String type)
set the type of the entity. Not usable in the client API.


getLiterals

public java.lang.String[][] getLiterals()
returns the relations to literals of the entity, or null if this information has not been requested


setLiterals

public void setLiterals(java.lang.String[][] literals)
set the literal relations of the entity. Not usable in the client API.


getRelationTo

public java.lang.String[][] getRelationTo()
returns the relations to the entity, i.e the property and subject of statements for which the entity is object, or null if this information has not been requested


setRelationTo

public void setRelationTo(java.lang.String[][] relationTo)
set the relations to the entity. Not usable in the client API.


getRelationFrom

public java.lang.String[][] getRelationFrom()
returns the relations from the entity, i.e. the property and object of statements for which the entity is subject, or null if this information has not been requested


setRelationFrom

public void setRelationFrom(java.lang.String[][] relationFrom)
set the relations from the entity. Not usable in the client API.


getComment

public java.lang.String getComment()
returns the comment of the entity, or null if this information has not been requested


setComment

public void setComment(java.lang.String comment)
set the comment of the entity. Not usable in the client API.