File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,13 @@ <h1>d3namedmap</h1>
4545
4646SELECT DISTINCT ?s ?label ?population ?area (?density AS ?size)
4747WHERE {
48- ?s a yago:PrefecturesOfJapan ;
48+ ?s a yago:WikicatPrefecturesOfJapan ;
4949 rdfs:label ?label ;
5050 dbpedia-owl:populationTotal ?population ;
5151 dbpedia-owl:areaTotal ?area .
5252 BIND (xsd:float(?population)/xsd:float(?area/1000000) AS ?density)
5353 FILTER (lang(?label) = 'ja' )
54+ FILTER (str(?s) != 'http://dbpedia.org/resource/Onjuku')
5455}
5556ORDER BY DESC(?density)
5657 </ textarea >
Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>
44
55SELECT ?pref ?area
66WHERE {
7- ?s a yago:PrefecturesOfJapan ;
7+ ?s a yago:WikicatPrefecturesOfJapan ;
88 rdfs:label ?pref ;
99 dbpedia-owl:areaTotal ?area .
1010 FILTER (lang(?pref ) = ' en' )
11+ ## a bug of YAGO in DBpedia 2016-04 ?
12+ FILTER (str(?pref ) != ' Onjuku' )
1113}
1214ORDER BY DESC (?area )
You can’t perform that action at this time.
0 commit comments