@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-latest-nanopubs-from-template-kind a grlc:grlc-query; dct:description "Returns the latest nanopublications that were created from a template kind given as the resource, for display on its maintained-resource page. The kind is first resolved to the set of template references that consumers may cite: every version of the kind found on the network (retracted ones included, so their consumers are not lost) contributes both its embedded template node (the reference form used by embedded-identity templates) and the URI of the nanopub embedding it (the reference form used by legacy and half-way templates), so nanopubs created from any version of the template are found, whichever identity shape that version used. A nanopub counts as created from the kind when its publication info states nt:wasCreatedFromTemplate for one of those references. Rows are non-invalidated nanopubs with a valid signature, newest first, capped at 100. Retraction nanopubs are deliberately not filtered out, because the retraction template is itself a template kind whose page would otherwise stay empty. Result columns follow the nanopub-set view contract: ?np, ?label, ?date."; dct:license ; rdfs:label "Get latest nanopubs from template kind"; grlc:endpoint ; grlc:sparql """prefix rdfs: prefix np: prefix npa: prefix npx: prefix nt: prefix dct: select distinct ?np ?label ?date where { values ?_resource_multi_iri {} { graph npa:graph { ?vnp npx:embeds ?tref ; np:hasAssertion ?va . } graph ?va { ?tref dct:isVersionOf ?_resource_multi_iri . } } union { graph npa:graph { ?tref npx:embeds ?version ; np:hasAssertion ?va . } graph ?va { ?version dct:isVersionOf ?_resource_multi_iri . } } graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkeyhash ; dct:created ?date ; np:hasPublicationInfo ?pi . filter not exists { ?inv npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkeyhash . } optional { ?np rdfs:label ?label . } } graph ?pi { ?np nt:wasCreatedFromTemplate ?tref . } } order by desc(?date) limit 100""" . } 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-08-21T15:03:54Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-latest-nanopubs-from-template-kind; rdfs:label "Get latest nanopubs from template kind"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "McHjxUDQCSjHbvUdkrI+iEtwBgThDSk52+NtKo07of+7GdGwRHcd1RuC1Iq1VbZf7exTz01E7Cfbs9lw6psgoOK1yXiEUiIz94ohmFqbnx1bT0Jfh5sP6GLuPQI9m1Yn0iNqFqHuyZoXAUpwqf986GCzoY+gqeKwY3moRbT0Ctw="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }