query-565accb358b8c55a07cd3cb770d29436
Utsagn på Wikidata med referanse fra dn.no SELECT ?statement ?subject ?subjectLabel ?property ?propertyLabel ?object ?objectLabel ?refURL WITH { SELECT DISTINCT ?subject WHERE { { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "Generator"; mwapi:generator "exturlusage"; mwapi:geulimit "500"; mwapi:geuquery ".dn.no"; mwapi:geuprotocol "http"; mwapi:geunamespace "0" . ?subject wikibase:apiOutputItem mwapi:title. } } UNION { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "Generator"; mwapi:generator "exturlusage"; mwapi:geulimit "500"; mwapi:geuquery ".dn.no"; mwapi:geuprotocol "https"; mwapi:geunamespace "0" . ?subject wikibase:apiOutputItem mwapi:title. } } } } AS %i WHERE { INCLUDE %i .
hint:Query hint:optimizer "None".
?subject ?p ?statement . ?statement prov:wasDerivedFrom/pr:P854 ?refURL . FILTER (CONTAINS(str(?refURL), 'dn.no')) .
?property wikibase:claim ?p . ?property wikibase:statementProperty ?ps . ?statement ?ps ?object .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } }
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Utsagn på Wikidata med referanse fra dn.no
SELECT ?statement ?subject ?subjectLabel ?property ?propertyLabel ?object ?objectLabel ?refURL
WHERE {
{
SELECT DISTINCT ?subject
WHERE {
{
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "Generator";
mwapi:generator "exturlusage";
mwapi:geulimit "500";
mwapi:geuquery "*.dn.no";
mwapi:geuprotocol "http";
mwapi:geunamespace "0" .
?subject wikibase:apiOutputItem mwapi:title.
}
} UNION {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "Generator";
mwapi:generator "exturlusage";
mwapi:geulimit "500";
mwapi:geuquery "*.dn.no";
mwapi:geuprotocol "https";
mwapi:geunamespace "0" .
?subject wikibase:apiOutputItem mwapi:title.
}
}
}
}.
?subject ?p ?statement .
?statement prov:wasDerivedFrom/pr:P854 ?refURL .
FILTER (CONTAINS(str(?refURL), 'dn.no')) .
?property wikibase:claim ?p .
?property wikibase:statementProperty ?ps .
?statement ?ps ?object .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}