query-9152f5f3faead92d8edb60236db9c2ee

rq turtle/ttl

Get Gene Ontology subcellular localization information and references for proteins

SELECT ?proteinLabel ?uniprot ?valueLabel ?paperLabel ?PMID ?PMCID WHERE { ?protein wdt:P352 ?uniprot . ?protein p:P681 ?statement . ?statement ps:P681 ?value . ?statement prov:wasDerivedFrom/pr:P248 ?paper . ?paper wdt:P31 wd:Q13442814 . OPTIONAL { ?paper wdt:P698 ?PMID . } OPTIONAL { ?paper wdt:P932 ?PMCID . } SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } limit 10

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 prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Get Gene Ontology subcellular localization information and references for proteins

SELECT ?proteinLabel ?uniprot ?valueLabel ?paperLabel ?PMID ?PMCID WHERE {
  ?protein wdt:P352 ?uniprot .
  ?protein p:P681 ?statement .
  ?statement ps:P681 ?value . 
  ?statement prov:wasDerivedFrom/pr:P248 ?paper .
  ?paper wdt:P31 wd:Q13442814 .
  OPTIONAL { ?paper wdt:P698 ?PMID . }
  OPTIONAL { ?paper wdt:P932 ?PMCID . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} limit 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?PMCID"):::projected v6("?PMID"):::projected v5("?paper") v1("?protein") v3("?statement") v2("?uniprot"):::projected v4("?value") a1((" ")) c13(["en"]):::literal c7(["wd:Q13442814"]):::iri c11(["bd:serviceParam"]):::iri v1 --"p:direct/P352"--> v2 v1 --"p:P681"--> v3 v3 --"p:statement/P681"--> v4 v3 --"prov:wasDerivedFrom"--> a1 a1 --"p:reference/P248"--> v5 v5 --"p:direct/P31"--> c7 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:direct/P698".-> v6 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:direct/P932".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end