@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-all-resource-views a grlc:grlc-query; dct:description "This query returns all current resource views (latest version per same-key chain, retractions applied) with their kind, display type, query and action templates. It keys on the nanopublication type gen:ResourceView, so it lists views whatever template they were created with; the previous version was pinned to one template and missed every view made from the current generic one."; dct:license ; rdfs:label "Get all resource views"; grlc:endpoint ; grlc:sparql """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix gen: prefix nt: select ?view ?view_label ?viewKind ?type ?query (count(distinct ?actionTemplate) as ?template_count) (min(?actionTemplate) as ?first_template) (min(?actionLabel) as ?first_template_label) ?date ?np (\"^\" as ?np_label) where { graph npa:graph { ?np npx:hasNanopubType gen:ResourceView ; npa:hasValidSignatureForPublicKeyHash ?pubkey ; dct:created ?date ; np:hasAssertion ?a . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } } graph ?a { ?view a gen:ResourceView . optional { ?view a ?type . filter(?type != gen:ResourceView) } optional { ?view rdfs:label ?view_label . } optional { ?view dct:isVersionOf ?viewKind . } optional { ?view gen:hasViewQuery ?query . } optional { ?view gen:hasViewAction ?action . ?action gen:hasActionTemplate ?actionTemplate . optional { ?action rdfs:label ?actionLabel . } } } } group by ?view ?view_label ?viewKind ?type ?query ?date ?np order by desc(?date)""" . } 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-09-15T07:23:20Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-all-resource-views; npx:supersedes ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "TWvHBvDtqJKTTLuMyKRt9YEVZ7EA0IFPcEiRLtc58kUJimpOn/cByxa/4NuOAnVUnx8rkgtJnKFvHVERdoU/ciMSviavuYl+eooGQ+aT6eic+xCfmm+pzHPuKK2D1b6EvXGbpERRm9PkVZtMbjJKy5/KqO+LJi/tdHXMEmqzpvM="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }