https://w3id.org/np/RAoJdr8Qm0VEIvZ8dsbPgADtNO6uUULgBsl2TF5iaHeck
.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt
@prefix this: <https://w3id.org/np/RAoJdr8Qm0VEIvZ8dsbPgADtNO6uUULgBsl2TF5iaHeck> .
@prefix sub: <https://w3id.org/np/RAoJdr8Qm0VEIvZ8dsbPgADtNO6uUULgBsl2TF5iaHeck/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix grlc: <https://w3id.org/kpxl/grlc/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix orcid: <https://orcid.org/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
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 <http://www.apache.org/licenses/LICENSE-2.0>;
rdfs:label "Get latest nanopubs from template kind";
grlc:endpoint <https://w3id.org/np/l/nanopub-query-1.1/repo/full>;
grlc:sparql """prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix nt: <https://w3id.org/np/o/ntemplate/>
prefix dct: <http://purl.org/dc/terms/>
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 <https://creativecommons.org/licenses/by/4.0/>;
npx:embeds sub:get-latest-nanopubs-from-template-kind;
rdfs:label "Get latest nanopubs from template kind";
nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8>,
<https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>;
nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .
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 .
}