query-bbf9829567755a7582d58d7a74e46fc3

rq turtle/ttl

Propertiesdescribes a project that uses (P4510)PMC publication ID (P932)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT 
  DISTINCT
#   ?item ?pmcid
  (REPLACE(STR(?item), ".*Q", "Q") AS ?qid) 
  ("P4510" AS ?property)
  ("Q70357595" AS ?Jupyter)
  ("S248" AS ?statedin)
  ("Q229883" AS ?PMC)
  ("S854" AS ?heuristic)
  (CONCAT(
      '"https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pmc&id=PMC', ENCODE_FOR_URI(?pmcid), '&rettype=xml"') AS ?resolver_url)
  ("S813" AS ?retrieved)
  ("+2022-05-24T00:00:00Z/11" AS ?date)

WHERE {
  ?item wdt:P4510 wd:Q70357595 ;
        wdt:P932 ?pmcid .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?Jupyter") v7("?PMC") v11("?date") v8("?heuristic") v1("?item"):::projected v2("?pmcid"):::projected v4("?property") v3("?qid") v9("?resolver_url") v10("?retrieved") v6("?statedin") c2(["wd:Q70357595"]):::iri v1 --"wdt:P4510"--> c2 v1 --"wdt:P932"--> v2 bind0[/"replace(str(?item),'.*Q','Q')"/] v1 --o bind0 bind0 --as--o v3 bind1[/"'P4510'"/] bind1 --as--o v4 bind2[/"'Q70357595'"/] bind2 --as--o v5 bind3[/"'S248'"/] bind3 --as--o v6 bind4[/"'Q229883'"/] bind4 --as--o v7 bind5[/"'S854'"/] bind5 --as--o v8 bind6[/"concat('"https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pmc&id=PMC',encode-for-uri(?pmcid),'&rettype=xml"')"/] v2 --o bind6 bind6 --as--o v9 bind7[/"'S813'"/] bind7 --as--o v10 bind8[/"'+2022-05-24T00:00:00Z/11'"/] bind8 --as--o v11