@prefix this: <https://w3id.org/np/RAOUbhBc8qshkczUv4RL2TcHXp5Ai_hKprNCqB2SMF4tA> .
@prefix sub: <https://w3id.org/np/RAOUbhBc8qshkczUv4RL2TcHXp5Ai_hKprNCqB2SMF4tA/> .
@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 decomposition into observable property, entity of interest, matrix, and context object." ;
    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 ?property ?property_label ?entity ?entity_label ?matrix ?matrix_label ?context ?context_label ?creator ?np (\"^\" as ?np_label) ?date 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:hasObservableProperty ?property .
      optional { ?property rdfs:label ?property_label . }
    }
    optional {
      ?variable iadopt:hasObjectOfInterest ?entity .
      optional { ?entity rdfs:label ?entity_label . }
    }
    optional {
      ?variable iadopt:hasMatrix ?matrix .
      optional { ?matrix rdfs:label ?matrix_label . }
    }
    optional {
      ?variable iadopt:hasContextObject ?context .
      optional { ?context rdfs:label ?context_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-17T05:50:26Z"^^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 ;
    rdfs:label "Get all I-Adopt variables" .
  sub:sig npx:hasAlgorithm "RSA" ;
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" ;
    npx:hasSignature "hNNjzZcJS/LBflYPnmedf85dUw2tibCy9OyWohpFNmcnmormrSNKI8bAlfbrvZZOQRS1R6awPJuCPrsX6yPpYuJO5PJkiV8vqRvnMSeSn1LXK+fszV27SG245C6gJRWSUd9OI5uPXHkVMaiwz13DoYzEUG6mEYZ57qIWnJt17yU=" ;
    npx:hasSignatureTarget this: ;
    npx:signedBy orcid:0000-0002-1267-0234 .
}