query-ad4b51efc42d326396ff3a0d17e8a58a

rq turtle/ttl

SPARQL query

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?raw_item ?FMALabel ?FMAID #Showing data in this order
WHERE
{
    ?raw_item wdt:P1402 ?FMAID . #Collecting all items which have FMA ID data, from whole WikiData item pages

    SERVICE wikibase:label { 
    bd:serviceParam wikibase:language "en". 
    ?raw_item rdfs:label ?FMALabel .
  }    
}
LIMIT 200

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?FMAID"):::projected v3("?FMALabel"):::projected v1("?raw_item"):::projected c3(["bd:serviceParam"]):::iri c5(["en"]):::literal v1 --"wdt:P1402"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 v1 --"rdfs:label"--> v3 end