@prefix this: <https://w3id.org/np/RAtD7C0knwUNX49Y35c78u6r47oGsDt62GLmvfaED0_ag> .
@prefix sub: <https://w3id.org/np/RAtD7C0knwUNX49Y35c78u6r47oGsDt62GLmvfaED0_ag/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@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 {
  sub:get-all-iadopt-variables dct:description "Returns all I-ADOPT variables with their label, entity of interest, creator, and date." ;
    dct:license <http://www.apache.org/licenses/LICENSE-2.0> ;
    a <https://w3id.org/kpxl/grlc/grlc-query> ;
    rdfs:label "Get all I-ADOPT variables" ;
    <https://w3id.org/kpxl/grlc/endpoint> <https://w3id.org/np/l/nanopub-query-1.1/repo/type/dbf3e4836e0529b98c8e70684a03a3fb3a7b48dfa7829747dd978f2b7249ada1> ;
    <https://w3id.org/kpxl/grlc/sparql> """prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix dct: <http://purl.org/dc/terms/>
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix iadopt: <https://w3id.org/iadopt/ont/>
prefix skos: <http://www.w3.org/2004/02/skos/core#>

select ?variable ?variable_label ?entity ?entity_label ?creator ?date ?np (\"^\" as ?np_label) where {
  graph npa:graph {
    ?np npx:hasNanopubType iadopt:Variable .
    filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . }
    ?np npa:hasValidSignatureForPublicKeyHash ?pubkey .
    filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
    ?np dct:created ?date .
    ?np np:hasAssertion ?a .
    ?np npx:introduces ?variable .
    ?np npx:signedBy ?creator .
  }
  graph ?a {
    ?variable a iadopt:Variable .
    optional { ?variable rdfs:label ?variable_label . }
    optional {
      ?variable iadopt:hasObjectOfInterest ?entity .
      optional { ?entity rdfs:label ?entity_label . }
    }
  }
}
order by desc(?date)""" .
}
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-03-17T07:57:59Z"^^xsd:dateTime ;
    dct:creator orcid:0000-0002-1267-0234 ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> ;
    npx:introduces sub:get-all-iadopt-variables ;
    npx:supersedes <https://w3id.org/np/RAHSJAI-4RXFFG68C0Cn7XHXoIjQDA1ReTOy8XdUv2vEE> ;
    rdfs:label "Get all I-ADOPT variables" .
  sub:sig npx:hasAlgorithm "RSA" ;
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" ;
    npx:hasSignature "ORWgNpT3YlyI/iLzNt4dHqhRT4mhHRWAXBrwzTu/iO6rWwuvR1+go/cnmVaLmAvveYEolNm7AS/fS0fGJ0Rt9BupTaGQq0vjJiOF62NQZ6hzCG11wdGUMugKz9fSHnLkS+L03GuYjfb9frBAAA5hdt+LJ9c4uzvbXCHsHNEmmGY=" ;
    npx:hasSignatureTarget this: ;
    npx:signedBy orcid:0000-0002-1267-0234 .
}