Semantic.hri.fi is part of Helsinki Region Infoshare. It provides Linked Open Data (RDF/SCOVO) view of www.aluesarjat.fi statistics. Where as traditional PC/Axis-based statistics are separate and isolated files from which one can search for a single type of statistical information at a time, semantic.hri.fi provides relations between different types of statistics through the dimensions they share, e.g. all statistics of some area and year. One can also make searches over diverse statistical information.
the RDF-database located at semantic.hri.fi is based on statistical material from www.aluesarjat.fi -statistical database. The license for this data is located at : www.hri.fi/lisenssit/hri-nimea/#english)
In addition semantic.hri.fi -database contains geometric data provided by Helsinki City Survey Division - more information about the source data (in Finnish) at www.hri.fi/fi/data/paakaupunkiseudun-aluejakokartat/. License in Finnish located at www.hri.fi/lisenssit/kmo-aluejakorajat/ (license terms very close (but not identical) to creativecommons.org/licenses/by-sa/3.0/).
Semantic.hri.fi terms and conditions are the same as for www.hri.fi - www.hri.fi/en/terms-and-conditions/).
Please note that this is a beta version of the Semantic.hri.fi website. The website, its services and all content found on it are provided on an “as is” and “as available” basis. HRI does not give any warranties, whether express or implied, as to the suitability or usability of the website, its software or any of its content.
Semantic.hri.fi will not be liable for any loss, whether such loss is direct, indirect, special or consequential, suffered by any party as a result of their use of the Semantic.hri.fi website, its services or content.
Should you encounter any bugs, glitches, lack of functionality or other problems on the website, please let us know immediately so we can rectify these accordingly. Your help in this regard is greatly appreciated.
This change log provides information about changes made to services and data.
Semantic.hri.fi provides public support free of charge in Discussion Groups (keskusteluryhmät suomeksi). Administrator may also be contacted directly with email: hri-info [at] forumvirium.fi.
The Faceted search displays a list of all dimension types and dimensions loaded into the service. Dimension values can be selected and unselected by clicking on them. Each selection reduces the list of shown dimensions to those used in items having the selected dimensions.
A minimum of three dimension selections is necessary to show items having the selected dimesions on the right hand side of the window. The dimension buttons on the right hand side can be used as well to add and remove dimension selections.
The header of the item results shows the selected dimensions and the body shows the item data in tabular form.
The page size of results can be controlled via the Page size field. For cases where the result size exceeds the page size, the Previous and Next page links can be used for navigation between the result pages.
The SPARQL query form provides an easy to use interface to execute SPARQL queries against the integrated HTTP based SPARQL endpoint. The queries are entered into the query field and either executed via the Submit Query -button or saved into the list of saved queries via the Save Query -button. Default namespaces for most of the query cases are by default used and needn't be declared in the Query field.
The page size of results can be controlled via the Page size field. For cases where the result size exceeds the page size, the Previous and Next page links can be used for navigation between the result pages.
Saved queries can be copied into the Query form by single clicks and deleted from the list of saved queries by double clicks.
The Map visualization uses a GoogleMaps widget to show the area borders of the Capital Region of Helsinki. The visualization uses three layers of widgets to show large areas for small zoom levels, medium areas for medium zoom range and small areas for high zoom range.
When crossing an area with the mouse, the background opacity of the area becomes smaller and a marker with the area title is shown at the center point of the area. When clicking an area related data is shown in the info widget on the right of the window. The tabs of the info widget contain a general description of the area, the DBpedia description of the area and a small excerpt of the area statistics.
The Web pages interact with the backend through a number of services, which are presented below.
The SPARQL endpoint is available via /sparql and acts according to the following SPARQL protocol specification
The facected search functionality is provided via /search and /facets. The facets service provides data on all available dimension values in JSON form via HTTP GET /facets. Result is of form
{
"facets": [
{"id":"dimension:facetLocalName", "name":"facet name", "values": [
{"id":"facetNamespace:valueLocalName", "name":"value name", "description":"Optional description of value""},
...
]
},
...
]
}
All IDs are namespace/local name encoded URIs. These must be properly URL encoded when used as parameters to search service.
The search service provides the actual search functionality via HTTP GET /search. Via "value" named request parameters the result is constrained to items having the given dimension values, e.g. value=valmistumisvuosi:_1940-1949 to search for items having the given dimension value. One or more values can be specified from each facet (multi-selection not implemented in search demo), but items are only returned if there's restrictions from at least three facets.
The parameter "include" is used to declare if "items" and/or "values" are to be returned. Use include=items and include=values to return both.
"limit" and "offset" can be used for paging of the results. The semantics are the same as in SQL.
The result is a JSON-object with the optional entries "items" for matched items, "availableValues" for additional facet values to be chosen and optinally "hasMoreResults" with the value true, if more results are available. Values related to a given item are positionally encoded with facet headers given in "headers". Available values are in a hash map with value ID as a key and "true" as value for easy and efficient filtering.
For example number of families with two children in Helsinki 2010:
http://semantic.hri.fi/search?value=vuosi%3A_2010&value=alue%3A_091_Helsinki&value=lasten_m%C3%A4%C3%A4r%C3%A4_perheess%C3%A4%3ALapsiluku_2&include=items&include=values&limit=50&offset=0returns
{
"availableValues": { "vuosi:_2010":true, "alue:_091_Helsinki":true, "yksikkö:Perhe":true, "dataset:A04S_HKI_Lapsiperheet":true, "lasten_määrä_perheessä:Lapsiluku_2":true },
"headers": [ "dimension:Alue", "dimension:Vuosi", "dimension:Yksikkö", "dimension:Lasten_määrä_perheessä", "scv:Dataset" ],
"items": [ { "values": ["alue:_091_Helsinki", "vuosi:_2010","yksikkö:Perhe", "lasten_määrä_perheessä:Lapsiluku_2", "dataset:A04S_HKI_Lapsiperheet" ], "value":"24416" } ],
"hasMoreResults": false
}
The source code for the PC-AXIS parser and SCOVO transformation is avaiable from here : Mysema Stat