Skip to content

Commit 80d3e08

Browse files
committed
Only for the selected countries
1 parent ffa8135 commit 80d3e08

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

scholia/app/templates/countries_list-of-countries.sparql

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
{% import 'sparql-helpers.sparql' as sparql_helpers -%}
2-
PREFIX bd: <http://www.bigdata.com/rdf#>
2+
PREFIX wd: <http://www.wikidata.org/entity/>
33
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
4-
PREFIX wikibase: <http://wikiba.se/ontology#>
54
SELECT ?number_of_publications ?country ?countryLabel ?example_author ?example_authorLabel ?example_work ?example_workLabel WHERE {
65
{
76
SELECT ?country (COUNT(DISTINCT ?work) AS ?number_of_publications) (SAMPLE(?work) AS ?example_work) (SAMPLE(?author) AS ?example_author) WHERE {
8-
{
9-
SELECT ?country WHERE {
10-
# VALUES ?country { {% for q in qs %} wd:{{ q }} {% endfor %} }
11-
}
12-
}
7+
VALUES ?country { {% for q in qs %} wd:{{ q }} {% endfor %} }
138
OPTIONAL {
9+
VALUES ?country { {% for q in qs %} wd:{{ q }} {% endfor %} }
1410
?organization wdt:P17 ?country .
1511
?author wdt:P108 | wdt:P463 | wdt:P1416/wdt:P361* ?organization .
1612
?work wdt:P50 ?author .

0 commit comments

Comments
 (0)