Skip to content

Commit

Permalink
Fix SPARQL for related scientific meeting.
Browse files Browse the repository at this point in the history
SPARQL for "Related based on people" was wrong for participants.
  • Loading branch information
fnielsen committed Apr 16, 2019
1 parent 851a02b commit 6479fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scholia/app/templates/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@
WHERE {
{
SELECT
(COUNT(*) AS ?score) ?event
(COUNT(DISTINCT ?person) AS ?score) ?event
(SAMPLE(?person) AS ?example_person)
WHERE {
?person ^wdt:P823 | ^wdt:P664 | ^wdt:P1344 | wdt:P710 | (^wdt:P98 / wdt:P4745) | (^wdt:P50 / wdt:P1433 / wdt:P4745 ) | ^wdt:P5804 wd:{{ q }} , ?event .
?person ^wdt:P823 | ^wdt:P664 | wdt:P1344 | ^wdt:P710 | (^wdt:P98 / wdt:P4745) | (^wdt:P50 / wdt:P1433 / wdt:P4745 ) | ^wdt:P5804 wd:{{ q }} , ?event .
FILTER (?event != wd:{{ q }})
}
GROUP BY ?event
Expand Down

0 comments on commit 6479fd1

Please sign in to comment.