https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/Head
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw
http://www.nanopub.org/nschema#hasAssertion
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/assertion
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw
http://www.nanopub.org/nschema#hasProvenance
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/provenance
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw
http://www.nanopub.org/nschema#hasPublicationInfo
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/pubinfo
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.nanopub.org/nschema#Nanopublication
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/assertion
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/get-latest-governed-version
http://purl.org/dc/terms/description
Resolves the canonical (latest authorized) version of a space-governed definition -- a resource view, an assertion/provenance/pubinfo template, or any other definition whose versions follow the embeds/isVersionOf/governedBy convention -- per docs/views-and-presets-as-maintained-resources.md and docs/template-identity-and-governance.md in the nanodash repo. Takes the definition's kind IRI (its dct:isVersionOf target; kind) and the governing space IRI (space) and returns at most one row: the newest version whose nanopub (a) npx:embeds the version IRI, which declares dct:isVersionOf <kind> plus gen:governedBy <space> in the assertion, and (b) is signed by a pubkey of a CURRENT member+ (admin/maintainer/member, not observer) of that space's governing ref -- with the kind validated as a maintained resource of the space (npa:isMaintainedBy + npa:hasGoverningSpaceRef in the materialized state graph; the two anchors that make gen:governedBy a label, not a grant). The RoleInstantiation's npa:forSpace/npa:forSpaceRef pair ties the governing ref to the given space IRI, so a multi-maintainer kind never floats across pairs. An empty result means no valid floating candidate: the caller keeps its pinned version (the pin is the floor and is not re-validated here). Versions retracted by their own signing key are skipped. Hosted on the spaces repo; the version/pubkey lookup federates to the full repo with kind and space as text-substituted constants, so the federated scan stays narrow (entry via dct:isVersionOf <kind>). This version generalizes the previous view-specific one (which federated to the gen:ResourceView type repo) to definitions of any type, so the same resolver serves views and templates alike.
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/get-latest-governed-version
http://purl.org/dc/terms/license
http://www.apache.org/licenses/LICENSE-2.0
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/get-latest-governed-version
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
https://w3id.org/kpxl/grlc/grlc-query
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/get-latest-governed-version
http://www.w3.org/2000/01/rdf-schema#label
Get latest governed version
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/get-latest-governed-version
https://w3id.org/kpxl/grlc/endpoint
https://w3id.org/np/l/nanopub-query-1.1/repo/spaces
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/get-latest-governed-version
https://w3id.org/kpxl/grlc/sparql
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix dct: <http://purl.org/dc/terms/>
prefix gen: <https://w3id.org/kpxl/gen/terms/>
select distinct ?version ?date ?np ("^" as ?np_label) where {
graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }
graph ?stateG {
?_kind_iri npa:isMaintainedBy ?_space_iri ; npa:hasGoverningSpaceRef ?ref .
?ri a gen:RoleInstantiation ; npa:forSpace ?_space_iri ; npa:forSpaceRef ?ref ;
npa:hasRoleType ?tier ; npa:forAgent ?agent .
filter(?tier = gen:AdminRole || ?tier = gen:MaintainerRole || ?tier = gen:MemberRole)
?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?pubkey .
}
service <https://w3id.org/np/l/nanopub-query-1.1/repo/full> {
graph npa:graph {
?np npa:hasValidSignatureForPublicKeyHash ?pubkey ;
dct:created ?date ;
npx:embeds ?version ;
np:hasAssertion ?a .
filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
}
graph ?a {
?version dct:isVersionOf ?_kind_iri ;
gen:governedBy ?_space_iri .
}
}
}
order by desc(?date) desc(?np) limit 1
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/provenance
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/assertion
http://www.w3.org/ns/prov#wasAttributedTo
https://orcid.org/0000-0002-1267-0234
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/pubinfo
https://orcid.org/0000-0002-1267-0234
http://xmlns.com/foaf/0.1/name
Tobias Kuhn
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw
http://purl.org/dc/terms/created
2026-07-08T10:58:59Z
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw
http://purl.org/dc/terms/creator
https://orcid.org/0000-0002-1267-0234
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw
http://purl.org/dc/terms/license
https://creativecommons.org/licenses/by/4.0/
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw
http://purl.org/nanopub/x/embeds
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/get-latest-governed-version
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw
http://purl.org/nanopub/x/supersedes
https://w3id.org/np/RABmOzHjDWhpqoRJsD4XinfDoxDOxKJ8NgJA826O_I-OI
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/sig
http://purl.org/nanopub/x/hasAlgorithm
RSA
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/sig
http://purl.org/nanopub/x/hasPublicKey
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/sig
http://purl.org/nanopub/x/hasSignature
Tb3B5I2hIO4+2W4f2HZOr3ndvDVoN/Jz1ZXKeJsG6O8asCz8yDXYb4OWQ9+Ak8t6vQvt3/Xc0snumX1GGYKQox4FR2J7uGpZM5kG4UhpLr2RHgABVwe/Y26HlKmYn8EifuqwKUSFV+a0nyidXGErdrb46HG95rkD/DF1v5oBh14=
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/sig
http://purl.org/nanopub/x/hasSignatureTarget
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw
https://w3id.org/np/RAPSWgzHef9bIJyCoLodFH-BWtlESf1jIstEb0kn4B5Cw/sig
http://purl.org/nanopub/x/signedBy
https://orcid.org/0000-0002-1267-0234