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

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

public class SemanticContentResult
extends java.lang.Object

Contains information about entities in the result of a search.

Author:
mda99

Constructor Summary
SemanticContentResult(java.lang.String URI)
          build a SemanticContentResult from the URI of a semantic document
 
Method Summary
 java.lang.String[] getComments()
           
 java.lang.String getDLExpressivness()
          returns the DL Expressivness of the semantic document, or null if this information hasn't been requested.
 EntityResult[] getEntityResultList()
          returns the list of entities that matched the query in this semantic document.
 java.lang.String[] getImportedBy()
           
 java.lang.String[] getImports()
           
 java.lang.String[] getLabels()
           
 java.lang.String[] getLanguages()
          returns the set of languages used in the semantic document, or null if this information hasn't been requested.
 java.lang.String[] getLocations()
          returns the set of URLs of the semantic document, or null if this information hasn't been requested.
 int getNBClasses()
          returns the number of classes declared in the semantic document, or 0 if this information hasn't been requested.
 int getNBIndividuals()
          returns the number of individuals declared in the semantic document, or 0 if this information hasn't been requested.
 int getNBProperties()
          returns the number of properties declared in the semantic document, or 0 if this information hasn't been requested.
 int getNbStatements()
           
 long getSize()
          returns the size of the semantic document in KB, or null if this information hasn't been requested.
 java.lang.String getURI()
          returns the size of the semantic document in KB.
 void setComments(java.lang.String[] toReturn)
           
 void setDLExpressivness(java.lang.String expressivness)
          set the DL Expressivness of the semantic document.
 void setEntityResultList(EntityResult[] erl)
          set the list of entities of the semantic document.
 void setEntityResultList(java.util.Vector<EntityResult> erl)
          set the list of entities of the semantic document.
 void setImportedBy(java.lang.String[] result)
           
 void setImports(java.lang.String[] prs)
           
 void setLabels(java.lang.String[] toReturn)
           
 void setLanguages(java.lang.String[] languages)
          set the languages of the semantic document.
 void setLocations(java.lang.String[] locations)
          set the URLs of the semantic document.
 void setNBClasses(int classes)
          set the number of classes of the semantic document.
 void setNBIndividuals(int individuals)
          set the number of individuals of the semantic document.
 void setNBProperties(int props)
          set the number of properties of the semantic document.
 void setNbStatements(int nbStatements)
           
 void setNumberOfStatements(int result)
           
 void setSize(long size)
          set the size of the semantic document.
 void setURI(java.lang.String URI)
          set the URI of the semantic document.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SemanticContentResult

public SemanticContentResult(java.lang.String URI)
build a SemanticContentResult from the URI of a semantic document

Method Detail

getSize

public long getSize()
returns the size of the semantic document in KB, or null if this information hasn't been requested.


setSize

public void setSize(long size)
set the size of the semantic document. Not usable from the client API.


getURI

public java.lang.String getURI()
returns the size of the semantic document in KB.


setURI

public void setURI(java.lang.String URI)
set the URI of the semantic document. Not usable from the client API.


getEntityResultList

public EntityResult[] getEntityResultList()
returns the list of entities that matched the query in this semantic document.


setEntityResultList

public void setEntityResultList(EntityResult[] erl)
set the list of entities of the semantic document. Not usable from the client API.


setEntityResultList

public void setEntityResultList(java.util.Vector<EntityResult> erl)
set the list of entities of the semantic document. Not usable from the client API.


getDLExpressivness

public java.lang.String getDLExpressivness()
returns the DL Expressivness of the semantic document, or null if this information hasn't been requested.


setDLExpressivness

public void setDLExpressivness(java.lang.String expressivness)
set the DL Expressivness of the semantic document. Not usable from the client API.


getLanguages

public java.lang.String[] getLanguages()
returns the set of languages used in the semantic document, or null if this information hasn't been requested.


setLanguages

public void setLanguages(java.lang.String[] languages)
set the languages of the semantic document. Not usable from the client API.


getLocations

public java.lang.String[] getLocations()
returns the set of URLs of the semantic document, or null if this information hasn't been requested.


setLocations

public void setLocations(java.lang.String[] locations)
set the URLs of the semantic document. Not usable from the client API.


getNBClasses

public int getNBClasses()
returns the number of classes declared in the semantic document, or 0 if this information hasn't been requested.


setNBClasses

public void setNBClasses(int classes)
set the number of classes of the semantic document. Not usable from the client API.


getNBIndividuals

public int getNBIndividuals()
returns the number of individuals declared in the semantic document, or 0 if this information hasn't been requested.


setNBIndividuals

public void setNBIndividuals(int individuals)
set the number of individuals of the semantic document. Not usable from the client API.


getNBProperties

public int getNBProperties()
returns the number of properties declared in the semantic document, or 0 if this information hasn't been requested.


setNBProperties

public void setNBProperties(int props)
set the number of properties of the semantic document. Not usable from the client API.


setNumberOfStatements

public void setNumberOfStatements(int result)

setImports

public void setImports(java.lang.String[] prs)

setImportedBy

public void setImportedBy(java.lang.String[] result)

getNbStatements

public int getNbStatements()

setNbStatements

public void setNbStatements(int nbStatements)

getImportedBy

public java.lang.String[] getImportedBy()

getImports

public java.lang.String[] getImports()

setLabels

public void setLabels(java.lang.String[] toReturn)

setComments

public void setComments(java.lang.String[] toReturn)

getComments

public java.lang.String[] getComments()

getLabels

public java.lang.String[] getLabels()