@prefix this: <https://w3id.org/np/RAwpNZMM1Bgppqam84yXsIYvt8aLCPP2KNB8J8KSGU4Qo> .
@prefix sub: <https://w3id.org/np/RAwpNZMM1Bgppqam84yXsIYvt8aLCPP2KNB8J8KSGU4Qo/> .
@prefix gen: <https://w3id.org/kpxl/gen/terms/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@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/> .
@prefix npx: <http://purl.org/nanopub/x/> .

<https://w3id.org/np/RAwpNZMM1Bgppqam84yXsIYvt8aLCPP2KNB8J8KSGU4Qo> a np:Nanopublication;
  np:hasAssertion sub:assertion;
  np:hasProvenance sub:provenance;
  np:hasPublicationInfo sub:pubinfo;
  dct:created "2026-06-19T13:18:21Z"^^xsd:dateTime;
  dct:creator orcid:0000-0002-1267-0234;
  dct:license <https://creativecommons.org/licenses/by/4.0/>;
  rdfs:label "Assigning a preset to a maintained resource" .

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 <strong>maintained resource</strong>, so that the resource picks up the preset's views and roles.</p>

<p>Only presets designed for maintained resources (<code>gen:appliesToInstancesOf gen:MaintainedResource</code>) are offered. Like view displays, a preset assignment is identified by the <em>(preset, resource)</em> pair rather than by this nanopublication's URI, so it can later be deactivated by an equal-or-higher-tier member.</p>""";
  rdfs:label "Assigning a preset to a maintained resource";
  nt:hasNanopubLabelPattern "${resource} uses preset: ${preset}";
  nt:hasStatement sub:st10, sub:st12, sub:st20, sub:st30;
  nt:hasTag "Spaces";
  prov:wasAttributedTo orcid:0000-0002-1267-0234 .

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:GuidedChoicePlaceholder;
  rdfs:label "choose the preset";
  nt:possibleValuesFromApi "https://w3id.org/np/l/nanopub-query-1.1/api/RASzbAAibVFh25rujZN2MwgyUB7zHogsxo7-UgI05Dotg/find-presets?appliedPresetClass=https://w3id.org/kpxl/gen/terms/MaintainedResource" .

sub:resource a 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" .

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 .

orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" .

sub:sig npx:hasAlgorithm "RSA";
  npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
  npx:hasSignature "b53GqcbCYywA5PBg7mcrt9N4t2G749Y9ttm3nr98vStKhddc59/Jbs/rYt3t8s4HdWX0v06NhXs4w4nSbTUssydNQ10U4bkXW/Umsie6+pMLRyIH2ivbpK3+DrA3bv+1drByQ4+gk9mdsPkRlH762XNltq2elbAHngsAD4ukPM8=";
  npx:hasSignatureTarget <https://w3id.org/np/RAwpNZMM1Bgppqam84yXsIYvt8aLCPP2KNB8J8KSGU4Qo>;
  npx:signedBy orcid:0000-0000-0000-0000 .

