query-acfce9a9eb335a054575ebd3d1452516

rq turtle/ttl

Propertiesauthor (P50)instance of (P31)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?collectivePseudonymLabel ?collectivePseudonym ?humanLabel ?human ?evidence
WHERE {
  ?evidence schema:about ?collectivePseudonym.
  ?work wdt:P50 ?collectivePseudonym.
  ?collectivePseudonym wdt:P31 wd:Q16017119.
  ?human wdt:P31 wd:Q5.
  { ?collectivePseudonym ?p ?human }
  UNION
  { ?human ?p ?collectivePseudonym }
  FILTER regex(STR(?evidence), 'https://en.wikipedia.org/wiki/')
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?collectivePseudonym ?human
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?collectivePseudonym"):::projected v3("?evidence"):::projected v2("?human"):::projected v5("?p") v4("?work") c8(["bd:serviceParam"]):::iri c6(["wd:Q5"]):::iri c10(["en"]):::literal c5(["wd:Q16017119"]):::iri f0[["regex(str(?evidence),'https://en.wikipedia.org/wiki/')"]] f0 --> v3 v3 --"schema:about"--> v1 v4 --"wdt:P50"--> v1 v1 --"wdt:P31"--> c5 v2 --"wdt:P31"--> c6 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 -->v5--> v1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 -->v5--> v2 end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end