This uses the SPARQL kernel for Jupyter Notebook
%lsmagics
We set a few default options via those magics.
# Modify output format
# Don't show more than 80 results (event if more are fetched)
%show 80
# Request whatever format is appropriate for the query type
%format default
# Activate table output
%display table
Set the endpoint to Noordergraf
%endpoint https://noordergraf.rug.nl:10036/repositories/noordergraf
%prefix : <https://noordergraf.rug.nl/ns#>
Search for famous people. These are people with a link to an external site, such as wikidata.
SELECT ?person ?name ?sameas {
?person :sameAs ?sameas .
?person :name / :fullName ?name .
?item :subject ?person .
FILTER fn:not(STRSTARTS(xsd:string(?sameas), "https://noordergraf"))
} ORDER BY ?name
person | name | sameas |
---|---|---|
https://noordergraf.rug.nl/item/P00002#P1 | Théodore van Gogh | http://www.wikidata.org/entity/Q317188 |
https://noordergraf.rug.nl/item/P00001#P1 | Vincent van Gogh | http://www.wikidata.org/entity/Q5582 |