next
previous
items

Data table via SPARQL

Homicides per million inhabitants using World Bank population data

Download this dataset

Dataset preview

(Static Query)

country date Homicides
"Australia" "1993-01-01"^^<http://www.w3.org/2001/XMLSchema#date> "18"^^<http://www.w3.org/2001/XMLSchema#int>
"Canada" "1993-01-01"^^<http://www.w3.org/2001/XMLSchema#date> "21"^^<http://www.w3.org/2001/XMLSchema#int>
"Croatia" "1993-01-01"^^<http://www.w3.org/2001/XMLSchema#date> "52"^^<http://www.w3.org/2001/XMLSchema#int>
"Cyprus" "1993-01-01"^^<http://www.w3.org/2001/XMLSchema#date> "10"^^<http://www.w3.org/2001/XMLSchema#int>
"Denmark" "1993-01-01"^^<http://www.w3.org/2001/XMLSchema#date> "15"^^<http://www.w3.org/2001/XMLSchema#int>
"Finland" "1993-01-01"^^<http://www.w3.org/2001/XMLSchema#date> "25"^^<http://www.w3.org/2001/XMLSchema#int>
"Germany" "1993-01-01"^^<http://www.w3.org/2001/XMLSchema#date> "15"^^<http://www.w3.org/2001/XMLSchema#int>
"Greece" "1993-01-01"^^<http://www.w3.org/2001/XMLSchema#date> "14"^^<http://www.w3.org/2001/XMLSchema#int>
"Hungary" "1993-01-01"^^<http://www.w3.org/2001/XMLSchema#date> "28"^^<http://www.w3.org/2001/XMLSchema#int>
"Italy" "1993-01-01"^^<http://www.w3.org/2001/XMLSchema#date> "19"^^<http://www.w3.org/2001/XMLSchema#int>

Received 714 rows in 0.009 seconds.


https://www.eea.europa.eu/data-and-maps/daviz/eionet/data/local-sparql-queries/homicides-per-million-inhabitants-using-world-bank-population-data/daviz.json

For system integrators

The following info can be used by a system developer / database administrator in order to retrieve this dataset programmatically over the web using a SPARQL client.

Are you new to Linked Data technology? visit http://linkeddata.org



http://semantic.eea.europa.eu/sparql

PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>
PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>
PREFIX sdmx-attribute: <http://purl.org/linked-data/sdmx/2009/attribute#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX property: <http://rdfdata.eionet.europa.eu/eurostat/property#>
PREFIX wproperty: <http://rdfdata.eionet.europa.eu/who/property#>

SELECT ?country ?date
  (xsd:int(?homicide * 1000000 / ?wbpopulation) AS ?Homicides)
WHERE {
 GRAPH <http://rdfdata.eionet.europa.eu/eurostat/data/crim_gen.rdf.gz> {
    _:crim_gen qb:dataSet <http://rdfdata.eionet.europa.eu/eurostat/data/crim_gen>.
    _:crim_gen sdmx-dimension:freq <http://purl.org/linked-data/sdmx/2009/code#freq-A> .
    _:crim_gen property:crim <http://dd.eionet.europa.eu/vocabulary/eurostat/crim/HCIDE> .
    _:crim_gen property:unit <http://rdfdata.eionet.europa.eu/eurostat/dic/unit#NR> .
    _:crim_gen property:geo ?geo .
    _:crim_gen sdmx-dimension:timePeriod ?date .
    _:crim_gen sdmx-measure:obsValue ?homicide
 }
 FILTER(!?geo IN (<http://rdfdata.eionet.europa.eu/eurostat/dic/geo#RU>, <http://rdfdata.eionet.europa.eu/eurostat/dic/geo#ZA>))

 ?wbcountry owl:sameAs ?geo .

  GRAPH <http://rdfdata.eionet.europa.eu/worldbank/data/SP.POP.TOTL.rdf.gz> {
    _:obs qb:dataSet <http://rdfdata.eionet.europa.eu/worldbank/dataset/wdi/SP.POP.TOTL> .
    _:obs sdmx-dimension:timePeriod ?date .
    _:obs sdmx-dimension:refArea ?wbcountry .
    _:obs sdmx-measure:obsValue ?wbpopulation .
  }

 ?wbcountry rdfs:label ?country .

} ORDER BY ?date ?country


Permalinks

Document Actions