Using Stanbol’s Entityhub to create a semantic city guide

Is it possible to create a city guide that works everywhere? Yes it is, thanks to the web of data and to Apache Stanbol. Imagine all the knowledge that Wikipedia has about a city: ancient buildings, museums, great squares, churches, people who live there, albums recorded in the city and so on. Well, this is what LocalMe, our Android application developed in our Knowledge Management course taught by Valentina Presutti, brings on your mobile phone. Thanks to Apache Stanbol and its Entitythub it is possible to manage a network of datasets (in our case DBpedia, Linkedgeodata and Factforge) in which you can find all the information you need to create your own semantic city guide.

Thanks to a simple query service you don’t have to write SPARQL code for every single dataset, you just need to write one query in JSON-like style to retrieve data from all the datasets.

Here it is an example:

{
"selected": [
"id",
],
"offset": "0",
"limit": "0",
"constraints": [
{
"type": "range",
"field": "http://www.w3.org/2003/01/geo/wgs84_pos#lat",
"upperBound": 44.498204 ,
"lowerBound" : 44.448204,
"inclusive": true,
},
{
"type": "range",
"field": "http://www.w3.org/2003/01/geo/wgs84_pos#long",
"upperBound": 11.355829,
"lowerBound" : 11.305829,
"inclusive": true,
},
{
"type": "reference",
"field": "http:\/\/stanbol.apache.org\/ontology\/entityhub\/query#references",
"value": [ "http:\/\/dbpedia.org\/resource\/Category:Buildings_and_structures_in_Bologna"
],
"mode": "all"
}
]
}

With this JSON-like code, assuming that you are currently in Bologna, you can retrieve all the buildings and structures located near to you. This is just a simple example of our Apps.

The application was tested in Bologna, Rome, Florence, Milan and Venice!

If you have any problem don’t hesitate to email us:

Riccardo Russo – riccardo.russo7@studio.unibo.it

Mariagrazia Cinti – mariagrazia.cinti@studio.unibo.it

Comments are closed.