@prefix this: <https://w3id.org/np/RAlD3u-iOS5P95TlvydUePQCOqKyVsPLebBNTnu4lw7po> .
@prefix sub: <https://w3id.org/np/RAlD3u-iOS5P95TlvydUePQCOqKyVsPLebBNTnu4lw7po/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@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#> .

<https://w3id.org/np/RAlD3u-iOS5P95TlvydUePQCOqKyVsPLebBNTnu4lw7po> a np:Nanopublication;
  np:hasAssertion sub:assertion;
  np:hasProvenance sub:provenance;
  np:hasPublicationInfo sub:pubinfo;
  dct:created "2026-05-28T10:51:46Z"^^xsd:dateTime;
  dct:creator orcid:0000-0001-8888-635X;
  dct:license <https://creativecommons.org/licenses/by/4.0/>;
  npx:introduces sub:variants-by-who-classification;
  rdfs:label "MAC FDT — variants by WHO classification";
  nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
  nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw>,
    <https://w3id.org/np/RAMEgudZsQ1bh1fZhfYnkthqH6YSXpghSE_DEN1I-6eAI>, <https://w3id.org/np/RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ>,
    <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>;
  nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .

sub:variants-by-who-classification a <https://w3id.org/kpxl/grlc/grlc-query>;
  dct:description "Counts of Spike RBD variants grouped by WHO risk designation (VOC / VOI / VUM), via their WHO classification observation FDOs.";
  dct:license <https://www.apache.org/licenses/LICENSE-2.0>;
  rdfs:label "MAC FDT — variants by WHO classification";
  <https://w3id.org/kpxl/grlc/endpoint> <https://w3id.org/np/l/nanopub-query-1.1/repo/full>;
  <https://w3id.org/kpxl/grlc/sparql> """PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX np:   <http://www.nanopub.org/nschema#>
PREFIX npa:  <http://purl.org/nanopub/admin/>
PREFIX npx:  <http://purl.org/nanopub/x/>
PREFIX dct:  <http://purl.org/dc/terms/>
PREFIX fdof: <https://w3id.org/fdof/ontology#>
PREFIX mac:  <https://w3id.org/spaces/mac/r/ontology/>

SELECT ?whoClass (COUNT(?variant) AS ?count) WHERE {
  GRAPH npa:graph {
    ?n1 npa:hasValidSignatureForPublicKey ?pubkey .
    filter not exists {
      ?np2 npx:invalidates ?n1 ;
           npa:hasValidSignatureForPublicKey ?pubkey .
    }
    ?n1 np:hasAssertion ?a .
  }
  graph ?a {
    ?obs a mac:WHOVariantClassification .
    ?obs mac:hasWHOClassification ?whoClass .
    ?obs mac:isObservationOf ?variant .
  }
} GROUP BY ?whoClass ORDER BY DESC(?count)""" .

sub:assertion prov:wasAttributedTo orcid:0000-0001-8888-635X .

sub:sig npx:hasAlgorithm "RSA";
  npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD3w/IUb755GIzp3ueODYkgELhyq4Clygb5Kspge50xo+n8uC/IvXwi+ukRjEpdfX/JZ09yKUCJ2AMMr/QchrsP1Xhg9Q3fEZ4E12XqFd5jX00Qs0K5XZwjBaV8NdDTJW9I4gpcyh0cry7hSBAWHkXEkqbK+lQvR4UFAKejFq6u/wIDAQAB";
  npx:hasSignature "3UeWo/iAUKmEogknqoI/Yx3wQHCEzuKBHJfh0xU4qZV6SoEk0L59O17aLg4wqv0umB6aDxyDVIS5wDLvkCVTqW4CtfJSA0NKNo3f0d33G4Ps8U2ITc7cq4d2gCke+2IUffPORV+Yca3u95XIU8jMCJGw6OqJWD+Q81ut/KyKDVE=";
  npx:hasSignatureTarget <https://w3id.org/np/RAlD3u-iOS5P95TlvydUePQCOqKyVsPLebBNTnu4lw7po>;
  npx:signedBy orcid:0000-0001-8888-635X .

