@prefix this: <https://w3id.org/np/RA6LTYxgXS4EUVqYW4RKk7B7UIUIyUZbH3zg6l0hIqZeo> .
@prefix sub: <https://w3id.org/np/RA6LTYxgXS4EUVqYW4RKk7B7UIUIyUZbH3zg6l0hIqZeo/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix orcid: <https://orcid.org/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix ns1: <http://purl.org/np/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<https://w3id.org/np/RA6LTYxgXS4EUVqYW4RKk7B7UIUIyUZbH3zg6l0hIqZeo> a np:Nanopublication;
  np:hasAssertion sub:assertion;
  np:hasProvenance sub:provenance;
  np:hasPublicationInfo sub:pubinfo;
  dcterms:created "2026-01-26T14:48:10.276+01:00"^^xsd:dateTime;
  dcterms:creator orcid:0000-0002-1267-0234;
  dcterms:license <https://creativecommons.org/licenses/by/4.0/>;
  npx:wasCreatedAt <http://localhost:37373/>;
  prov:wasDerivedFrom ns1:RAT8ayO62s4SFqDY1qjv24Iw0xarpbpc6zH68n7hRsAsA;
  nt:wasCreatedFromProvenanceTemplate ns1:RANwQa4ICWS5SOjw7gp99nBpXBasapwtZF1fIM3H2gYTM;
  nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw>,
    <https://w3id.org/np/RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ>, <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>;
  nt:wasCreatedFromTemplate ns1:RAFu2BNmgHrjOTJ8SKRnKaRp-VP8AOOb7xX88ob0DZRsU .

npx:declaredBy rdfs:label "is declared by" .

npx:hasAlgorithm rdfs:label "has algorithm" .

npx:hasKeyLocation rdfs:label "has key location" .

npx:hasPublicKey rdfs:label "has public key" .

foaf:name rdfs:label "has the name" .

sub:assertion a nt:AssertionTemplate;
  rdfs:label "Introducing a user (TEST)";
  nt:hasNanopubLabelPattern "User: ${name}";
  nt:hasStatement sub:st1, sub:st2, sub:st2a, sub:st2b, sub:st2c, sub:st3;
  nt:hasTag "Meta";
  nt:hasTargetNanopubType npx:declaredBy;
  prov:wasAttributedTo orcid:0000-0002-1267-0234 .

sub:key-declaration a nt:LocalResource, nt:UriPlaceholder;
  rdfs:label "short id of key declaration" .

sub:key-declaration-ref a nt:RestrictedChoicePlaceholder;
  nt:possibleValue sub:key-declaration .

sub:key-location a nt:UriPlaceholder;
  rdfs:label "URL where the private key is stored" .

sub:name a nt:LiteralPlaceholder;
  rdfs:label "name of the user" .

sub:public-key a nt:LongLiteralPlaceholder;
  rdfs:label "public key" .

sub:st1 rdf:object sub:name;
  rdf:predicate foaf:name;
  rdf:subject sub:user .

sub:st2 a nt:GroupedStatement, nt:RepeatableStatement;
  nt:hasStatement sub:st2a, sub:st2b, sub:st2c .

sub:st2a rdf:object sub:user;
  rdf:predicate npx:declaredBy;
  rdf:subject sub:key-declaration .

sub:st2b rdf:object "RSA";
  rdf:predicate npx:hasAlgorithm;
  rdf:subject sub:key-declaration .

sub:st2c rdf:object sub:public-key;
  rdf:predicate npx:hasPublicKey;
  rdf:subject sub:key-declaration .

sub:st3 a nt:OptionalStatement, nt:RepeatableStatement;
  rdf:object sub:key-location;
  rdf:predicate npx:hasKeyLocation;
  rdf:subject sub:key-declaration-ref .

sub:user a nt:AgentPlaceholder, nt:IntroducedResource;
  rdfs:label "identifier of the user to be introduced" .

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

sub:sig npx:hasAlgorithm "RSA";
  npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
  npx:hasSignature "pmU+NebIRocAWRGCdj8e2fPBm/x3voKfoaUsePaNUUND1yCRyBZAgoc8WzYzjoKZezu7Rs+UJLCotx0FDxzdpxO/Z2Vy+Jj6dOxAjcaZ0cE8PwRJXJ4TmoAWji3p2jx6LKYHGV42Zg9uWVWT4ogEdO253i24qEx9gVGidvRyNig=";
  npx:hasSignatureTarget <https://w3id.org/np/RA6LTYxgXS4EUVqYW4RKk7B7UIUIyUZbH3zg6l0hIqZeo>;
  npx:signedBy orcid:0000-0002-1267-0234 .

