@prefix this: . @prefix sub: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-mira-claims-with-evidence a ; dct:description "Lists every MIRA claim with the research question it addresses and a tally of the evidence and arguments supporting and opposing it, plus a derived status: contested when both exist, supported, disputed, or no evidence yet. Runs against the type repository of the shared MIRA record type, which holds the whole MIRA graph -- claims and the supports/opposes links alike -- so the endpoint is coupled to that type IRI (https://w3id.org/spaces/mira/r/MiraRecord). It currently includes example records (npx:ExampleNanopub); add a filter excluding them once real MIRA records exist."; dct:license ; rdfs:label "Get MIRA claims with their evidence"; ; """prefix mira: prefix dct: prefix npx: prefix npa: select ?claim ?claim_label ?status ?supporting ?opposing ?question_multi_iri ?question_label_multi ?np (\"^\" as ?np_label) where { { select ?claim (sample(?t) as ?claim_label) (group_concat(distinct str(?q); separator=\" \") as ?question_multi_iri) (group_concat(distinct ?qt; separator=\"\\n\") as ?question_label_multi) where { graph ?ca { ?claim a mira:Claim ; dct:title ?t . } optional { graph ?qa { ?claim mira:addresses ?q . } optional { graph ?qd { ?q a mira:Question ; dct:title ?qt . } } } } group by ?claim } optional { select ?claim (count(distinct ?s) as ?sup) where { graph ?sg { ?s mira:supports ?claim . } } group by ?claim } optional { select ?claim (count(distinct ?o) as ?opp) where { graph ?og { ?o mira:opposes ?claim . } } group by ?claim } bind(coalesce(?sup, 0) as ?supporting) bind(coalesce(?opp, 0) as ?opposing) bind(if(?supporting > 0 && ?opposing > 0, \"contested\", if(?supporting > 0, \"supported\", if(?opposing > 0, \"disputed\", \"no evidence yet\"))) as ?status) graph npa:graph { ?np npx:introduces ?claim . } }""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-10-01T11:00:11Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-mira-claims-with-evidence; rdfs:label "Get MIRA claims with their evidence"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "J7/CcI0Dszb8rRMRD8TZ7k8fiPBSOW9E1Sg/1QAiZZpcM2hBU4Q71KxL+5bxp0pi/nYWngxpCSP5fSwgwHJDoFFCpC/PCISxqgM2Fmj402JVgm/cbUyW+h4f3XV9mLLA/orgiKuQ1BERNX1Jqz3nJ1t92a/ViABDFEX1ikebW48="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }