query-9a5889d218576d11c3eb593e91d11660

rq turtle/ttl

Co-author graph

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#>
#defaultView:Graph
select ?author1 ?author1Label ?image ?author2 where {
  ?item wdt:P31 wd:Q13442814 .
  ?item wdt:P1325 ?resource . 
  filter strstarts(str(?resource), "https://openfmri.org/")
  ?item wdt:P50 ?author1 ;
        wdt:P50 ?author2 .
  optional { ?author1 wdt:P18 ?image . }
  filter not exists { filter (?author1 = ?author2) }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?author1"):::projected v2("?author2"):::projected v5("?image"):::projected v4("?item") v3("?resource") c3(["wd:Q13442814"]):::iri c8(["bd:serviceParam"]):::iri c10(["en"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?author1 = ?author2"]] e0f0 --> e0v1 e0f0 --> e0v2 e0v1("?author1"):::projected e0v2("?author2"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f1[["?author1 = ?author2"]] f1 --> v1 f1 --> v2 f2[["starts-with(str(?resource),'https://openfmri.org/')"]] f2 --> v3 v4 --"wdt:P31"--> c3 v4 --"wdt:P1325"--> v3 v4 --"wdt:P50"--> v1 v4 --"wdt:P50"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P18".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end