Skip to content

Commit

Permalink
Also support for 'inspired by'
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw authored and fnielsen committed Oct 20, 2023
1 parent 74f9e55 commit 615d14a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scholia/app/templates/work_data.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -302,5 +302,16 @@ WHERE {
BIND(COALESCE(?value_string, ?valueqid) AS ?value)
BIND(CONCAT("../", ?valueqid) AS ?valueUrl)
}
UNION
{
BIND(36 AS ?order)
BIND("Inspired by" AS ?description)
?work wdt:P941 ?value_ .
BIND(SUBSTR(STR(?value_), 32) AS ?valueqid)
?value_ rdfs:label ?value_string .
FILTER (LANG(?value_string) = 'en')
BIND(COALESCE(?value_string, ?valueqid) AS ?value)
BIND(CONCAT("../", ?valueqid) AS ?valueUrl)
}
}
ORDER BY ?order

0 comments on commit 615d14a

Please sign in to comment.