[ { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU/get-kg-approved-variants", "http://purl.org/dc/terms/description": [ { "@value": "Lists mvikg/r/kg variant records whose approval status is 'approved' (latest admin npx:approvesOf/disapprovesOf verdict from a current mvikg admin decides the status; no verdict means pending). One row per record: its label, who created it and when." } ], "http://purl.org/dc/terms/license": [ { "@id": "https://creativecommons.org/licenses/by/4.0/" } ], "@type": [ "https://w3id.org/kpxl/grlc/grlc-query" ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get mvikg/r/kg approved variants" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/full" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix npa: \nprefix gen: \nprefix npx: \nprefix dct: \nprefix rdfs: \nprefix foaf: \n\nselect distinct ?Name ?ModifiedBy ?ModifiedBy_label ?Modified_noheader ?np ?np_label where {\n {\n select distinct ?dnp ?label ?creator ?created where {\n {\n select ?stableThing ?dnp where {\n graph npa:graph {\n ?dnp npx:introduces ?stableThing ; dct:created ?ddateRaw ; npa:hasValidSignatureForPublicKey ?pubkey .\n filter not exists { ?inv npx:invalidates ?dnp ; npa:hasValidSignatureForPublicKey ?pubkey . }\n }\n filter not exists {\n graph npa:graph {\n ?dnp2 npx:introduces ?stableThing ; dct:created ?ddate2Raw ; npa:hasValidSignatureForPublicKey ?pubkey2 .\n filter not exists { ?inv2 npx:invalidates ?dnp2 ; npa:hasValidSignatureForPublicKey ?pubkey2 . }\n }\n filter(?ddate2Raw > ?ddateRaw)\n }\n }\n }\n bind(iri(concat(str(?dnp), '/assertion')) as ?da)\n graph ?da { ?stableThing a ; dct:isPartOf . }\n bind(iri(concat(str(?dnp), '/pubinfo')) as ?pi)\n graph ?pi { ?dnp dct:creator ?creator ; dct:created ?createdRaw . }\n bind(replace(str(?createdRaw), '[.]000Z$', 'Z') as ?created)\n optional { graph ?da { ?stableThing rdfs:label ?lblEntity } }\n optional { graph ?pi { ?dnp rdfs:label ?lblPub } }\n bind(coalesce(?lblEntity, ?lblPub, str(?stableThing)) as ?label)\n }\n }\n optional {\n graph ?vda { ?admin ?verdictPred ?dnp . filter(?verdictPred in (npx:approvesOf, npx:disapprovesOf)) }\n filter(exists {\n service {\n graph npa:graph { npa:hasCurrentSpaceState ?g . }\n graph ?g { ?ri a gen:RoleInstantiation ; npa:forSpace ; npa:forAgent ?admin ; npa:hasRoleType gen:AdminRole . }\n }\n })\n bind(iri(replace(str(?vda), '/assertion$', '')) as ?vnp)\n graph ?vpi { ?vnp dct:created ?vcreatedRaw . }\n bind(xsd:dateTime(?vcreatedRaw) as ?vcreated)\n filter not exists {\n graph ?vda2 { ?admin2 ?verdictPred2 ?dnp . filter(?verdictPred2 in (npx:approvesOf, npx:disapprovesOf)) }\n filter(exists {\n service {\n graph npa:graph { npa:hasCurrentSpaceState ?g2 . }\n graph ?g2 { ?ri2 a gen:RoleInstantiation ; npa:forSpace ; npa:forAgent ?admin2 ; npa:hasRoleType gen:AdminRole . }\n }\n })\n bind(iri(replace(str(?vda2), '/assertion$', '')) as ?vnp2)\n graph ?vpi2 { ?vnp2 dct:created ?vcreated2Raw . }\n filter(xsd:dateTime(?vcreated2Raw) > ?vcreated)\n }\n optional { graph ?vda { ?vda rdfs:comment ?reason } }\n }\n bind(if(bound(?verdictPred), if(?verdictPred = npx:approvesOf, 'approved', 'rejected'), 'pending') as ?finalStatus)\n filter(?finalStatus = 'approved')\n bind(str(?dnp) as ?np) bind('^' as ?np_label)\n bind(?label as ?Name)\n optional { ?creator foaf:name ?cname }\n bind(?creator as ?ModifiedBy)\n bind(coalesce(?cname, replace(str(?creator), '^.*/', '')) as ?ModifiedBy_label)\n bind(?created as ?Modified_noheader)\n }" } ] } ] }, { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU/pubinfo", "@graph": [ { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU", "http://purl.org/dc/terms/created": [ { "@value": "2026-11-09T18:10:32Z", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://purl.org/dc/terms/creator": [ { "@id": "https://orcid.org/0009-0005-5515-1230" } ], "http://purl.org/dc/terms/license": [ { "@id": "https://creativecommons.org/licenses/by/4.0/" } ], "http://purl.org/nanopub/x/embeds": [ { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU/get-kg-approved-variants" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RAEl8hSTICaHqd03dbE6a4DpMxfCCz-7YUnZALtEJPfb8" }, { "@id": "https://w3id.org/np/RAQiV3J_IYHA6mPH8JGugKZ5xrJWG6WFsB50TbOgtvSoI" }, { "@id": "https://w3id.org/np/RAhavE0SELcqkDxcJgG9iyUHmAn6QL30pJzoPciys8_7c" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get mvikg/r/kg approved variants" } ], "http://www.w3.org/2004/02/skos/core#changeNote": [ { "@value": "ModifiedBy now carries the creator's ORCID IRI (with ModifiedBy_label as the display-name companion), so it renders as a link back to the creator instead of plain text." }, { "@value": "Replaced the supersedes-chain exclusion filter with the project's standard resolution pattern (npa:graph + npx:introduces + npa:hasValidSignatureForPublicKey, excluding npx:invalidates), matching how the real builder picks a resource's current defining nanopub. This requires the content nanopub to re-introduce the SAME stable entity IRI on every version (now fixed for the two phenotype records that had drifted to a fresh IRI per publish). Label now checks both the entity's own label and the nanopub-level label, preferring whichever is present (samples only have the latter, phenotypes only the former)." } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate": [ { "@id": "https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate": [ { "@id": "https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8" }, { "@id": "https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate": [ { "@id": "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } ] }, { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjO3oH8Lq/l1oZIUY3FlCz5DnndybGvAhBdmEJ/yq7Nv3GZEYPrEro23rCBCp0GiriOXlVbk61pA/7JFE6tqzTresINW6QQMxE9sIhCBlX4cG66JFD8ud6bMvUyzCR8LQA6zfrSbafGE06rvglJd4MDUcTwvUKqtL9UCnOaowVfnZ3sPOe9EqlmJuO3iHGxBSXMPOPEJZUzMXsFDWFuMZTnrR8gY3r5nVF5a8L/MD135ZH8qW5yGXOB28CmVYCAbw2o07QEKzyzFKN+W1gfnprYZvuKzwGexnzcdzc1S8N/M5bzhWQ40EKCEqgUE8c81OzEMm1HUlUKEJ/o5I/FKKAwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "St6MkL8Z0n5qnrja6YboSa3DR3MCKCuZBn8OzM8iF6wSPumwQmu9O/K0W6h+2vmPtbgArWa/ChNW1ap9FP0SrBpICMeFBMM6ujiaVLrwiwt9zX+lA1OL21mMKVzaNiV0nAWW5+CsPArcm9VY4+kut2z6TG77eZjDgGjl7B50Dhk3vz4ruNe8iSA9i9r4Wo9niChKihNEyPBdOb21te/6ITdL7nYUWdQFxsZ3ET3zh5dX8LVvy4w1U4+KgJanQxFWs8lQxclLQurF+dzkQB0Ci9lkxVtqagaaaElx8j1tfXCySm03tG3wXm3X3ARIuT2D9boT4OLa3U7oCHsDQJ/HFg==" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0009-0005-5515-1230" } ] } ] }, { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0009-0005-5515-1230" } ] } ] }, { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU/Head", "@graph": [ { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAHhOFsxKQ2oWZsuKvy0gW1yckTtYpTSh9lKRQ-jAqklU/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] } ]