@prefix this: <https://w3id.org/np/RAWvQ63LoWBtTKXdgKJxn0DcMsaRMbSe38biZEbCfKHP0> .
@prefix sub: <https://w3id.org/np/RAWvQ63LoWBtTKXdgKJxn0DcMsaRMbSe38biZEbCfKHP0/> .
@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/> .
sub:Head {
  this: np:hasAssertion sub:assertion ;
    np:hasProvenance sub:provenance ;
    np:hasPublicationInfo sub:pubinfo ;
    a np:Nanopublication .
}
sub:assertion {
  <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> .
  sub:query a nt:GuidedChoicePlaceholder ;
    rdfs:label "choose the query" ;
    nt:possibleValuesFromApi "http://purl.org/nanopub/api/find_signed_things?type=https://w3id.org/kpxl/grlc/grlc-query&searchterm=" .
  sub:space a nt:GuidedChoicePlaceholder ;
    rdfs:label "choose the Space" ;
    nt:possibleValuesFromApi "http://purl.org/nanopub/api/find_signed_things?type=https://w3id.org/kpxl/gen/terms/Space&searchterm=" .
  sub:st1 rdf:object sub:query ;
    rdf:predicate <https://w3id.org/kpxl/gen/terms/hasPinnedQuery> ;
    rdf:subject sub:space .
  sub:st2 rdf:object sub:tag ;
    rdf:predicate <https://w3id.org/kpxl/gen/terms/hasPinGroupTag> ;
    rdf:subject sub:query ;
    a nt:OptionalStatement .
  sub:tag a nt:LiteralPlaceholder ;
    rdfs:label "the tag, used as title of common template group" .
}
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 "2025-09-12T13:21:52.526+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/RAqPI08V5xHis6C42Y3cfHmWWfryut59YLkVymIofuLLg> ;
    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> .
  sub:sig npx:hasAlgorithm "RSA" ;
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" ;
    npx:hasSignature "h7y9IbtJKOhJGfP4lMU7ku4Rrjumn4ydcUy2Q105qemvrX1UeeCoqzLG2g+acVkwxNClu6g7l4Vkz8v5NSmIzEkS4iY4+Bh3bXzwcX6V7RNP1tQTgqe9wC3u+L/VInThH9mR2GDGK19Fx0M6vsCwfjj8f/8nJ1rVvIiZiuAfWvA=" ;
    npx:hasSignatureTarget this: ;
    npx:signedBy orcid:0000-0002-1267-0234 .
}