. . . . "Lists the presets assigned in a given space ref (space IRI + root definition). Pass the ref's root nanopub (root_np); the query resolves the ref via npa:rootNanopub and reads the server-materialised npa:PresetAssignment rows scoped by npa:forSpaceRef from the trust-validated current space-state graph (only admin-authored assignments are materialised, so this is authorisation-scoped). Per (preset, resource) only the latest assignment by dct:created counts, and the preset is listed only when that latest row is still activated (npa:isActivated true) — a deactivation is a newer admin-authored row with npa:isActivated false. Columns match the IRI-keyed list-preset-assignments (preset, preset_label, deactivatePreset, added_by, date_added, np, np_label) so it drives the existing Preset assignments view unchanged. Ref-scoped variant: shows only that one ref's assignments rather than merging all refs claiming the IRI." . . . "List preset assignments (ref-scoped)" . . "prefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix gen: \n\nselect ?preset (sample(?lbl) as ?preset_label) (str(?preset) as ?deactivatePreset)\n (sample(?user) as ?added_by) (?date as ?date_added) ?np (\"^\" as ?np_label)\nwhere {\n values ?_root_np_multi_iri {}\n graph npa:spacesGraph { ?ref npa:rootNanopub ?_root_np_multi_iri . }\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?g . }\n graph ?g {\n ?paRef a npa:PresetAssignment ; npa:forSpaceRef ?ref ; npa:ofPreset ?preset ; npa:forResource ?resource ;\n npa:isActivated ?activated ; npa:viaNanopub ?np ; dct:created ?date .\n }\n filter(?activated = true)\n filter not exists {\n graph ?g { ?pa2 a npa:PresetAssignment ; npa:forSpaceRef ?ref ; npa:ofPreset ?preset ; npa:forResource ?resource ; dct:created ?date2 . }\n filter(?date2 > ?date)\n }\n optional { graph npa:graph { ?np npx:signedBy ?user } }\n optional { ?pnp npx:embeds ?preset ; np:hasAssertion ?pa . graph ?pa { ?preset rdfs:label ?lbl } }\n}\ngroup by ?preset ?date ?np\norder by desc(?date)" . . "Tobias Kuhn" . "2026-06-19T08:01:45Z"^^ . . . . . . . . "RSA" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" . "rZCEI2obPttHURYNRZ4uXF1pk30lgIB51nRBt0KcfetOHON2qKGFNgAYJ4y1MsxwXMij7GlKEVjW0cAYnzOM4yz3GEOHajseVtFlgtf/IPXSjeZwANHzk2IsON6/rixN9o8o0r0VtFzp3emjutLYtYN4pWz2iskisp1FxvQoYQ4=" . . .