rows { options { physical_type: PHYSICAL_STREAM_TYPE_QUADS max_name_table_size: 128 max_prefix_table_size: 16 max_datatype_table_size: 16 logical_type: LOGICAL_STREAM_TYPE_DATASETS version: 2 } } rows { prefix { value: "https://w3id.org/np/" } } rows { name { value: "RAY6Ta_8m3K6k9KeX-VVLPZU-DTpC9aywq4ojMiM6xxus" } } rows { namespace { name: "this" value { prefix_id: 1 } } } rows { prefix { value: "https://w3id.org/np/RAY6Ta_8m3K6k9KeX-VVLPZU-DTpC9aywq4ojMiM6xxus/" } } rows { name { } } rows { namespace { name: "sub" value { prefix_id: 2 } } } rows { prefix { value: "http://www.nanopub.org/nschema#" } } rows { namespace { name: "np" value { prefix_id: 3 name_id: 2 } } } rows { prefix { value: "https://w3id.org/kpxl/grlc/" } } rows { namespace { name: "grlc" value { prefix_id: 4 name_id: 2 } } } rows { prefix { value: "http://purl.org/dc/terms/" } } rows { namespace { name: "dct" value { prefix_id: 5 name_id: 2 } } } rows { prefix { value: "https://w3id.org/np/o/ntemplate/" } } rows { namespace { name: "nt" value { prefix_id: 6 name_id: 2 } } } rows { prefix { value: "http://purl.org/nanopub/x/" } } rows { namespace { name: "npx" value { prefix_id: 7 name_id: 2 } } } rows { prefix { value: "http://www.w3.org/2001/XMLSchema#" } } rows { namespace { name: "xsd" value { prefix_id: 8 name_id: 2 } } } rows { prefix { value: "http://www.w3.org/2000/01/rdf-schema#" } } rows { namespace { name: "rdfs" value { prefix_id: 9 name_id: 2 } } } rows { prefix { value: "https://orcid.org/" } } rows { namespace { name: "orcid" value { prefix_id: 10 name_id: 2 } } } rows { prefix { value: "http://www.w3.org/ns/prov#" } } rows { namespace { name: "prov" value { prefix_id: 11 name_id: 2 } } } rows { name { value: "hasAssertion" } } rows { name { value: "assertion" } } rows { name { value: "Head" } } rows { quad { s_iri { prefix_id: 1 name_id: 1 } p_iri { prefix_id: 3 name_id: 3 } o_iri { prefix_id: 2 } g_iri { } } } rows { name { value: "hasProvenance" } } rows { name { value: "provenance" } } rows { quad { p_iri { prefix_id: 3 } o_iri { prefix_id: 2 } } } rows { name { value: "hasPublicationInfo" } } rows { name { value: "pubinfo" } } rows { quad { p_iri { prefix_id: 3 } o_iri { prefix_id: 2 } } } rows { prefix { value: "http://www.w3.org/1999/02/22-rdf-syntax-ns#" } } rows { name { value: "type" } } rows { name { value: "Nanopublication" } } rows { quad { p_iri { prefix_id: 12 } o_iri { prefix_id: 3 } } } rows { name { value: "get-mvikg-phenotype-info" } } rows { name { value: "description" } } rows { quad { s_iri { prefix_id: 2 } p_iri { prefix_id: 5 } o_literal { lex: "Key-value Info card for a phenotype or antibiogram observation record (\'partid\') of the MVIKG knowledge graph: name, description, baseline, sample, associated variant, the antibiogram fields where present (antibiotic, susceptibility call, MIC, typing method, breakpoint standard, platform), review status and 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)." } g_iri { prefix_id: 2 name_id: 4 } } } rows { name { value: "license" } } rows { prefix { value: "https://creativecommons.org/licenses/by/4.0/" } } rows { quad { p_iri { prefix_id: 5 name_id: 14 } o_iri { prefix_id: 13 name_id: 2 } } } rows { name { value: "grlc-query" } } rows { quad { p_iri { prefix_id: 12 name_id: 10 } o_iri { prefix_id: 4 name_id: 15 } } } rows { name { value: "label" } } rows { quad { p_iri { prefix_id: 9 } o_literal { lex: "Get MVIKG phenotype info" } } } rows { name { value: "endpoint" } } rows { prefix { value: "https://w3id.org/np/l/nanopub-query-1.1/repo/" } } rows { name { value: "full" } } rows { quad { p_iri { prefix_id: 4 } o_iri { prefix_id: 14 } } } rows { name { value: "sparql" } } rows { quad { p_iri { prefix_id: 4 } o_literal { lex: "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 dct:description ?v }\n bind(3 as ?ord) bind(dct:description as ?Property_noheader) bind(\'Source sentence:\' as ?Property_label)\n bind(str(?v) as ?val0) bind(\'\' as ?lab0)\n }\n union\n {\n graph ?da { ?_partid_iri mvikg:comparedTo ?v }\n bind(4 as ?ord) bind(mvikg:comparedTo as ?Property_noheader) bind(\'Compared to:\' as ?Property_label)\n bind(str(?v) as ?val0) bind(\'\' as ?lab0)\n }\n union\n {\n graph ?da { ?_partid_iri sosa:isResultOf ?iri }\n optional {\n graph npa:graph {\n ?onp npx:introduces ?iri . ?cnp npx:supersedes* ?onp ; npx:introduces ?ciri ; rdfs:label ?llab ;\n npa:hasValidSignatureForPublicKeyHash ?cpk .\n filter not exists { ?cinv npx:invalidates ?cnp ; npa:hasValidSignatureForPublicKeyHash ?cpk . }\n }\n }\n bind(5 as ?ord) bind(sosa:isResultOf as ?Property_noheader) bind(\'Sample:\' as ?Property_label)\n bind(str(coalesce(?ciri, ?iri)) as ?val0) bind(coalesce(str(?llab), replace(str(?iri), \'^.*[/#]\', \'\')) as ?lab0)\n }\n union\n {\n graph ?da { ?_partid_iri mvikg:isAssociatedWithVariant ?iri }\n optional {\n graph npa:graph {\n ?onp npx:introduces ?iri . ?cnp npx:supersedes* ?onp ; npx:introduces ?ciri ; rdfs:label ?llab ;\n npa:hasValidSignatureForPublicKeyHash ?cpk .\n filter not exists { ?cinv npx:invalidates ?cnp ; npa:hasValidSignatureForPublicKeyHash ?cpk . }\n }\n }\n bind(6 as ?ord) bind(mvikg:isAssociatedWithVariant as ?Property_noheader) bind(\'Variant:\' as ?Property_label)\n bind(str(coalesce(?ciri, ?iri)) as ?val0) bind(coalesce(str(?llab), replace(str(?iri), \'^.*[/#]\', \'\')) as ?lab0)\n }\n union\n {\n graph ?da { ?_partid_iri mvikg:antibiotic ?v }\n bind(7 as ?ord) bind(mvikg:antibiotic as ?Property_noheader) bind(\'Antibiotic:\' as ?Property_label)\n bind(str(?v) as ?val0) bind(\'\' as ?lab0)\n }\n union\n {\n graph ?da { ?_partid_iri mvikg:antibioticAroId ?iri }\n bind(8 as ?ord) bind(mvikg:antibioticAroId as ?Property_noheader) bind(\'Antibiotic (ARO):\' 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 mvikg:susceptibilityCall ?iri }\n bind(9 as ?ord) bind(mvikg:susceptibilityCall as ?Property_noheader) bind(\'Susceptibility:\' as ?Property_label)\n bind(str(?iri) as ?val0) bind(if(strends(str(?iri), \'ARO_3004300\'), \'intermediate\', if(strends(str(?iri), \'ARO_3004301\'), \'resistant\', if(strends(str(?iri), \'ARO_3004302\'), \'susceptible\', replace(replace(str(?iri), \'^.*[/#]\', \'\'), \'_\', \':\')))) as ?lab0)\n }\n union\n {\n graph ?da { ?_partid_iri mvikg:micValue ?v . optional { ?_partid_iri mvikg:micUnit ?mu } }\n bind(10 as ?ord) bind(mvikg:micValue as ?Property_noheader) bind(\'MIC:\' as ?Property_label)\n bind(concat(str(?v), coalesce(concat(\' \', replace(str(?mu), \'^.*/\', \'\')), \'\')) as ?val0) bind(\'\' as ?lab0)\n }\n union\n {\n graph ?da { ?_partid_iri mvikg:typingMethod ?iri }\n bind(11 as ?ord) bind(mvikg:typingMethod as ?Property_noheader) bind(\'Typing method:\' 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 mvikg:breakpointStandard ?iri }\n bind(12 as ?ord) bind(mvikg:breakpointStandard as ?Property_noheader) bind(\'Breakpoint standard:\' 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 mvikg:platform ?iri }\n bind(13 as ?ord) bind(mvikg:platform as ?Property_noheader) bind(\'Platform:\' as ?Property_label)\n bind(str(?iri) as ?val0) bind(replace(replace(str(?iri), \'^.*[/#]\', \'\'), \'_\', \':\') as ?lab0)\n }\n union\n {\n bind(15 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(16 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(14 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), \'\342\217\263 pending\', if(strends(?mv, \'d\'), \'\360\237\232\253 rejected\', \'\342\234\205 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" } } } rows { name { value: "wasAttributedTo" } } rows { name { value: "0000-0002-1267-0234" } } rows { quad { s_iri { prefix_id: 2 name_id: 4 } p_iri { prefix_id: 11 name_id: 20 } o_iri { prefix_id: 10 } g_iri { prefix_id: 2 name_id: 7 } } } rows { name { value: "created" } } rows { datatype { value: "http://www.w3.org/2001/XMLSchema#dateTime" } } rows { quad { s_iri { prefix_id: 1 name_id: 1 } p_iri { prefix_id: 5 name_id: 22 } o_literal { lex: "2026-11-12T12:26:36.769+01:00" datatype: 1 } g_iri { prefix_id: 2 name_id: 9 } } } rows { name { value: "creator" } } rows { quad { p_iri { prefix_id: 5 name_id: 23 } o_iri { prefix_id: 10 name_id: 21 } } } rows { quad { p_iri { prefix_id: 5 name_id: 14 } o_iri { prefix_id: 13 name_id: 2 } } } rows { name { value: "embeds" } } rows { quad { p_iri { prefix_id: 7 name_id: 24 } o_iri { prefix_id: 2 name_id: 12 } } } rows { quad { p_iri { prefix_id: 9 name_id: 16 } o_literal { lex: "Get MVIKG phenotype info" } } } rows { name { value: "wasCreatedFromProvenanceTemplate" } } rows { name { value: "RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU" } } rows { quad { p_iri { prefix_id: 6 name_id: 25 } o_iri { prefix_id: 1 } } } rows { name { value: "wasCreatedFromPubinfoTemplate" } } rows { name { value: "RA-N4_kFxcruvBTlo1yJv29E4SLOXsx5KO_th69PprMrA" } } rows { quad { p_iri { prefix_id: 6 } o_iri { prefix_id: 1 } } } rows { name { value: "RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8" } } rows { quad { o_iri { } } } rows { name { value: "wasCreatedFromTemplate" } } rows { name { value: "RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } } rows { quad { p_iri { prefix_id: 6 } o_iri { prefix_id: 1 } } } rows { name { value: "sig" } } rows { name { value: "hasAlgorithm" } } rows { quad { s_iri { prefix_id: 2 } p_iri { prefix_id: 7 } o_literal { lex: "RSA" } } } rows { name { value: "hasPublicKey" } } rows { quad { p_iri { } o_literal { lex: "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" } } } rows { name { value: "hasSignature" } } rows { quad { p_iri { } o_literal { lex: "IO2mf55mUYaA+/BWuNmFAkFxxfx80FKQFbmILKe3Th/b5JI3mpc5wQrZ/6Arlo/OffRmn54F5u72k/CCESaFCyd/xsa5LNYCYpRZVPlbOJFpPqss/UeNROYr55fvM3hDw1diiYJ4tn3i7JxMfI0hytXe/fqqRqsxyfDnnM/CY3E=" } } } rows { name { value: "hasSignatureTarget" } } rows { quad { p_iri { } o_iri { prefix_id: 1 name_id: 1 } } } rows { name { value: "signedBy" } } rows { quad { p_iri { prefix_id: 7 name_id: 37 } o_iri { prefix_id: 10 name_id: 21 } } }