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: "RApKj3Totz_TyxG0xQKcURoW2fNXbmVJTluDR6TF-S5Rw" } } rows { namespace { name: "this" value { prefix_id: 1 } } } rows { prefix { value: "https://w3id.org/np/RApKj3Totz_TyxG0xQKcURoW2fNXbmVJTluDR6TF-S5Rw/" } } 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 { prefix { value: "http://xmlns.com/foaf/0.1/" } } rows { namespace { name: "foaf" value { prefix_id: 12 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: 13 } o_iri { prefix_id: 3 } } } rows { name { value: "get-fsr-typology-svg" } } rows { name { value: "description" } } rows { quad { s_iri { prefix_id: 2 } p_iri { prefix_id: 5 } o_literal { lex: "Returns a single result row with one \'svg\' column holding a complete SVG document rendering the FSR typology of the FAIR Implementation Profile (FIP) Ontology, computed dynamically from the published class definitions. This is the query behind the \'FSR typology\' SVG view (gen:SvgView) and is specific to the FIP Ontology: it mirrors the hand-drawn FSR typology diagram with three fixed columns headed by FAIR Data Policy, FAIR Specification, and FAIR Supporting Technology, listing each column\'s subclasses (and their subclasses, indented) as boxes hanging off a vertical spine with a subtype triangle. Classes that are also FAIR-Enabling Resources (directly, or via their parent for nested entries) get a gray background; a legend below the columns explains the FSR/FER distinction. Box labels link root-relatively (/part?id=...) so they resolve inside the rendering Nanodash instance, which appends the page context; labels are shown in full. Box labels are shown in full, wrapping to two lines when needed. Each class that declares the FAIR (sub-)principles it enables (fip:enables, present in the legacy per-term nanopubs, fetched via a federated lookup on the full repo) gets a badge box attached on the right, as in the hand-drawn original; each principle code links root-relatively (/part?id=...) to the principle term. The FSR/FER legend boxes link to their class terms likewise. Link text carries a neutral fill that the rendering page\'s stylesheet overrides with its own link colors. Positions are computed via rank subqueries, so the output is deterministic. The \'resource\' parameter (the ontology) is used to derive the class namespace filter." } g_iri { prefix_id: 2 name_id: 4 } } } rows { name { value: "license" } } rows { prefix { value: "http://www.apache.org/licenses/" } } rows { name { value: "LICENSE-2.0" } } rows { quad { p_iri { prefix_id: 5 name_id: 14 } o_iri { prefix_id: 14 } } } rows { name { value: "grlc-query" } } rows { quad { p_iri { prefix_id: 13 name_id: 10 } o_iri { prefix_id: 4 name_id: 16 } } } rows { name { value: "label" } } rows { quad { p_iri { prefix_id: 9 } o_literal { lex: "Get FSR typology diagram as SVG" } } } rows { name { value: "endpoint" } } rows { prefix { value: "https://w3id.org/np/l/nanopub-query-1.1/repo/type/" } } rows { name { value: "e8cc5bb29ec5597303f8f101c65c545dc124ee0df68ce733764b03adc3237184" } } rows { quad { p_iri { prefix_id: 4 } o_iri { prefix_id: 15 } } } rows { name { value: "sparql" } } rows { quad { p_iri { prefix_id: 4 } o_literal { lex: "prefix np: \nprefix npa: \nprefix npx: \nprefix owl: \nprefix rdfs: \nprefix xsd: \nselect (concat(\n \'\',\n group_concat(?frag; separator=\"\"),\n \'\',\'\',\'\',\'FAIR Supporting Resource (FSR)\',\'\',\'\',\'\',\'FAIR-Enabling Resource (FER)\',\'\',\'All resources in this typology are\',\'FAIR Supporting Resources (FSR), but\',\'the FAIR-Enabling Resources (FER,\',\'gray background) among them are\',\'essential for the FAIR Principles.\',\'\',\n \'\') as ?svg) where {\n\n # --- one row per rendered box, with rank ?iy inside its column\n { select ?b ?bx ?c ?clbl ?ind ?fer (count(*) as ?iy) where {\n { \n {\n { select ?b ?bx ?c (coalesce(min(?lu1), min(?la1), replace(str(?c), \"^.*[/#]\", \"\")) as ?clbl) where {\n values (?b ?bx) { ( 0) ( 1) ( 2) }\n \n graph npa:graph {\n ?np1 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pk1 ; npx:introduces ?c ; np:hasAssertion ?a1 .\n filter not exists { ?npi1 npx:invalidates ?np1 ; npa:hasValidSignatureForPublicKeyHash ?pk1 . }\n }\n graph ?a1 {\n ?c a owl:Class ; rdfs:subClassOf ?b .\n optional { ?c rdfs:label ?lu1 . filter(lang(?lu1) = \"\") }\n optional { ?c rdfs:label ?la1 . }\n }\n filter(strstarts(str(?c), replace(str(?_resource_iri), \"[^/#]*$\", \"\")))\n } group by ?b ?bx ?c }\n bind(0 as ?ind)\n bind(concat(?clbl, \"|\", str(?c)) as ?sk)\n bind(if(exists {\n graph npa:graph {\n ?npf2 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pkf2 ; npx:introduces ?c ; np:hasAssertion ?af2 .\n filter not exists { ?npfi2 npx:invalidates ?npf2 ; npa:hasValidSignatureForPublicKeyHash ?pkf2 . }\n }\n graph ?af2 { ?c rdfs:subClassOf . }\n }, 1, 0) as ?fer)\n } union {\n { select ?b ?bx ?m ?c\n (coalesce(min(?lu2), min(?la2), replace(str(?m), \"^.*[/#]\", \"\")) as ?mlbl)\n (coalesce(min(?lu3), min(?la3), replace(str(?c), \"^.*[/#]\", \"\")) as ?clbl) where {\n values (?b ?bx) { ( 0) ( 1) ( 2) }\n \n graph npa:graph {\n ?np3 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pk3 ; npx:introduces ?m ; np:hasAssertion ?a3 .\n filter not exists { ?npi3 npx:invalidates ?np3 ; npa:hasValidSignatureForPublicKeyHash ?pk3 . }\n }\n graph ?a3 {\n ?m a owl:Class ; rdfs:subClassOf ?b .\n optional { ?m rdfs:label ?lu2 . filter(lang(?lu2) = \"\") }\n optional { ?m rdfs:label ?la2 . }\n }\n filter(strstarts(str(?m), replace(str(?_resource_iri), \"[^/#]*$\", \"\")))\n \n graph npa:graph {\n ?np4 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pk4 ; npx:introduces ?c ; np:hasAssertion ?a4 .\n filter not exists { ?npi4 npx:invalidates ?np4 ; npa:hasValidSignatureForPublicKeyHash ?pk4 . }\n }\n graph ?a4 {\n ?c a owl:Class ; rdfs:subClassOf ?m .\n optional { ?c rdfs:label ?lu3 . filter(lang(?lu3) = \"\") }\n optional { ?c rdfs:label ?la3 . }\n }\n filter(strstarts(str(?c), replace(str(?_resource_iri), \"[^/#]*$\", \"\")))\n } group by ?b ?bx ?m ?c }\n bind(1 as ?ind)\n bind(concat(?mlbl, \"~|\", ?clbl, \"|\", str(?c)) as ?sk)\n bind(if(exists {\n graph npa:graph {\n ?npf5 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pkf5 ; npx:introduces ?c ; np:hasAssertion ?af5 .\n filter not exists { ?npfi5 npx:invalidates ?npf5 ; npa:hasValidSignatureForPublicKeyHash ?pkf5 . }\n }\n graph ?af5 { ?c rdfs:subClassOf . }\n } || exists {\n graph npa:graph {\n ?npf6 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pkf6 ; npx:introduces ?m ; np:hasAssertion ?af6 .\n filter not exists { ?npfi6 npx:invalidates ?npf6 ; npa:hasValidSignatureForPublicKeyHash ?pkf6 . }\n }\n graph ?af6 { ?m rdfs:subClassOf . }\n }, 1, 0) as ?fer)\n } }\n { select distinct (?b as ?bR) (?sk as ?skR) where { \n {\n { select ?b ?bx ?c (coalesce(min(?lu1), min(?la1), replace(str(?c), \"^.*[/#]\", \"\")) as ?clbl) where {\n values (?b ?bx) { ( 0) ( 1) ( 2) }\n \n graph npa:graph {\n ?np7 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pk7 ; npx:introduces ?c ; np:hasAssertion ?a7 .\n filter not exists { ?npi7 npx:invalidates ?np7 ; npa:hasValidSignatureForPublicKeyHash ?pk7 . }\n }\n graph ?a7 {\n ?c a owl:Class ; rdfs:subClassOf ?b .\n optional { ?c rdfs:label ?lu1 . filter(lang(?lu1) = \"\") }\n optional { ?c rdfs:label ?la1 . }\n }\n filter(strstarts(str(?c), replace(str(?_resource_iri), \"[^/#]*$\", \"\")))\n } group by ?b ?bx ?c }\n bind(0 as ?ind)\n bind(concat(?clbl, \"|\", str(?c)) as ?sk)\n bind(if(exists {\n graph npa:graph {\n ?npf8 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pkf8 ; npx:introduces ?c ; np:hasAssertion ?af8 .\n filter not exists { ?npfi8 npx:invalidates ?npf8 ; npa:hasValidSignatureForPublicKeyHash ?pkf8 . }\n }\n graph ?af8 { ?c rdfs:subClassOf . }\n }, 1, 0) as ?fer)\n } union {\n { select ?b ?bx ?m ?c\n (coalesce(min(?lu2), min(?la2), replace(str(?m), \"^.*[/#]\", \"\")) as ?mlbl)\n (coalesce(min(?lu3), min(?la3), replace(str(?c), \"^.*[/#]\", \"\")) as ?clbl) where {\n values (?b ?bx) { ( 0) ( 1) ( 2) }\n \n graph npa:graph {\n ?np9 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pk9 ; npx:introduces ?m ; np:hasAssertion ?a9 .\n filter not exists { ?npi9 npx:invalidates ?np9 ; npa:hasValidSignatureForPublicKeyHash ?pk9 . }\n }\n graph ?a9 {\n ?m a owl:Class ; rdfs:subClassOf ?b .\n optional { ?m rdfs:label ?lu2 . filter(lang(?lu2) = \"\") }\n optional { ?m rdfs:label ?la2 . }\n }\n filter(strstarts(str(?m), replace(str(?_resource_iri), \"[^/#]*$\", \"\")))\n \n graph npa:graph {\n ?np10 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pk10 ; npx:introduces ?c ; np:hasAssertion ?a10 .\n filter not exists { ?npi10 npx:invalidates ?np10 ; npa:hasValidSignatureForPublicKeyHash ?pk10 . }\n }\n graph ?a10 {\n ?c a owl:Class ; rdfs:subClassOf ?m .\n optional { ?c rdfs:label ?lu3 . filter(lang(?lu3) = \"\") }\n optional { ?c rdfs:label ?la3 . }\n }\n filter(strstarts(str(?c), replace(str(?_resource_iri), \"[^/#]*$\", \"\")))\n } group by ?b ?bx ?m ?c }\n bind(1 as ?ind)\n bind(concat(?mlbl, \"~|\", ?clbl, \"|\", str(?c)) as ?sk)\n bind(if(exists {\n graph npa:graph {\n ?npf11 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pkf11 ; npx:introduces ?c ; np:hasAssertion ?af11 .\n filter not exists { ?npfi11 npx:invalidates ?npf11 ; npa:hasValidSignatureForPublicKeyHash ?pkf11 . }\n }\n graph ?af11 { ?c rdfs:subClassOf . }\n } || exists {\n graph npa:graph {\n ?npf12 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pkf12 ; npx:introduces ?m ; np:hasAssertion ?af12 .\n filter not exists { ?npfi12 npx:invalidates ?npf12 ; npa:hasValidSignatureForPublicKeyHash ?pkf12 . }\n }\n graph ?af12 { ?m rdfs:subClassOf . }\n }, 1, 0) as ?fer)\n } } }\n filter(?bR = ?b && ?skR <= ?sk)\n } group by ?b ?bx ?c ?clbl ?ind ?fer }\n\n # --- root labels from their own definition nanopubs\n { select ?b (coalesce(min(?blu), min(?bla), replace(str(?b), \"^.*[/#]\", \"\")) as ?blbl) where {\n values ?b { }\n \n graph npa:graph {\n ?np900 npx:hasNanopubType owl:Class ; npa:hasValidSignatureForPublicKeyHash ?pk900 ; npx:introduces ?b ; np:hasAssertion ?a900 .\n filter not exists { ?npi900 npx:invalidates ?np900 ; npa:hasValidSignatureForPublicKeyHash ?pk900 . }\n }\n graph ?a900 {\n ?b a owl:Class .\n optional { ?b rdfs:label ?blu . filter(lang(?blu) = \"\") }\n optional { ?b rdfs:label ?bla . }\n }\n } group by ?b }\n\n # --- FAIR (sub-)principle badges from fip:enables (only present in the legacy\n # per-term nanopubs, hence the federated lookup on the full repo; subjects of\n # the legacy form \342\200\246/fair/fip/np//RA\342\200\246 are normalized to the term IRI)\n optional {\n { select ?c (group_concat(distinct replace(str(?prE), \"^.*[/#]\", \"\"); separator=\" \") as ?codes)\n (group_concat(distinct concat(\'\', replace(str(?prE), \"^.*[/#]\", \"\"), \'\'); separator=\" \") as ?codesFrag) where {\n service {\n graph ?gE { ?cE0 ?prE . }\n }\n bind(if(strstarts(str(?cE0), \"https://w3id.org/fair/fip/np/\"),\n iri(concat(\"https://w3id.org/fair/fip/terms/\", replace(str(?cE0), \"^https://w3id.org/fair/fip/np/([^/]+)/.*$\", \"$1\"))),\n ?cE0) as ?c)\n } group by ?c }\n }\n\n bind(20 + ?bx * 280 as ?colX)\n bind(?colX + 24 as ?spineX)\n bind(96 + (?iy - 1) * 38 as ?boxY)\n bind(?boxY + 15 as ?midY)\n bind(?colX + 38 + ?ind * 14 as ?boxX)\n bind(175 - ?ind * 14 as ?boxW)\n bind(if(?fer = 1, \"#d8d8d8\", \"#ffffff\") as ?boxFill)\n\n # column header (root box + subtype triangle), attached to the first item row\n bind(if(?iy = 1, concat(\n \'\',\n \'\', replace(replace(replace(?blbl, \"&\", \"&\"), \"<\", \"<\"), \">\", \">\"), \'\',\n \'\'\n ), \'\') as ?headerFrag)\n\n # two-line wrap for labels wider than the box: break at the last space in the\n # first 21 characters (balanced split); labels are shown in full, no truncation\n bind(strlen(?clbl) > 30 && regex(?clbl, \"^.{1,20}\\\\s\") as ?wrap)\n bind(if(?wrap, replace(?clbl, \"^(.{1,20})\\\\s.*$\", \"$1\"), ?clbl) as ?l1)\n bind(if(?wrap, replace(?clbl, \"^.{1,20}\\\\s\", \"\"), \"\") as ?l2)\n\n bind(if(bound(?codes) && ?codes != \"\", concat(\n \'\',\n \'\', ?codesFrag, \'\'\n ), \'\') as ?badgeFrag)\n\n bind(concat(\n ?headerFrag,\n \'\',\n \'\',\n \'\',\n \'\',\n if(?l2 = \"\",\n concat(\'\', replace(replace(replace(?clbl, \"&\", \"&\"), \"<\", \"<\"), \">\", \">\"), \'\'),\n concat(\'\', replace(replace(replace(?l1, \"&\", \"&\"), \"<\", \"<\"), \">\", \">\"),\n \'\', replace(replace(replace(?l2, \"&\", \"&\"), \"<\", \"<\"), \">\", \">\"), \'\')),\n \'\',\n ?badgeFrag\n ) as ?frag)\n\n}" } } } 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: 21 } o_iri { prefix_id: 10 } g_iri { prefix_id: 2 name_id: 7 } } } rows { name { value: "name" } } rows { quad { s_iri { prefix_id: 10 name_id: 22 } p_iri { prefix_id: 12 } o_literal { lex: "Tobias Kuhn" } g_iri { prefix_id: 2 name_id: 9 } } } 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: 24 } o_literal { lex: "2026-08-11T14:40:32Z" datatype: 1 } } } rows { name { value: "creator" } } rows { quad { p_iri { } o_iri { prefix_id: 10 name_id: 22 } } } rows { prefix { value: "https://creativecommons.org/licenses/by/4.0/" } } rows { quad { p_iri { prefix_id: 5 name_id: 14 } o_iri { prefix_id: 16 name_id: 2 } } } rows { name { value: "embeds" } } rows { quad { p_iri { prefix_id: 7 name_id: 26 } o_iri { prefix_id: 2 name_id: 12 } } } rows { name { value: "supersedes" } } rows { name { value: "RAsFPzEJ6HlJ-KOzTgNi6yKqYSeg57-xn2_Y7MD0NsN-0" } } rows { quad { p_iri { prefix_id: 7 name_id: 27 } o_iri { prefix_id: 1 } } } rows { quad { p_iri { prefix_id: 9 name_id: 17 } o_literal { lex: "Get FSR typology diagram as SVG" } } } rows { name { value: "wasCreatedFromProvenanceTemplate" } } rows { name { value: "RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU" } } rows { quad { p_iri { prefix_id: 6 name_id: 29 } o_iri { prefix_id: 1 } } } rows { name { value: "wasCreatedFromPubinfoTemplate" } } rows { name { value: "RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8" } } rows { quad { p_iri { prefix_id: 6 } o_iri { prefix_id: 1 } } } rows { name { value: "RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw" } } rows { quad { o_iri { } } } rows { name { value: "RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI" } } 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: "AEbHHWYDFaTfOvKnWt59UiLqbqLCXNouxf0cgX/x/3UVJiY01QtQyY3v5sADG1gyXzkL1GVjm6GI52vn7hQltru5OL++tqh5UmO26WnWnHNOZJwUuznBUKtYrD/DXycJ9cGUpyma3sI17B4W/kKUe77QArBug6bi6Xol3kXL3rM=" } } } 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: 42 } o_iri { prefix_id: 10 name_id: 22 } } }