@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @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-reasoning-chain a grlc:grlc-query; dct:description "Lists the contributions that test a claim or are derived from it, directly or indirectly."; dct:license ; rdfs:label "Get reasoning chain for a claim"; grlc:endpoint ; grlc:sparql """prefix np: prefix npa: prefix npx: prefix rdf: prefix prov: prefix na: prefix schema: select distinct ?step_iri ?step_iri_label ?relation ?target_iri ?target_iri_label ?user_iri ?np (\"^\" as ?np_label) where { values (?rel ?relation) { (na:tests \"tests\") (prov:wasDerivedFrom \"was derived from\") } # The claim or anything on its chain. ?target_iri (prov:wasDerivedFrom|na:tests)* ?_claim_iri . graph npa:graph { ?np np:hasAssertion ?a ; np:hasProvenance ?p ; npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?inv npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } } graph ?a { ?step_iri a schema:Statement ; ?rel ?target_iri . optional { ?step_iri rdf:value ?step_iri_label } } optional { ?target_iri rdf:value ?target_iri_label } optional { graph ?p { ?a prov:wasAttributedTo ?user_iri } } } order by ?target_iri_label ?relation ?step_iri_label""" . } 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-11-13T09:16:53.971+01:00"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-reasoning-chain; rdfs:label "Get reasoning chain for a claim"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "AHxga0Xev2YjJB1xzB9z0jUAuYZ2KOsTz8tRuMPagxstkKgUXjTPKelunsKTzqEzck57KhEv1CPy1M5OQDlXiVKypQ5ysGZJcw+paByWPs6AH9fVdqk8qBZ+55qaftwj2rFeaWdK67a6MBwCJ4Ei1MjXQjMG0CKa+XeVOB1QDRs="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }