query-6bd24a1c6fedf6e0dadc96f540b206e0

rq turtle/ttl

OpenfMRI authors

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 ?author ?authorLabel ?genderLabel ?scholar ?twitter where {
    { select distinct ?author {
        ?paper wdt:P31 wd:Q13442814 ;
                    wdt:P1325 ?resource . 
        filter strstarts(str(?resource), "https://openfmri.org/")
        ?paper wdt:P50 ?author
        } 
    }
    optional { ?author wdt:P21 ?gender }
    optional { ?author wdt:P1960 ?scholar }
    optional { ?author wdt:P2002 ?twitter }
    # optional { ?author wdt:P106 ?occupation }
    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; v3("?author"):::projected v4("?gender") v2("?paper") v1("?resource") v5("?scholar"):::projected v6("?twitter"):::projected c3(["wd:Q13442814"]):::iri c10(["bd:serviceParam"]):::iri c12(["en"]):::literal f0[["starts-with(str(?resource),'https://openfmri.org/')"]] f0 --> v1 v2 --"wdt:P31"--> c3 v2 --"wdt:P1325"--> v1 v2 --"wdt:P50"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P21".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P1960".-> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P2002".-> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end