[ { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek/provenance", "@graph": [ { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek/assertion", "@graph": [ { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek/get-mvikg-sample-info", "http://purl.org/dc/terms/description": [ { "@value": "Key-value Info card for a sample record ('partid') of the MVIKG knowledge graph: name, description, taxon, biome, the source article that mentions it, review status, the graph it is part of and its defining nanopub. Rows of absent fields are omitted. Only records signed by a current admin, maintainer or member of the mvikg space count, in their newest non-invalidated version; the review status is the latest npx:approvesOf / npx:disapprovesOf verdict of a current mvikg admin on that version (none: pending)." } ], "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 sample info" } ], "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 rdf: \nprefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix gen: \nprefix sosa: \nprefix biolink: \nprefix mvikg: \nprefix obo: \n\nselect ?Property_noheader ?Property_label\n (group_concat(replace(str(?val), '[\\r\\n]+', ' '); separator='\\n') as ?Value_multi_val_noheader)\n (group_concat(replace(str(?vallabel), '[\\r\\n]+', ' '); separator='\\n') as ?Value_label_multi)\nwhere {\n {\n select ?ord ?Property_noheader ?Property_label ?val (min(?vallabelRaw) as ?vallabel) where {\n {\n select ?dnp ?da (max(?verdict) as ?mv) where {\n service {\n select (group_concat(distinct ?pk; separator=' ') as ?memberKeys) (group_concat(distinct ?apk; separator=' ') as ?adminKeys) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?sg . }\n graph ?sg {\n ?ri a gen:RoleInstantiation ; npa:forSpace ; npa:hasRoleType ?tier ; npa:forAgent ?agent .\n filter(?tier in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?pk .\n bind(if(?tier = gen:AdminRole, ?pk, '') as ?apk)\n }\n }\n }\n graph npa:graph {\n ?dnp npx:introduces ?_partid_iri ; np:hasAssertion ?da ; dct:created ?ddate ;\n npa:hasValidSignatureForPublicKeyHash ?dpk .\n filter not exists { ?dinv npx:invalidates ?dnp ; npa:hasValidSignatureForPublicKeyHash ?dpk . }\n }\n filter(contains(?memberKeys, ?dpk))\n optional {\n values ?vpred { npx:approvesOf npx:disapprovesOf }\n graph ?va { ?vagent ?vpred ?dnp . }\n graph npa:graph {\n ?vnp np:hasAssertion ?va ; dct:created ?vdate ; npa:hasValidSignatureForPublicKeyHash ?vpk .\n filter not exists { ?vinv npx:invalidates ?vnp ; npa:hasValidSignatureForPublicKeyHash ?vpk . }\n }\n filter(contains(?adminKeys, ?vpk))\n bind(concat(str(?vdate), '>', if(?vpred = npx:disapprovesOf, 'd', 'a')) as ?verdict)\n }\n } group by ?dnp ?da ?ddate order by desc(?ddate) limit 1\n }\n { select ?da ?ord ?Property_noheader ?Property_label ?val0 ?lab0 where {\n {\n graph ?da { ?_partid_iri rdfs:label ?v }\n bind(1 as ?ord) bind(rdfs:label as ?Property_noheader) bind('Name:' as ?Property_label)\n bind(str(?v) as ?val0) bind('' as ?lab0)\n }\n union\n {\n graph ?da { ?_partid_iri rdfs:comment ?v }\n bind(2 as ?ord) bind(rdfs:comment as ?Property_noheader) bind('Description:' as ?Property_label)\n bind(str(?v) as ?val0) bind('' as ?lab0)\n }\n union\n {\n graph ?da { ?_partid_iri biolink:in_taxon ?iri }\n bind(3 as ?ord) bind(biolink:in_taxon as ?Property_noheader) bind('Taxon:' as ?Property_label)\n bind(str(?iri) as ?val0) bind(replace(replace(str(?iri), '^.*[/#]', ''), '_', ':') as ?lab0)\n }\n union\n {\n graph ?da { ?_partid_iri biolink:in_taxon ?taxon . ?taxon mvikg:has_biome ?iri }\n bind(4 as ?ord) bind(mvikg:has_biome as ?Property_noheader) bind('Biome:' as ?Property_label)\n bind(str(?iri) as ?val0) bind(replace(replace(str(?iri), '^.*[/#]', ''), '_', ':') as ?lab0)\n }\n union\n {\n graph ?da { ?iri biolink:mentions ?_partid_iri }\n bind(5 as ?ord) bind(biolink:mentions as ?Property_noheader) bind('Source:' as ?Property_label)\n bind(str(?iri) as ?val0) bind(replace(str(?iri), '^.*[/#]', '') as ?lab0)\n }\n union\n {\n bind(7 as ?ord) bind(dct:isPartOf as ?Property_noheader) bind('Part of:' as ?Property_label)\n graph ?da { ?_partid_iri dct:isPartOf ?iri }\n bind(str(?iri) as ?val0) bind('MVIKG knowledge graph' as ?lab0)\n }\n } }\n union\n {\n bind(8 as ?ord) bind(npa:viaNanopub as ?Property_noheader) bind('Defined in:' as ?Property_label)\n bind('DNP' as ?val0)\n }\n union\n {\n bind(6 as ?ord) bind(npx:approvesOf as ?Property_noheader) bind('Review status:' as ?Property_label)\n bind('STATUS' as ?val0)\n }\n bind(if(?val0 = 'DNP', str(?dnp), if(?val0 = 'STATUS', if(!bound(?mv), '⏳ pending', if(strends(?mv, 'd'), '🚫 rejected', '✅ approved')), ?val0)) as ?val)\n bind(if(?val0 = 'DNP', substr(replace(str(?dnp), '^.*/np/', ''), 1, 10), if(?val0 = 'STATUS', '', ?lab0)) as ?vallabelRaw)\n } group by ?ord ?Property_noheader ?Property_label ?val\n }\n}\ngroup by ?ord ?Property_noheader ?Property_label\norder by ?ord" } ] } ] }, { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek/Head", "@graph": [ { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek/pubinfo", "@graph": [ { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek", "http://purl.org/dc/terms/created": [ { "@value": "2026-11-12T12:26:36.866+01:00", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://purl.org/dc/terms/creator": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ], "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/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek/get-mvikg-sample-info" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get MVIKG sample info" } ], "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/RA-N4_kFxcruvBTlo1yJv29E4SLOXsx5KO_th69PprMrA" }, { "@id": "https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate": [ { "@id": "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } ] }, { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "KyG4SL0m48Ay7QUhD2zE2CUZreRK/u9FB1DfkLubDzaHcTp+Dy3lA+R0ZvS5Ob5c9RTc8d/Eq80czjZESP7J97hvChI4KXCdQegpuCbvnelB0BSJNxNO81rjoKV+YwpXiwnG06w0znmW50Cl2NsfW4mriQhJ9qgm/UKcC2OhL+o=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RA_VlZ1Y9g2pGyPadCoqhjo-L7ZZx45e0ov8ObvO6dOek" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] } ]