TC5.1 - Knowledge Base Semantic Search via ServiceMap, geolocation: around a point, along a path, into an area

×

Warning message

You can't delete this newsletter because it has not been sent to all its subscribers.

Test Case Title

TC5.1 - Knowledge Base Semantic Search via ServiceMap, geolocation: around a point, along a path, into an area

Goal

I can:

  • Discover city entities: POI, Services, IOT via a graphic user interface à ServiceMap
  • Discover city entities drill down on geospace, in terms of city entities relations, semantic search, in time and text (thus structure and unstructured search) à ServiceMap
  • Discover detailed valued of city entities: real-time sensors data, public transportation data, pollution, pollination, weather forecast, position of busses, etc. à ServiceMap, real-time update for busses, etc.
  • Discover suggested paths for routing: car, pedestrian and public transport (multimodal)
  • Discover city entities: around you, in an area, into a polyline, along a path, etc. Load a preferred Polyline for further reuse

Prerequisites

Using a PC or Mobile with a web browser. Access to ServiceMap, Knowledge base with data. Several of them are available with different number of data: (i) Florence and whole Tuscany, (ii) Helsinki, Antwerp and Bologna, (iii) Venezia, Cagliari, etc.

The following functionalities are available only for specific Snap4city users with specific privileges.

Expected successful result

Discover the information about city elements of the city. Several actions of discovery and semantic search. This core example of discovery is a basis of discovery (i) POI, services, and IOT in dashboard, (ii) IOT and referral data in IOT applications, (iii) showing geolocalized data for web applications, (iv) dashboards, (vi) mobile applications, etc.

Steps

 

 

Please note that some of the following links could be accessible only for registered users.

The Snap4City solution is providing tools for extracting and deducing information from a large set of sources, exploiting crosslinking, deduction via inference, analyticsKnowledge Base grounded on Km4City Advanced Smart City API, ServiceMap, which provide support for inference and navigating in the graph of relationships among the city entities and their data. The drill down on geospace/map can be performed by using ServiceMap.

In the ServiceMap (embedded or not into Dashboards), the user may perform geoqueries:

  • into a squared area, by adding filter on service kind, etc.
  • into an area identified by a polyline, by adding filter on service kind, etc.
  • along a polyline, by adding filter on service kind, etc.

around a point within a max distance, by adding filter on service kind, etc.

