query-69c8bcee6ea73a13c2d17820f41bb2ec

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?database ?databaseLabel ?links ?linksLabel
WHERE {
   {
  SELECT DISTINCT ?database ?links
  WHERE {
     {
  SELECT DISTINCT ?property
  WHERE {
    VALUES ?type {
      wikibase:ExternalId
      wikibase:Url
    }
    ?property wikibase:propertyType ?type;
      (wdt:P31/(wdt:P279*)) wd:Q28147643.
  }
}
    ?property wdt:P1629 ?database.
    MINUS { ?database wdt:P31 wd:Q11266439 }
    OPTIONAL {
      ?database wdt:P10568 ?links.
      }
  }
}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
 }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?database"):::projected v4("?links"):::projected v2("?property") v1("?type") a1((" ")) c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q28147643"]):::iri c6(["wd:Q11266439"]):::iri bind0[/VALUES ?type/] bind0-->v1 bind00(["wikibase:ExternalId"]) bind00 --> bind0 bind01(["wikibase:Url"]) bind01 --> bind0 v2 --"wikibase:propertyType"--> v1 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 v2 --"wdt:P1629"--> v3 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P31"--> c6 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P10568".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end