[ { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4/assertion", "@graph": [ { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4/list-maintained-templates", "http://purl.org/dc/terms/description": [ { "@value": "Lists the assertion templates maintained by a given space, i.e. the template kinds registered as maintained resources of the space, each shown with the label of its current governed version and a link to that version's nanopublication. The current governed version of a (kind, space) pair is the newest non-invalidated version signed by a current member+ (admin/maintainer/member) of the governing space, mirroring the get-latest-governed-version resolver: winners are materialized per kind in a sub-select that federates to the spaces repo (checking npa:isMaintainedBy and the signer's validated role tier), then joined back to the template data by an exact date+nanopub match. Kinds without a validating governed version are not listed. Ordered alphabetically by label." } ], "http://purl.org/dc/terms/license": [ { "@id": "http://www.apache.org/licenses/LICENSE-2.0" } ], "@type": [ "https://w3id.org/kpxl/grlc/grlc-query" ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "List maintained templates of a space" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/type/79342356d3a68063a627e83ac34b376479e438abb8a4c4b27d49f845f537dc8d" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix nt: \nprefix gen: \n\nselect ?resource ?resource_label ?np (\"^\" as ?np_label) where {\n {\n select ?resource ?np (coalesce(min(if(lang(?label) = \"\", ?label, ?nolabel)), min(?label)) as ?resource_label) where {\n {\n select ?resource (max(concat(str(?gDate), \">\", str(?gNp))) as ?maxW) where {\n values ?_space_multi_iri {}\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 a nt:AssertionTemplate ; dct:isVersionOf ?resource ; gen:governedBy ?_space_multi_iri . }\n service {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n graph ?stateG {\n ?resource npa:isMaintainedBy ?_space_multi_iri ; npa:hasGoverningSpaceRef ?gRef .\n ?gRi a gen:RoleInstantiation ; npa:forSpace ?_space_multi_iri ; 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 ?resource\n }\n graph npa:graph {\n ?np npa:hasValidSignatureForPublicKeyHash ?pubkeyhash ;\n dct:created ?date ;\n npx:embeds ?version ;\n np:hasAssertion ?a .\n }\n filter(concat(str(?date), \">\", str(?np)) = ?maxW)\n graph ?a { ?version a nt:AssertionTemplate ; dct:isVersionOf ?resource . }\n optional { graph ?a { ?version rdfs:label ?label } }\n } group by ?resource ?np\n }\n} order by lcase(str(?resource_label))" } ] } ] }, { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4/Head", "@graph": [ { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4/provenance", "@graph": [ { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4/pubinfo", "@graph": [ { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4", "http://purl.org/dc/terms/created": [ { "@value": "2026-07-27T06:41:22Z", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://purl.org/dc/terms/creator": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ], "http://purl.org/dc/terms/license": [ { "@id": "https://creativecommons.org/licenses/by/4.0/" } ], "http://purl.org/nanopub/x/embeds": [ { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4/list-maintained-templates" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "List maintained templates of a space" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate": [ { "@id": "https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate": [ { "@id": "https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw" }, { "@id": "https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate": [ { "@id": "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } ] }, { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "pa2tFU8CtEn9kgsHEefjd24czIUjWki6inixD6vuAKTfD3jr3+iLeuDqo2gtWRDrHaE1CNXsebbLRIC6aEB6qqH/V06C/NgF3U4iB7U5zgnwWBLvvlc1u2/zsPZw+RXpgO0yDHZbAAb+ad2lLtgxygT0Pl9p/xMK62zhbVZmYEA=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RA3BSycqfPoG-qBCT7mE104-ucAXrENGhGHKKKEWfFuU4" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] } ]