query-cc9947a6daef994fec8f6a18780808fa

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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?WikiJournal ?WikiJournalLabel ?editor ?editorLabel ?employer ?employerLabel ?coord ?image WHERE {
  # Fetch data
  ?WikiJournal wdt:P123 wd:Q28953974.       # journals in WJ user group
  ?WikiJournal p:P5769|p:P98 ?editorstm.    # journal's current editor(s) & EiC(s)
  ?editorstm ps:P5769|ps:P98 ?editor .
  OPTIONAL { ?editor wdt:P18 ?image }
  OPTIONAL { ?editorstm pq:P582 ?editor_p582 . } FILTER(!BOUND(?editor_p582)) 
  ?editor p:P108 ?employerstm .                    # editor's current employer(s)
  ?employerstm ps:P108 ?employer .
  OPTIONAL {?employerstm pq:P582 ?employer_p582 . } FILTER(!BOUND(?employer_p582)) 
  OPTIONAL {?employer wdt:P625 ?coord. }         # employer's geolocation(s)
  # Fetch lables
  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("?WikiJournal"):::projected v9("?coord"):::projected v5("?editor"):::projected v2("?editor_p582") v4("?editorstm") v8("?employer"):::projected v1("?employer_p582") v7("?employerstm") v6("?image"):::projected c2(["wd:Q28953974"]):::iri c13(["bd:serviceParam"]):::iri c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["not bound(?employer_p582)"]] f0 --> v1 f1[["not bound(?editor_p582)"]] f1 --> v2 v3 --"p:direct/P123"--> c2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"p:P98"--> v4 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"p:P5769"--> v4 end union0r <== or ==> union0l end subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v4 --"p:statement/P98"--> v5 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v4 --"p:statement/P5769"--> v5 end union1r <== or ==> union1l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:direct/P18".-> v6 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P582".-> v2 end v5 --"p:P108"--> v7 v7 --"p:statement/P108"--> v8 subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v7 -."p:qualifier/P582".-> v1 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v8 -."p:direct/P625".-> v9 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end