query-ab41549c08721d6d517ce84ec9d3b0fa

rq turtle/ttl

Researchers who tweet and aren't on Mastodon SELECT DISTINCT ?item ?itemLabel ?fieldLabel ?orcid ?twitter ?followers WHERE { ?item wdt:P496 ?orcid. ?item wdt:P2002 ?twitter. ?item wdt:P101 ?field. ?field wdt:P279* wd:Q420. # ?item wdt:P106 wd:Q1622272. #?item wdt:P108/wdt:P31/wdt:P279 wd:Q23002037. MINUS {?item wdt:P4033 ?mastodonHandle .} OPTIONAL { ?item wdt:P8687 ?followers.} SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?followers) LIMIT 1000

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#>
# Researchers who tweet and aren't on Mastodon
SELECT DISTINCT ?item ?itemLabel ?fieldLabel ?orcid ?twitter ?followers
WHERE 
{
  ?item wdt:P496 ?orcid.
  ?item wdt:P2002 ?twitter.
  ?item wdt:P101 ?field.
  ?field wdt:P279* wd:Q420.
  # ?item wdt:P106 wd:Q1622272.
  #?item wdt:P108/wdt:P31/wdt:P279 wd:Q23002037.
  MINUS {?item wdt:P4033 ?mastodonHandle .}
  OPTIONAL { ?item wdt:P8687 ?followers.}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(?followers)
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?field") v1("?followers"):::projected v2("?item"):::projected v6("?mastodonHandle") v3("?orcid"):::projected v4("?twitter"):::projected c9(["bd:serviceParam"]):::iri c11(["en"]):::literal c5(["wd:Q420"]):::iri v2 --"wdt:P496"--> v3 v2 --"wdt:P2002"--> v4 v2 --"wdt:P101"--> v5 v5 --"wdt:P279"--> c5 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P4033"--> v6 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P8687".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end