Project:SPARQL/examples: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 31: Line 31:
</SPARQL>
</SPARQL>
= Federated queries =
= Federated queries =
== Documents author by employees of Wikimedia Sverige (via Wikidata)==
<SPARQL tryit="1">
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT ?document ?documentLabel ?person ?personLabel
WHERE
{
?document wbt:P19 ?person.
?person wbt:P1 ?wikidataQ.
BIND(URI(concat("http://www.wikidata.org/entity/", ?wikidataQ)) AS ?wikidata_iri)
SERVICE <https://query.wikidata.org/sparql> {
?wikidata_iri wdt:P108 wd:Q15279144.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". }
}
</SPARQL>
== Organizations and their social media and official website (from Wikidata)==
== Organizations and their social media and official website (from Wikidata)==
<SPARQL tryit="1">
<SPARQL tryit="1">

Navigation menu