@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @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-mvikg-entity-info a grlc:grlc-query; dct:description "Key-value Info card for an external entity ('partid') that records of the MVIKG knowledge graph point at: an NCBI Taxonomy taxon, a UniProt gene entry or a PubMed Central article. Shows its identifier, kind and a link to its external page, and its name where a member of the mvikg space has published a nanopub describing the entity with an rdfs:label."; dct:license ; rdfs:label "Get MVIKG external entity info"; grlc:endpoint ; grlc:sparql """prefix rdf: prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix gen: prefix sosa: prefix biolink: prefix mvikg: prefix obo: select ?Property_noheader ?Property_label ?Value_noheader ?Value_label where { { bind(1 as ?ord) bind(dct:identifier as ?Property_noheader) bind('Identifier:' as ?Property_label) bind(replace(replace(str(?_partid_iri), '^.*[/#]', ''), '_', ':') as ?Value_noheader) bind('' as ?Value_label) } union { { select (min(?l) as ?name) where { service { select (group_concat(distinct ?pk; separator=' ') as ?memberKeys) (group_concat(distinct ?apk; separator=' ') as ?adminKeys) where { graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?sg . } graph ?sg { ?ri a gen:RoleInstantiation ; npa:forSpace ; npa:hasRoleType ?tier ; npa:forAgent ?agent . filter(?tier in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?pk . bind(if(?tier = gen:AdminRole, ?pk, '') as ?apk) } } } graph npa:graph { ?lnp npx:describes|npx:introduces ?_partid_iri ; np:hasAssertion ?la ; npa:hasValidSignatureForPublicKeyHash ?lpk . filter not exists { ?linv npx:invalidates ?lnp ; npa:hasValidSignatureForPublicKeyHash ?lpk . } } filter(contains(?memberKeys, ?lpk)) graph ?la { ?_partid_iri rdfs:label ?l } } } filter(bound(?name)) bind(2 as ?ord) bind(rdfs:label as ?Property_noheader) bind('Name:' as ?Property_label) bind(str(?name) as ?Value_noheader) bind('' as ?Value_label) } union { bind(3 as ?ord) bind(rdf:type as ?Property_noheader) bind('Kind:' as ?Property_label) bind(if(strstarts(str(?_partid_iri), 'http://purl.obolibrary.org/obo/NCBITaxon_'), 'Organism taxon (NCBI Taxonomy)', if(strstarts(str(?_partid_iri), 'https://www.uniprot.org/uniprot/'), 'Gene (UniProt entry)', if(strstarts(str(?_partid_iri), 'https://www.ncbi.nlm.nih.gov/pmc/articles/'), 'Source article (PubMed Central)', 'External entity'))) as ?Value_noheader) bind('' as ?Value_label) } union { bind(4 as ?ord) bind(rdfs:seeAlso as ?Property_noheader) bind('External page:' as ?Property_label) bind(if(strstarts(str(?_partid_iri), 'http://purl.obolibrary.org/obo/NCBITaxon_'), concat('https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id=', strafter(str(?_partid_iri), 'http://purl.obolibrary.org/obo/NCBITaxon_')), str(?_partid_iri)) as ?url) bind(if(strstarts(str(?_partid_iri), 'http://purl.obolibrary.org/obo/NCBITaxon_'), 'NCBI Taxonomy', if(strstarts(str(?_partid_iri), 'https://www.uniprot.org/uniprot/'), 'UniProt', if(strstarts(str(?_partid_iri), 'https://www.ncbi.nlm.nih.gov/pmc/articles/'), 'PubMed Central', 'source'))) as ?site) bind(concat('', ?site, ' ↗') as ?Value_noheader) bind('' as ?Value_label) } } order by ?ord""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { this: dct:created "2026-11-12T13:26:12.560+01:00"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-mvikg-entity-info; rdfs:label "Get MVIKG external entity info"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "b7p3Nt6zsIZ0qz6rXSJzoKmz4hS4Qx797CjYKb56YL/aUaQLS9R1gsutFjZNBkUcSuzd0Eb/3ZhlUctzIdIfHTyYvSd7D4dGwzm/Hc1oaW4B7AKtN+zKKlaX70UkSh8kmvCxrO7eWU5h3B+dszlSWzQeD9q46Xs6Il822MMYPYE="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }