eu.scape_project.watch.domain
Class Question

java.lang.Object
  extended by thewebsemantic.binding.RdfBean<Question>
      extended by eu.scape_project.watch.domain.Question

public class Question
extends thewebsemantic.binding.RdfBean<Question>

Questions are predefined points of interest related directly or indirectly to Source and Property. The Questions can be parameterized in order to offer some flexibility to the Planner.

Author:
Luis Faria

Constructor Summary
Question()
          Create a new empty question.
Question(String sparql, RequestTarget target, List<EntityType> types, List<Property> properties, List<Entity> entities, long period)
          Create a new question.
 
Method Summary
 boolean equals(Object obj)
           
 List<Entity> getEntities()
           
 String getId()
           
 long getPeriod()
           
 List<Property> getProperties()
           
 String getSparql()
           
 RequestTarget getTarget()
           
 List<EntityType> getTypes()
           
 int hashCode()
           
 void setEntities(List<Entity> entities)
           
 void setId(String id)
           
 void setPeriod(long period)
           
 void setProperties(List<Property> properties)
           
 void setSparql(String sparql)
           
 void setTarget(RequestTarget target)
           
 void setTypes(List<EntityType> types)
           
 String toString()
           
 
Methods inherited from class thewebsemantic.binding.RdfBean
asIndividual, delete, fill, fill, load, query, refresh, save
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Question

public Question()
Create a new empty question.


Question

public Question(String sparql,
                RequestTarget target,
                List<EntityType> types,
                List<Property> properties,
                List<Entity> entities,
                long period)
Create a new question.

Parameters:
sparql - The SPARQL query to execute in the KB
target - The target resource type, to which the query result must bind to.
types - The entity types that are questioned
properties - The properties that are questioned
entities - The entities that are questioned
period - The preferred period in minutes in which to re-assess this question
Method Detail

getTypes

public List<EntityType> getTypes()

setTypes

public void setTypes(List<EntityType> types)

getProperties

public List<Property> getProperties()

setProperties

public void setProperties(List<Property> properties)

getId

public String getId()

setId

public void setId(String id)

getSparql

public String getSparql()

setSparql

public void setSparql(String sparql)

getTarget

public RequestTarget getTarget()

setTarget

public void setTarget(RequestTarget target)

getEntities

public List<Entity> getEntities()

setEntities

public void setEntities(List<Entity> entities)

getPeriod

public long getPeriod()

setPeriod

public void setPeriod(long period)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.