eu.scape_project.watch.domain
Class Question
java.lang.Object
thewebsemantic.binding.RdfBean<Question>
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
Methods inherited from class thewebsemantic.binding.RdfBean |
asIndividual, delete, fill, fill, load, query, refresh, save |
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 KBtarget
- The target resource type, to which the query result must bind to.types
- The entity types that are questionedproperties
- The properties that are questionedentities
- The entities that are questionedperiod
- The preferred period in minutes in which to re-assess this
question
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.