. . . . "Returns the basic info of all assertion templates. Supports both template identity shapes (docs/template-identity-and-governance.md in the nanodash repo): the label, tag, and unlisted flag are read off the node typed nt:AssertionTemplate in the assertion -- the assertion graph URI for legacy templates, the embedded template node for templates with embedded identity -- falling back to the assertion graph URI if no typed node is found. Governed version pairs are deduplicated: a version declaring dct:isVersionOf plus gen:governedBy is listed only if it is the current governed winner of its (kind, space) pair -- the newest non-invalidated version signed by a current member+ of the governing space, with the kind validated as maintained by that space (mirroring the get-latest-governed-version resolver). The winners are materialized once in a single-row group_concat sub-select sharing no variables with the outer query, then checked via string containment; this replaces the previous optional-joined sub-select, which relied on RDF4J's non-standard left-join behavior (under strict SPARQL semantics the unbound cross-join would drop non-governed templates) and risked per-row re-evaluation of the federated SERVICE call. A governed version whose pair does not validate is kept (inert gen:governedBy, matching the resolver's pin-is-the-floor semantics); non-governed versions are unaffected." . . . "Get assertion templates" . . "prefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix nt: \nprefix gen: \n\nselect ?np ?pubkey ?pubkeyhash ?date ?label ?tag ?unlisted ?creator where {\n {\n select (group_concat(?w1; separator=\"|\") as ?winners) where {\n {\n select ?gKind ?gSpace (max(concat(str(?gDate), \">\", str(?gNp))) as ?maxW) where {\n graph npa:graph {\n ?gNp npa:hasValidSignatureForPublicKeyHash ?gPubkeyhash ;\n dct:created ?gDate ;\n npx:embeds ?gVersion ;\n np:hasAssertion ?gA .\n filter not exists { ?gInv npx:invalidates ?gNp ; npa:hasValidSignatureForPublicKeyHash ?gPubkeyhash . }\n }\n graph ?gA { ?gVersion dct:isVersionOf ?gKind ; gen:governedBy ?gSpace . }\n service {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n graph ?stateG {\n ?gKind npa:isMaintainedBy ?gSpace ; npa:hasGoverningSpaceRef ?gRef .\n ?gRi a gen:RoleInstantiation ; npa:forSpace ?gSpace ; npa:forSpaceRef ?gRef ;\n npa:hasRoleType ?gTier ; npa:forAgent ?gAgent .\n filter(?gTier = gen:AdminRole || ?gTier = gen:MaintainerRole || ?gTier = gen:MemberRole)\n ?gAcct a npa:AccountState ; npa:agent ?gAgent ; npa:pubkey ?gPubkeyhash .\n }\n }\n } group by ?gKind ?gSpace\n }\n bind(concat(str(?gKind), \">\", str(?gSpace), \">\", ?maxW) as ?w1)\n }\n }\n graph npa:graph {\n ?np npa:hasValidSignatureForPublicKey ?pubkey .\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . }\n ?np npa:hasValidSignatureForPublicKeyHash ?pubkeyhash .\n ?np npx:hasNanopubType nt:AssertionTemplate .\n ?np dct:created ?date .\n ?np np:hasAssertion ?a .\n optional { ?np npx:signedBy ?creator . }\n }\n optional { graph ?a { ?tnode a nt:AssertionTemplate } }\n bind(coalesce(?tnode, ?a) as ?t)\n optional { graph ?a { ?t rdfs:label ?label } }\n optional { graph ?a { ?t nt:hasTag ?tag . } }\n bind(exists { graph ?a { ?t a nt:UnlistedTemplate } } as ?unlisted)\n optional { graph ?a { ?t dct:isVersionOf ?kind ; gen:governedBy ?space . } }\n bind(concat(\"|\", coalesce(?winners, \"\"), \"|\") as ?wlist)\n filter( !bound(?kind)\n || !contains(?wlist, concat(\"|\", str(?kind), \">\", str(?space), \">\"))\n || contains(?wlist, concat(\"|\", str(?kind), \">\", str(?space), \">\", str(?date), \">\", str(?np), \"|\")) )\n} order by desc(?date)" . . "Tobias Kuhn" . "2026-07-09T14:18:32Z"^^ . . . . . . . . . "RSA" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" . "HP3Tac6K2mwpZScrXGS9EVUc0c9068mh9OafmiG841/EEPhxzJDumRiyqOq3yEOK5ZI3hk/Ao9dbElC5HnrFPLsvcQId/vOdGm7+wKNQ3K/2TbbQSxnDOy/XmUu3ROEAr7lkN2QFPvDyGpGnI3fa3apzbKDvcXq39IgseiGu9xg=" . . .