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: "RAY9jYNDJUqYI5EBWcVo4A1r_B0xAvY51Kj6C6DooB4KE" } } rows { namespace { name: "this" value { prefix_id: 1 } } } rows { prefix { value: "https://w3id.org/np/RAY9jYNDJUqYI5EBWcVo4A1r_B0xAvY51Kj6C6DooB4KE/" } } 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: "http://purl.org/dc/terms/" } } rows { namespace { name: "dct" value { prefix_id: 4 name_id: 2 } } } rows { prefix { value: "https://w3id.org/np/o/ntemplate/" } } rows { namespace { name: "nt" value { prefix_id: 5 name_id: 2 } } } rows { prefix { value: "http://purl.org/nanopub/x/" } } rows { namespace { name: "npx" value { prefix_id: 6 name_id: 2 } } } rows { prefix { value: "http://www.w3.org/2001/XMLSchema#" } } rows { namespace { name: "xsd" value { prefix_id: 7 name_id: 2 } } } rows { prefix { value: "http://www.w3.org/2000/01/rdf-schema#" } } rows { namespace { name: "rdfs" value { prefix_id: 8 name_id: 2 } } } rows { prefix { value: "https://orcid.org/" } } rows { namespace { name: "orcid" value { prefix_id: 9 name_id: 2 } } } rows { prefix { value: "http://www.w3.org/ns/prov#" } } rows { namespace { name: "prov" value { prefix_id: 10 name_id: 2 } } } rows { prefix { value: "http://xmlns.com/foaf/0.1/" } } rows { namespace { name: "foaf" 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-concepts-of-a-skos-scheme-from-space-members" } } rows { name { value: "description" } } rows { quad { s_iri { prefix_id: 2 } p_iri { prefix_id: 4 } o_literal { lex: "Returns the concepts (skos:Concept) that declare themselves to be in the given SKOS concept scheme or vocabulary via skos:inScheme, restricted to nanopublications published by an admin, maintainer or member of the space that maintains the scheme. The maintaining space and its validated member public-key hashes are resolved server-side from the spaces repo (/repo/spaces); observers are excluded, since that tier is self-attestable. Each concept URI appears at most once: of all non-invalidated member-published definitions of a concept in this scheme, only the latest one by nanopublication timestamp is kept (ties broken by nanopublication URI), so an in-place override of a definition replaces the earlier one in the listing rather than adding a second row. The broader concepts are given as a multi-valued column: the IRIs in broader_concepts_multi_iri and the matching labels in broader_concepts_label_multi, in the same order, so a view renders them as a list of links. A broader concept\'s label is its own skos:prefLabel wherever that concept is defined (not necessarily in the same scheme), falling back to the IRI. Labels and definitions prefer an untagged literal but fall back to a language-tagged one, so a concept labelled only in a tagged language still shows a label and never duplicates its row across languages. The status column is a multi-value literal listing the curation states that apply to the winning definition: \"deprecated\" (owl:DeprecatedClass, or owl:deprecated true), \"withdrawn\" (gen:WithdrawnTerm), \"draft\" (npx:DraftNanopub) and \"example\" (npx:ExampleNanopub), in that order. Unlike the sibling queries for OWL classes and terms, this query applies no approval mechanism: every member-published definition is listed. The override_target column is action data rather than content: it carries the row\'s nanopublication so that a view can offer a per-row in-place re-edit action. The last_modified_by/last_modified columns give the signer and timestamp of the winning definition; the signer name is resolved from the trust repo (/repo/trust) or left blank." } 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: 4 name_id: 14 } o_iri { prefix_id: 13 } } } rows { prefix { value: "https://w3id.org/kpxl/grlc/" } } rows { name { value: "grlc-query" } } rows { quad { p_iri { prefix_id: 12 name_id: 10 } o_iri { prefix_id: 14 name_id: 16 } } } rows { name { value: "label" } } rows { quad { p_iri { prefix_id: 8 } o_literal { lex: "Get the concepts of a SKOS scheme from space members" } } } rows { name { value: "endpoint" } } rows { prefix { value: "https://w3id.org/np/l/nanopub-query-1.1/repo/type/" } } rows { name { value: "af79dec054ac75f59327aa4e560e3ed0c243130f9852d4e7027aee5beefed2f3" } } rows { quad { p_iri { prefix_id: 14 } o_iri { prefix_id: 15 } } } rows { name { value: "sparql" } } rows { quad { p_iri { prefix_id: 14 } o_literal { lex: "prefix owl: \nprefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix skos: \nprefix gen: \nprefix foaf: \n\nselect ?concept (strafter(?labelWin, \"|\") as ?concept_label) (strafter(?descWin, \"|\") as ?description)\n ?broader_concepts_multi_iri ?broader_concepts_label_multi\n ?status_multi\n ?last_modified_by (sample(?lmbl) as ?last_modified_by_label) ?last_modified\n (?np as ?override_target) ?np ?np_label where {\n {\n select ?concept (min(?labelRank) as ?labelWin) (min(?descRank) as ?descWin)\n ?status_multi (sample(?user) as ?last_modified_by) (sample(?date) as ?last_modified)\n ?np (\"^\" as ?np_label) where {\n values ?_scheme_multi_iri {}\n service {\n select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n values ?_scheme_multi_iri {}\n graph ?stateG {\n ?_scheme_multi_iri npa:isMaintainedBy? ?space .\n ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ;\n npa:hasRoleType ?rt .\n filter(?rt in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk .\n }\n }\n }\n graph npa:graph {\n ?np npx:hasNanopubType skos:Concept .\n ?np npa:hasValidSignatureForPublicKeyHash ?pubkey .\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\n ?np dct:created ?date .\n ?np npx:introduces ?concept .\n ?np np:hasAssertion ?a .\n optional { ?np npx:signedBy ?user . }\n }\n filter(contains(?memberPubkeys, ?pubkey))\n graph ?a {\n ?concept skos:inScheme ?_scheme_multi_iri .\n optional { ?concept skos:prefLabel ?label . }\n optional { ?concept skos:definition ?definition . }\n }\n bind(concat(if(lang(?label) = \"\", \"1\", \"2\"), \"|\", str(?label)) as ?labelRank)\n bind(concat(if(lang(?definition) = \"\", \"1\", \"2\"), \"|\", str(?definition)) as ?descRank)\n bind(replace(concat(\n if(exists { graph ?a { ?concept a owl:DeprecatedClass } }\n || exists { graph ?a { ?concept owl:deprecated true } }, \"deprecated\\n\", \"\"),\n if(exists { graph ?a { ?concept a gen:WithdrawnTerm } }, \"withdrawn\\n\", \"\"),\n if(exists { graph npa:graph { ?np npx:hasNanopubType npx:DraftNanopub } }, \"draft\\n\", \"\"),\n if(exists { graph npa:graph { ?np npx:hasNanopubType npx:ExampleNanopub } }, \"example\\n\", \"\")\n ), \"\\n$\", \"\") as ?status_multi)\n filter not exists {\n graph npa:graph {\n ?np2 npx:hasNanopubType skos:Concept .\n ?np2 npa:hasValidSignatureForPublicKeyHash ?pubkey2 .\n filter not exists { ?np2x npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pubkey2 . }\n ?np2 dct:created ?date2 .\n ?np2 npx:introduces ?concept .\n ?np2 np:hasAssertion ?a2 .\n }\n filter(contains(?memberPubkeys, ?pubkey2))\n graph ?a2 { ?concept skos:inScheme ?_scheme_multi_iri . }\n filter(?date2 > ?date || (?date2 = ?date && str(?np2) > str(?np)))\n }\n } group by ?concept ?status_multi ?np\n }\n optional {\n select ?np ?concept\n (group_concat(?bIri; separator=\" \") as ?broader_concepts_multi_iri)\n (group_concat(?bLabel; separator=\"\\n\") as ?broader_concepts_label_multi) where {\n values ?_scheme_multi_iri {}\n graph npa:graph {\n ?np npx:hasNanopubType skos:Concept ; npx:introduces ?concept ; np:hasAssertion ?a .\n }\n graph ?a { ?concept skos:inScheme ?_scheme_multi_iri ; skos:broader ?broader . }\n filter(isIRI(?broader))\n optional {\n select ?broader (min(?bRank) as ?bWin) where {\n graph npa:graph { ?bnp npx:hasNanopubType skos:Concept ; npx:introduces ?broader ; np:hasAssertion ?ba . }\n graph ?ba { ?broader skos:prefLabel ?blbl . }\n bind(concat(if(lang(?blbl) = \"\", \"1\", \"2\"), \"|\", str(?blbl)) as ?bRank)\n } group by ?broader\n }\n bind(str(?broader) as ?bIri)\n bind(replace(replace(coalesce(strafter(?bWin, \"|\"), str(?broader)), \"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\"), \"[\\r\\n]+\", \"\\\\\\\\n\") as ?bLabel)\n } group by ?np ?concept\n }\n optional {\n service {\n select ?last_modified_by ?lmbl where {\n graph npa:graph { npa:thisRepo npa:hasCurrentTrustState ?tg . }\n graph ?tg { ?last_modified_by foaf:name ?lmbl . }\n }\n }\n }\n}\ngroup by ?concept ?labelWin ?descWin ?broader_concepts_multi_iri ?broader_concepts_label_multi ?status_multi ?last_modified_by ?last_modified ?np ?np_label\norder by ?concept_label" } } } 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: 10 name_id: 21 } o_iri { prefix_id: 9 } g_iri { prefix_id: 2 name_id: 7 } } } rows { name { value: "name" } } rows { quad { s_iri { prefix_id: 9 name_id: 22 } p_iri { prefix_id: 11 } 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: 4 name_id: 24 } o_literal { lex: "2026-09-04T05:26:14Z" datatype: 1 } } } rows { name { value: "creator" } } rows { quad { p_iri { } o_iri { prefix_id: 9 name_id: 22 } } } rows { prefix { value: "https://creativecommons.org/licenses/by/4.0/" } } rows { quad { p_iri { prefix_id: 4 name_id: 14 } o_iri { prefix_id: 16 name_id: 2 } } } rows { name { value: "embeds" } } rows { quad { p_iri { prefix_id: 6 name_id: 26 } o_iri { prefix_id: 2 name_id: 12 } } } rows { quad { p_iri { prefix_id: 8 name_id: 17 } o_literal { lex: "Get the concepts of a SKOS scheme from space members" } } } rows { name { value: "wasDerivedFrom" } } rows { name { value: "RAul10Jretr7ykLaQ9dS_kdYRr9v4Cp2homA9W3Demzxg" } } rows { quad { p_iri { prefix_id: 10 name_id: 27 } o_iri { prefix_id: 1 } } } rows { name { value: "wasCreatedFromProvenanceTemplate" } } rows { name { value: "RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU" } } rows { quad { p_iri { prefix_id: 5 } o_iri { prefix_id: 1 } } } rows { name { value: "wasCreatedFromPubinfoTemplate" } } rows { name { value: "RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8" } } rows { quad { p_iri { prefix_id: 5 } o_iri { prefix_id: 1 } } } rows { name { value: "RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ" } } 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: 5 } o_iri { prefix_id: 1 } } } rows { name { value: "sig" } } rows { name { value: "hasAlgorithm" } } rows { quad { s_iri { prefix_id: 2 } p_iri { prefix_id: 6 } 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: "FXF8BStfytx5HTPt9CRYm1bB+ZAfkdn5J4KU731SjdsV4qIBwrCEBgrjNCXakzcH1muQBL8Hdfzmbthr/GqGkLBseJYKOwRTGM9OfEDvySvhV4IyEmTAR9ZgIN37Q4RxIXzGcCLGdDzPcR6g+Fezk4xdfjXjiAn0KRW2fpkape0=" } } } 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: 6 name_id: 42 } o_iri { prefix_id: 9 name_id: 22 } } }