@prefix this: . @prefix sub: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix skos: . @prefix rdfs: . @prefix orcid: . @prefix prov: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-kg-rejected-phenotypes a ; dct:description "Lists mvikg/r/kg phenotype records whose approval status is 'rejected' (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, and the rejection reason if given."; dct:license ; rdfs:label "Get mvikg/r/kg rejected phenotypes"; ; """prefix npa: prefix gen: prefix npx: prefix dct: prefix rdfs: prefix foaf: select distinct ?Name ?ModifiedBy ?ModifiedBy_label ?Modified_noheader ?Reason ?np ?np_label where { { select distinct ?dnp ?label ?creator ?created where { { select ?stableThing ?dnp where { graph npa:graph { ?dnp npx:introduces ?stableThing ; dct:created ?ddateRaw ; npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?inv npx:invalidates ?dnp ; npa:hasValidSignatureForPublicKey ?pubkey . } } filter not exists { graph npa:graph { ?dnp2 npx:introduces ?stableThing ; dct:created ?ddate2Raw ; npa:hasValidSignatureForPublicKey ?pubkey2 . filter not exists { ?inv2 npx:invalidates ?dnp2 ; npa:hasValidSignatureForPublicKey ?pubkey2 . } } filter(?ddate2Raw > ?ddateRaw) } } } bind(iri(concat(str(?dnp), '/assertion')) as ?da) graph ?da { ?stableThing a ; dct:isPartOf . } bind(iri(concat(str(?dnp), '/pubinfo')) as ?pi) graph ?pi { ?dnp dct:creator ?creator ; dct:created ?createdRaw . } bind(replace(str(?createdRaw), '[.]000Z$', 'Z') as ?created) optional { graph ?da { ?stableThing rdfs:label ?lblEntity } } optional { graph ?pi { ?dnp rdfs:label ?lblPub } } bind(coalesce(?lblEntity, ?lblPub, str(?stableThing)) as ?label) } } optional { graph ?vda { ?admin ?verdictPred ?dnp . filter(?verdictPred in (npx:approvesOf, npx:disapprovesOf)) } filter(exists { service { graph npa:graph { npa:hasCurrentSpaceState ?g . } graph ?g { ?ri a gen:RoleInstantiation ; npa:forSpace ; npa:forAgent ?admin ; npa:hasRoleType gen:AdminRole . } } }) bind(iri(replace(str(?vda), '/assertion$', '')) as ?vnp) graph ?vpi { ?vnp dct:created ?vcreatedRaw . } bind(xsd:dateTime(?vcreatedRaw) as ?vcreated) filter not exists { graph ?vda2 { ?admin2 ?verdictPred2 ?dnp . filter(?verdictPred2 in (npx:approvesOf, npx:disapprovesOf)) } filter(exists { service { graph npa:graph { npa:hasCurrentSpaceState ?g2 . } graph ?g2 { ?ri2 a gen:RoleInstantiation ; npa:forSpace ; npa:forAgent ?admin2 ; npa:hasRoleType gen:AdminRole . } } }) bind(iri(replace(str(?vda2), '/assertion$', '')) as ?vnp2) graph ?vpi2 { ?vnp2 dct:created ?vcreated2Raw . } filter(xsd:dateTime(?vcreated2Raw) > ?vcreated) } optional { graph ?vda { ?vda rdfs:comment ?reason } } } bind(if(bound(?verdictPred), if(?verdictPred = npx:approvesOf, 'approved', 'rejected'), 'pending') as ?finalStatus) filter(?finalStatus = 'rejected') bind(str(?dnp) as ?np) bind('^' as ?np_label) bind(?label as ?Name) optional { ?creator foaf:name ?cname } bind(?creator as ?ModifiedBy) bind(coalesce(?cname, replace(str(?creator), '^.*/', '')) as ?ModifiedBy_label) bind(?created as ?Modified_noheader) bind(?reason as ?Reason) }""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0009-0005-5515-1230 . } sub:pubinfo { this: dct:created "2026-11-09T18:10:32Z"^^xsd:dateTime; dct:creator orcid:0009-0005-5515-1230; dct:license ; npx:embeds sub:get-kg-rejected-phenotypes; npx:supersedes , , ; rdfs:label "Get mvikg/r/kg rejected phenotypes"; skos:changeNote "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.", "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)."; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjO3oH8Lq/l1oZIUY3FlCz5DnndybGvAhBdmEJ/yq7Nv3GZEYPrEro23rCBCp0GiriOXlVbk61pA/7JFE6tqzTresINW6QQMxE9sIhCBlX4cG66JFD8ud6bMvUyzCR8LQA6zfrSbafGE06rvglJd4MDUcTwvUKqtL9UCnOaowVfnZ3sPOe9EqlmJuO3iHGxBSXMPOPEJZUzMXsFDWFuMZTnrR8gY3r5nVF5a8L/MD135ZH8qW5yGXOB28CmVYCAbw2o07QEKzyzFKN+W1gfnprYZvuKzwGexnzcdzc1S8N/M5bzhWQ40EKCEqgUE8c81OzEMm1HUlUKEJ/o5I/FKKAwIDAQAB"; npx:hasSignature "HWdgvb9eUIE00fN7EVQo5pWdmBsrRVoTj0MgH8M0JevZnCFhootnDJA5+FysCiVZEeUCGM0o3hih/JfpaXTUXuKAEFUSAqaTfbZNwnbrSvyYFl2BLEViF9uRC8gfUDLUs8pGi3pzmNAbnQgOiV2pTnmqtg57HTJnyQ+hOBkrKsjSETqk3AP4XxRgUTJVLURmrd1yOkdKN0WYE4bsTmwD5OPNmIfeOltKhteaMYZqQgMexOlvS4jPKnztUrDgF5179KIfmCqdsy9sL1VLp2stG5tgV1izF4NRS5puZojTnr+h+YeTr3s+6NkOoufIV8kf4SwG0F8pG0uNuqKAsZH19Q=="; npx:hasSignatureTarget this:; npx:signedBy orcid:0009-0005-5515-1230 . }