query-cd87312e261ec620aef6278d6b6f7cc3

rq turtle/ttl

Propertiesinstance of (P31)author (P50)

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 ?propLabel ?p
WHERE {
  ?s wdt:P31 wd:Q13442814;
     wdt:P50 ?author .
  OPTIONAL {
    ?s ?p ?o .
  }
  ?prop wikibase:directClaim ?p .
  FILTER (STRSTARTS(STR(?p), STR(wdt:)))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?propLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?author") v5("?o") v2("?p"):::projected v6("?prop") v1("?propLabel"):::projected v3("?s") c3(["wd:Q13442814"]):::iri c7(["bd:serviceParam"]):::iri c9(["en"]):::literal f0[["starts-with(str(?p),str('wdt:'))"]] f0 --> v2 v3 --"wdt:P31"--> c3 v3 --"wdt:P50"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -->v2--> v5 end v6 -."wikibase:directClaim".-> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end