query-8abdc99af4b59681ad3e2572f7e4f62b

rq turtle/ttl

Propertiesgenetic association (P2293)determination method or standard (P459)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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 distinct (COUNT(*) as ?c) ?determinationLabel WHERE {
  ?gene p:P2293 ?statement . # all gene disease genetic associations
  ?statement ps:P2293 ?disease .  # get the value associated with the statement
  ?statement pq:P459 ?determination . # get 'determination method' qualifiers associated with the statements
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
} GROUP BY ?determinationLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?c") v4("?determination") v3("?disease") v1("?gene") v2("?statement") c5(["bd:serviceParam"]):::iri c7(["en"]):::literal v1 --"p:P2293"--> v2 v2 --"p:statement/P2293"--> v3 v2 --"p:qualifier/P459"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind1[/"count(*)"/] bind1 --as--o v5