Skip to content

Commit 0275814

Browse files
KonradLindenegonw
authored andcommitted
added missing Prefix and fixed bracketing
1 parent 6f23538 commit 0275814

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scholia/app/templates/location-topic_nearby-researchers.sparql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ PREFIX bd: <http://www.bigdata.com/rdf#>
66
PREFIX wd: <http://www.wikidata.org/entity/>
77
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
88
PREFIX wikibase: <http://wikiba.se/ontology#>
9+
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
910
SELECT ?score ?author ?authorLabel (CONCAT("/author/", SUBSTR(STR(?author),32)) AS ?authorUrl) ?example_work ?example_workLabel (CONCAT("/work/", SUBSTR(STR(?example_work),32)) AS ?example_workUrl) WHERE {
1011
{
1112
SELECT ?author (SUM(?topic_score) * MAX(?inverse_distance) AS ?score) (SAMPLE(?work) AS ?example_work) WHERE {
@@ -32,7 +33,7 @@ SELECT ?score ?author ?authorLabel (CONCAT("/author/", SUBSTR(STR(?author),32))
3233
}
3334
?author wdt:P108 | wdt:P1416 ?organization .
3435
} GROUP BY ?author
35-
}}
36+
}
3637
{
3738
# A score of 3 for each authorship in the topic
3839
?work wdt:P50 ?author .

0 commit comments

Comments
 (0)