The drill down in geo space can bring the user to arrive at a single element as well as to a group of heterogeneous elements (e.g., which are different in kind). Each single element may be inspected to access at is detailed data, real-time data and semantic relationships (via LOG Linked Open Graph, Https://log.disit.org), and may be to browsing the family of its data on the Developer Dashboard. 


Example 1: Discover city entities: POI, Services, IOT via a graphic user interface --> ServiceMap

  • inference in searching by categories. ServiceMap, as it is shown in the above figure, allows you filtering on macro and sub categories of POIs.
  • Click on a ServiceMap: https://firenze.km4city.org  (it is available for several cities)
  • Click with the mouse on the downtown, the following image is accessible, showing: (i) the street address where you clicked and a set of menus on right and on left.
  • Please note that ServiceMap tools is for developers and not for city users

  • You can hide the menus if you like, to have more space for the map results
  • If you elect some category, you can select the number of results and the area in which the geosearch has to be performed. We suggest you to select 500 results and 500 mt, obtaining by clicking the  lens:



     

Example 2: All the links on ServiceMap works also using HTTPS:


Example 3: Ask for the distribution of results as POI in a given area

  • Select the area as in the picture aide and with the whole set of POI kinds 

  • Ask for the distribution clicking on the lens with trend arrow above
  • The results would be as follow with the histogram reporting the distribution of services.

The histogram is interactive to explode aspects of your interest.



GEO and text: Semantic Queries and Browsing can be visual via ServiceMap. Add filtering on text on the same area, for example looking for “Dante”, by using the text box for search in the top part of the right side menu.


Example 4: If your search produces more than 4000 elements the rendering is performed as clusters and takes time.

  1. Click on url:

https://servicemap.snap4city.org/WebAppGrafo/api/v1?queryId=3ed2948bc6e65bce46362471c8d4adb7&format=html

By clicking the link, a complex query on the servicemap tool will start ( https://servicemap.snap4city.org ) and as results a map centered on Florence with a clustered representation of the services available in an area of Florence is shown. Due the high number of results to be shown, the query will take some time.

  1. Zoom in using the mouse scroll wheel, until the clustered view change in direct PIN View. Please note that due the high number of services to be shown, this can take some time. You can see a result as the following image. Each pin represents a POI; THE PERFORMANCE OF THIS PROCESS HAS TO BE IMPROVED.

  1. Click the Hide menu on the top right corner to open the menu and to perform a new search into the explored geo space. You will se the menu as the image on the right;
  2. Select the Service Categories of interest by ticking your preferences (1);

  1. Define the N. of results to be shown in the drop-down menu, for example 100 (2);
  2. Set the search range in “Visible area” (3);
  3. Click the first magnifying lens to perform the new query (4).
  4. The map is updated according to the parameters specified (see the following image as example of results).

 


Example 5: Search around a point:

  1. Click the URL: https://antwerp.snap4city.org
  2. A map, centered on Antwerp is shown;
  3. Zoom in using the mouse scroll wheel and drag the map as you like;
  4. Click on any place in the area of Antwerp to add the blue Pin;

  1. Select the Service Categories of interest by ticking your preferences (1);

  1. Define the N. of results to be shown in the drop-down menu, for example 100 (2);
  2. Set the search range in “500mt” (3). the search is performed in an area of 500 meter around the blue pin;
  3. Click the first magnifying lens to perform the new query (4).  You can see a result similar to the following image.

 


Example 6: Search inside an area:

  1. Click the URL: https://servicemap.snap4city.org/WebAppGrafo/api/v1/?queryId=5e51d3aaa9470e54a5ebc798a0bc3a82&format=html
  2. A map centred on Florence with a clustered representation of the services available in an area of Florence is shown;
  3. Click the Hide menu on the top right corner to open the menu and click the circled arrow icon on the bottom right below the categories list (see image on the right). The pins on the map is deleted and is simpler to interact with the map;
  4. Select the Service Categories of interest by ticking your preferences (1);

  1. Define the N. of results to be shown in the drop-down menu, for example 100 (2);
  2. Set the search range in “specific area” (3).
  3. In the Sear Area drop down menu scroll down and select “ZCS1D” (4). A specific area of Florence is highlighted. The search is performed inside this area.
  4. Click the first magnifying lens to perform the new query (5).  You can see a result similar to the following image. 

 


Example 7: Search along a polyline:

  1. Click the URL: https://servicemap.snap4city.org/WebAppGrafo/api/v1/?queryId=4442d1a7284df64014b10eb7361b8fd5&format=html
  2. Second example: https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=geo:ATAF%204&maxResults=0&format=html

The drill down on space via spatial reasoning. Semantic Queries and Browsing can be visual via ServiceMap See for example the following link that shows a query on the service map tool on services along a bus path.

  1. A map centred on Florence with a clustered representation of the services available in an area of Florence is shown;
  2. Click the Hide menu on the top right corner to open the menu and click the circled arrow icon on the bottom right below the categories list (see image on the right). The pins on the map is deleted and is simpler to interact with the map;
  3. Select the Service Categories of interest by ticking your preferences (1);

  1. Define the N. of results to be shown in the drop-down menu, for example 100 (2);
  2. Set the search range in “specific area” (3).
  3. In the Search Area drop down menu scroll down and select “ATAF 4” (4). The route of the bus line n. 4 is shown on the map..
  4. Click the first magnifying lens to perform the new query (5).  You can see a result similar to the following image.


Example 8: search in Antwerp

click on: Https://antwerp.Snap4city.org 

Please note that the data model is not limited to a few POIs loaded. The POIs have been loaded on the knowledge base Km4City model populated with an enriched Open Street Map data. 

The process for passing from OSM to Km4City is described into the manual loaded in the Google Drive: From the Open Street Map to the Km4City street graph.pdf

https://www.snap4city.org/download/docs/From%20the%20Open%20Street%20Map%20to%20the%20Km4City%20street%20graph.pdf 

You can access to the query results on Service Map by clicking on these links. They have been obtained by the tools by clicking in the small disk icon:

 


Example 9: Search in Helsinki

Click on: Https://helsinki.snap4city.org

Please note that the data model is not limited to a few POIs loaded. The POIs have been loaded on the knowledge base Km4City model populated with an enriched Open Street Map data. 

 

 


Example 10: Drill down on Text

The drill down on text means to add filters on text base, and to create specific queries on non-structured data. It can be performed by using:

  • ServiceMap and thus on Knowledge Base, where the text search provides data positioned on the map. Once the selection is performed, the resulting data may be shown on the map calling Service Map, generating a request by asking to show on map a list of ServiceURI, city elements, POI, etc.

    In this case:
  • the RIGHT-SIDE MENU of the ServiceMap can be used to search for some POIs into area or point, then on top of the same selection the user can pose a filter based on TEXT.
  • the LEFT-SIDE MENU of the ServiceMap can be used to search POI in the whole are disregarding the filtering.

     

    You can start testing this requirement by following the sequence of actions:
  1. Click on url: https://servicemap.snap4city.org/
  2. Click the Hide menu on the top right corner to open the menu;
  3. Select the categories of interest in the Services Categories list, or tick the Select All box (1);
  4. Write the word “Dante” in the search text into services field;
  5. As N. results, set: “No limit”;
  6. In the Search Range filed, select “visible area”;
  7. Click the lens to start the search;
  8. You can see the map with all services containing the text “Dante”. The result is similar to the following image.

 

 


Example 11: Discover detailed valued of city entities: real-time public transportation data, busses position.

  1. Click on the dashboard:
    1. https://servicemap.disit.org/WebAppGrafo/api/v1/?showBusPosition=true&format=html&controls=hidden&info=hidden
    2. It is accessible as an external service
  2. it can be integrated into dashboard as well such as in:
  3. https://dashboard.km4city.org/view/?iddasboard=MzA=&nome_dashboard=Firenze2

If you click on the single blinking circle, representing the position of the bus, you can get information about that bus.





 

 


Example 12: Discover suggested paths for routing: car, pedestrian and public transport (multimodal)

  1. Open the service map: https://servicemap.snap4city.org, in Florence for example
  2. Click on the map for defining the start and the end point of your path
  3. Click on the map and the ServiceMap finds for you the place, go on the menu on left and set this point as the start
  4. Click on the map and the service map finds for you the place (providing an address and information around), go on the menu on left and set this point as ending point, destination.

  1. Now it is possible on the left side menu to decide different kind of traveling modalities:
    • Pedestrian: foot shortest
    • Pedestrian quite: foot quietest
    • Private car:
    • Multimodal (for public transportation using multiple operators)
  2. Selecting Foot Shortest

 

  1. Selecting Foot Shortest

  1. Selecting Multimodal, several segments are provided with the usage of 3 operators (in this cases). 

 


Example 13: Discover suggested paths for routing: car, pedestrian and public transport (multimodal)

In the ServiceMap it is possible to load a polyline for further use. This is possible thanks to the tools:

 

Once the PolyLine (open or closed) is created with WICKET it can be loaded on the Servicemap using the above links.

We loaded the Antwerp SmartArea so that you can perform queries inside it from Https://antwerp.snap4city.org the settings are those reported in the menu on right in the image. Please note that we loaded only a few sample data.