query-7e7bf14938c0d011172e13c5e224a818

rq turtle/ttl

TODO

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT distinct ?item ?itemLabel ?article_name ?ISBN_10 ?ISBN_13
WHERE { 
  SERVICE wikibase:mwapi {
     bd:serviceParam wikibase:endpoint "no.wikipedia.org";
                     wikibase:api "Generator";
                     mwapi:generator "categorymembers";
                     mwapi:gcmtitle "Kategori:Artikler uten kilder – skriftlig verk" ;         # specifically here
                     mwapi:gcmprop "ids|title|type";
                     mwapi:gcmlimit "max".
     # out
     ?article_name wikibase:apiOutput mwapi:title.        # en-wikipedia article / category name
     ?item wikibase:apiOutputItem mwapi:item.            # wikidata QId for the person's item
    }
  filter(BOUND(?item))

  OPTIONAL { ?item wdt:P212 ?ISBN_13 . }
  OPTIONAL { ?item wdt:P957 ?ISBN_10 . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],no". }  
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?ISBN_10"):::projected v3("?ISBN_13"):::projected v2("?article_name"):::projected v1("?item"):::projected c23(["#91;AUTO_LANGUAGE#93;,no"]):::literal c18(["mwapi:item"]):::iri c14(["max"]):::literal c10(["Kategori:Artikler uten kilder – skriftlig verk"]):::literal c8(["categorymembers"]):::literal c2(["bd:serviceParam"]):::iri c4(["no.wikipedia.org"]):::literal c16(["mwapi:title"]):::iri c12(["ids|title|type"]):::literal c6(["Generator"]):::literal f0[["bound(?item)"]] f0 --> v1 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:endpoint"--> c4 c2 --"mwapi:api"--> c6 c2 --"mwapi:generator"--> c8 c2 --"mwapi:gcmtitle"--> c10 c2 --"mwapi:gcmprop"--> c12 c2 --"mwapi:gcmlimit"--> c14 v2 --"mwapi:apiOutput"--> c16 v1 --"mwapi:apiOutputItem"--> c18 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P212".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P957".-> v4 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c2 --"mwapi:language"--> c23 end