ibspan.tss.dao
Class RestaurantDAO
java.lang.Object
ibspan.tss.dao.RestaurantDAO
public class RestaurantDAO
- extends Object
Data Access Object providing nice interface to model with restaurants
descriptions. This implementation contains methods for building SPARQL query
describing preferred restuarant on the base of user preferencies described in
search form.
- Author:
- Maciej Gawinecki
Constructor Summary |
RestaurantDAO(OntModel mDomain,
OntModel mRestaurantsDB)
Constructs RestaurantDAO object providing access to the
given model with restaurants. |
Method Summary |
Memory |
doQuery(Map properties,
int maxResults)
Execute query and put results into Memory object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestaurantDAO
public RestaurantDAO(OntModel mDomain,
OntModel mRestaurantsDB)
- Constructs
RestaurantDAO
object providing access to the
given model with restaurants.
- Parameters:
mDomain
- is model with domain ontologymRestaurantsDB
- is a model with restaurants.
doQuery
public Memory doQuery(Map properties,
int maxResults)
- Execute query and put results into
Memory
object.
- Parameters:
action
- describing this request
- Returns:
- Memory with results stored as OntModel