public class RestaurantWS
extends java.lang.Object
Constructor and Description |
---|
RestaurantWS() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
convertLocationMeasurement()
Get the SenML measurement from the WLBOX
longitude and latitude simulated Latitude (37.323), Longitude (-122.03218)
|
static java.util.ArrayList<SparqlResultMatchingFood> |
getCity()
Search all cities available in the restaurant ontology and dataset
|
static java.util.ArrayList<SparqlResultMatchingFood> |
getFoodType()
Search all type of restaurant (e.g., pizzeria) in the restaurant ontology and dataset
|
java.util.ArrayList<SparqlResultRecipeNaturopathy> |
getLocationMeasurements()
Search all food measurements
|
static java.util.ArrayList<SparqlResultMatchingFood> |
getRating()
Search all ratings of restaurant in the ontology and dataset
|
java.lang.String |
linkToGeonames()
Link to geonames, a daset to retrieve information from a longitude and a latitude
|
java.util.ArrayList<SparqlResultRestaurant> |
linkToResto()
Link to resto ontologies
|
static com.hp.hpl.jena.rdf.model.Model |
loadDatabaseRestaurant() |
static java.util.ArrayList<SparqlResultRestaurant> |
searchRestoInCity(java.lang.String foodType,
java.lang.String city,
java.lang.String rating) |
static java.util.ArrayList<SparqlResultRestaurant> |
searchRestoInSpecificCity(java.lang.String city)
Search a resto for a specific city
|
public javax.ws.rs.core.Response convertLocationMeasurement()
public java.util.ArrayList<SparqlResultRecipeNaturopathy> getLocationMeasurements()
property
- public java.lang.String linkToGeonames()
property
- public java.util.ArrayList<SparqlResultRestaurant> linkToResto()
property
- public static java.util.ArrayList<SparqlResultMatchingFood> getFoodType()
property
- public static java.util.ArrayList<SparqlResultMatchingFood> getCity()
property
- public static java.util.ArrayList<SparqlResultMatchingFood> getRating()
property
- public static java.util.ArrayList<SparqlResultRestaurant> searchRestoInCity(java.lang.String foodType, java.lang.String city, java.lang.String rating)
public static java.util.ArrayList<SparqlResultRestaurant> searchRestoInSpecificCity(java.lang.String city)
city
- public static com.hp.hpl.jena.rdf.model.Model loadDatabaseRestaurant()