query-567cc8cb9ce93fdc5f9cb9416358fcb9

rq turtle/ttl

External links from Ashmolean Museum's English Wikipedia articleQuery provided by Lucas Werkmeister

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?extlink WHERE {
  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:api "Generator";
                    wikibase:endpoint "en.wikipedia.org";
                    mwapi:generator "allpages";
                    mwapi:gapfrom "Ashmolean_Museum";
                    mwapi:gapto "Ashmolean_Museum";
                    mwapi:prop "extlinks".
    ?extlink wikibase:apiOutput "extlinks/el/text()".
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?extlink"):::projected c15(["extlinks/el/text()"]):::literal c13(["extlinks"]):::literal c6(["en.wikipedia.org"]):::literal c2(["bd:serviceParam"]):::iri c8(["allpages"]):::literal c10(["Ashmolean_Museum"]):::literal c4(["Generator"]):::literal subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:api"--> c4 c2 --"mwapi:endpoint"--> c6 c2 --"mwapi:generator"--> c8 c2 --"mwapi:gapfrom"--> c10 c2 --"mwapi:gapto"--> c10 c2 --"mwapi:prop"--> c13 v1 --"mwapi:apiOutput"--> c15 end