https://w3id.org/np/RAO-jqiKLz-U_NpAOmWncQ5SbBvlJPAo_suI3YTBZivvs
.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt
@prefix this: <https://w3id.org/np/RAO-jqiKLz-U_NpAOmWncQ5SbBvlJPAo_suI3YTBZivvs> .
@prefix sub: <https://w3id.org/np/RAO-jqiKLz-U_NpAOmWncQ5SbBvlJPAo_suI3YTBZivvs/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix orcid: <https://orcid.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix gen: <https://w3id.org/kpxl/gen/terms/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix npx: <http://purl.org/nanopub/x/> .
@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 {
rdf:type rdfs:label "is a" .
gen:ActivatedPresetAssignment rdfs:label "activated preset assignment" .
gen:DeactivatedPresetAssignment rdfs:label "deactivated preset assignment" .
gen:PresetAssignment rdfs:label "preset assignment" .
gen:isAssignmentFor rdfs:label "is an assignment for" .
gen:isAssignmentOfPreset rdfs:label "is an assignment of the preset" .
sub:assertion a nt:AssertionTemplate;
dct:description """<p>Assign a <strong>preset</strong> (a named bundle of default views and roles) to a resource — a space or a maintained resource — so that the resource picks up the preset's views and roles.</p>
<p>Like view displays, a preset assignment is identified by the <em>(preset, resource)</em> pair rather than by this nanopublication's URI. This means another user can later publish a <em>deactivation</em> of the same assignment (with their own key, without superseding this one); the application aggregates all assignments for the pair and resolves the activation state.</p>
<p>This template uses the proposed terms <code>gen:PresetAssignment</code>, <code>gen:ActivatedPresetAssignment</code>, <code>gen:DeactivatedPresetAssignment</code>, <code>gen:isAssignmentOfPreset</code> and <code>gen:isAssignmentFor</code>, mirroring the existing view-display vocabulary, and is a draft for <a href=\"https://github.com/knowledgepixels/nanodash/issues/302\" target=\"_blank\">nanodash issue #302</a>.</p>""";
rdfs:label "Assigning a preset to a resource";
nt:hasNanopubLabelPattern "${resource} uses preset: ${preset}";
nt:hasStatement sub:st10, sub:st12, sub:st20, sub:st30;
nt:hasTag "Spaces" .
sub:assignment a nt:EmbeddedResource, nt:LocalResource;
rdfs:label "this" .
sub:assignmentMode a nt:RestrictedChoicePlaceholder;
rdfs:label "select whether this assignment is activated or deactivated";
nt:hasDefaultValue gen:ActivatedPresetAssignment;
nt:possibleValue gen:ActivatedPresetAssignment, gen:DeactivatedPresetAssignment .
sub:preset a nt:ExternalUriPlaceholder, nt:GuidedChoicePlaceholder;
rdfs:label "choose the preset";
nt:possibleValuesFromApi "https://w3id.org/np/l/nanopub-query-1.1/api/RAs7Q2IMbb7C2WzFa98bVwlDMhN3kJ0rrF9cSEybtvLaA/find-embedded-things?type=https://w3id.org/kpxl/gen/terms/Preset" .
sub:resource a nt:ExternalUriPlaceholder, nt:GuidedChoicePlaceholder;
rdfs:label "the ID of the resource";
nt:possibleValuesFromApi "https://w3id.org/np/l/nanopub-query-1.1/api/RAyMrQ89RECTi9gZK5q7gjL1wKTiP8StkLy0NIkkCiyew/find-things?type=https://w3id.org/kpxl/gen/terms/MaintainedResource",
"https://w3id.org/np/l/nanopub-query-1.1/api/RAyMrQ89RECTi9gZK5q7gjL1wKTiP8StkLy0NIkkCiyew/find-things?type=https://w3id.org/kpxl/gen/terms/Space" .
sub:st10 rdf:object gen:PresetAssignment;
rdf:predicate rdf:type;
rdf:subject sub:assignment .
sub:st12 a nt:AdvancedStatement;
rdf:object sub:assignmentMode;
rdf:predicate rdf:type;
rdf:subject sub:assignment .
sub:st20 rdf:object sub:preset;
rdf:predicate gen:isAssignmentOfPreset;
rdf:subject sub:assignment .
sub:st30 rdf:object sub:resource;
rdf:predicate gen:isAssignmentFor;
rdf:subject sub:assignment .
}
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-24T09:38:44+00:00"^^xsd:dateTime;
dct:creator orcid:0000-0002-1267-0234;
dct:license <https://creativecommons.org/licenses/by/4.0/>;
npx:supersedes <https://w3id.org/np/RA5shNOPHqtqUWkHnAWmff94G3wreqWUYYQFlHmrMTYzo>;
rdfs:label "Assigning a preset to a resource";
skos:changeNote "Guided choices that must refer to existing resources are now also external URI placeholders, so Nanodash no longer offers to mint a typed plain name locally for them: preset, resource.";
nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8>,
<https://w3id.org/np/RAKc76yHLDbloE6ObluzYQsfX37v6qrZXbYeIKpe8-YUo>, <https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw>,
<https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>;
nt:wasCreatedFromTemplate <https://w3id.org/np/RASDwdz5WzsWdeDRREs0i5n5xTtKTrKS8pCIFUXhlkpt0> .
sub:sig npx:hasAlgorithm "RSA";
npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
npx:hasSignature "RHZgNAG0ZztLHEq0hw5no6dvMW2tjKD2j2yby0FvPNaeyzdW02qx9SKgy8GpyroNYKs1G8yxURhGHVi/642W4bzxz0F5+WiXuJD13Fv0cBmVJAP41WTe1JRZbgg7ehyaSbWhE/TTwItI1+4Chj4VPlpXCVYDKca6Oz+EHB5OWH0=";
npx:hasSignatureTarget this:;
npx:signedBy orcid:0000-0002-1267-0234 .
}