@prefix this: <https://w3id.org/np/RAuLESdeRUlk1GcTwvzVXShiBMI0ntJs2DL2Bm5DzW_ZQ> .
@prefix sub: <https://w3id.org/np/RAuLESdeRUlk1GcTwvzVXShiBMI0ntJs2DL2Bm5DzW_ZQ/> .
@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 npx: <http://purl.org/nanopub/x/> .
@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/> .

<https://w3id.org/np/RAuLESdeRUlk1GcTwvzVXShiBMI0ntJs2DL2Bm5DzW_ZQ> a np:Nanopublication;
  np:hasAssertion sub:assertion;
  np:hasProvenance sub:provenance;
  np:hasPublicationInfo sub:pubinfo;
  dct:created "2025-09-22T16:13:11.507+02: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/RAF161qrc7ondWQFrXlid2B2zSjimPVoszC2NRh5U15Bg>;
  npx:wasCreatedAt <http://localhost:37373/>;
  rdfs:label "Declare a pinned query for a Space";
  nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
  nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw>,
    <https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw>, <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>;
  nt:wasCreatedFromTemplate <https://w3id.org/np/RA1XuAdO6LOtlPJgWiytJHFuK4BFHjQK5x7d9FVymzFnc> .

<https://w3id.org/kpxl/gen/terms/hasPinGroupTag> rdfs:label "has the tag" .

<https://w3id.org/kpxl/gen/terms/hasPinnedQuery> rdfs:label "has the pinned query" .

sub:assertion a nt:AssertionTemplate;
  rdfs:label "Declare a pinned query for a Space";
  nt:hasNanopubLabelPattern "${space} has pinned query: ${query}";
  nt:hasStatement sub:st1, sub:st2;
  nt:hasTag "Spaces";
  nt:hasTargetNanopubType <https://w3id.org/kpxl/gen/terms/hasPinnedQuery>;
  prov:wasAttributedTo orcid:0000-0002-1267-0234 .

sub:query a nt:GuidedChoicePlaceholder;
  rdfs:label "choose the query";
  nt:possibleValuesFromApi "https://w3id.org/np/l/nanopub-query-1.1/api/RAyMrQ89RECTi9gZK5q7gjL1wKTiP8StkLy0NIkkCiyew/find-things?type=https://w3id.org/kpxl/grlc/grlc-query" .

sub:space a nt:GuidedChoicePlaceholder;
  rdfs:label "choose the Space";
  nt:possibleValuesFromApi "https://w3id.org/np/l/nanopub-query-1.1/api/RAyMrQ89RECTi9gZK5q7gjL1wKTiP8StkLy0NIkkCiyew/find-things?type=https://w3id.org/kpxl/gen/terms/Space" .

sub:st1 rdf:object sub:query;
  rdf:predicate <https://w3id.org/kpxl/gen/terms/hasPinnedQuery>;
  rdf:subject sub:space .

sub:st2 a nt:OptionalStatement;
  rdf:object sub:tag;
  rdf:predicate <https://w3id.org/kpxl/gen/terms/hasPinGroupTag>;
  rdf:subject sub:query .

sub:tag a nt:LiteralPlaceholder;
  rdfs:label "the tag, used as title of common query group" .

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

sub:sig npx:hasAlgorithm "RSA";
  npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
  npx:hasSignature "EZNWSxXXti6YydQHqBCnRRZypv1/wmYtL344wEjnCC8d4evCrHFrK3jRQf1SUm0yop8Ifise515HrwLTMaoLfiOZM5dQKZYTiF9dKui8Aa/A8gQt6zh+tiwS8foNxq3N4GN/ST4oZNvL82laOG1qCzSJMMiJtn5p47YF5mNxRcY=";
  npx:hasSignatureTarget <https://w3id.org/np/RAuLESdeRUlk1GcTwvzVXShiBMI0ntJs2DL2Bm5DzW_ZQ>;
  npx:signedBy orcid:0000-0002-1267-0234 .

