query-f3e201c89f219d885a0c9902e23350d6

rq turtle/ttl

SEO folks

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
  {
    SELECT DISTINCT ?item WHERE {
      {
        ?item p:P106 ?statement0.
        ?statement0 (ps:P106/(wdt:P279*)) wd:Q4048723.
      }
      UNION
      {
        ?item p:P31 ?statement1.
        ?statement1 (ps:P31/(wdt:P279*)) wd:Q4048723.
      }
      UNION
      {
        ?item p:P101 ?statement2.
        ?statement2 (ps:P101/(wdt:P279*)) wd:Q180711.
      }
    }
    LIMIT 1000
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?statement0") v3("?statement1") v4("?statement2") a1((" ")) a2((" ")) a3((" ")) c13(["wd:Q180711"]):::iri c2(["bd:serviceParam"]):::iri c8(["wd:Q4048723"]):::iri c4(["#91;AUTO_LANGUAGE#93;"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v1 --"p:P101"--> v4 v4 --"p:statement/P101"--> a3 a3 --"p:direct/P279"--> c13 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"p:P31"--> v3 v3 --"p:statement/P31"--> a2 a2 --"p:direct/P279"--> c8 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"p:P106"--> v2 v2 --"p:statement/P106"--> a1 a1 --"p:direct/P279"--> c8 end union0r <== or ==> union0l end