[ { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4/pubinfo", "@graph": [ { "@id": "https://orcid.org/0000-0002-1267-0234", "http://xmlns.com/foaf/0.1/name": [ { "@value": "Tobias Kuhn" } ] }, { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4", "http://purl.org/dc/terms/created": [ { "@value": "2026-11-11T10:23:37Z", "@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/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4/get-concepts-of-skos-scheme" } ], "http://www.w3.org/2004/02/skos/core#changeNote": [ { "@value": "Show only the newest valid declaration of each concept (argmax by creation date, ties broken by nanopub URI); prefer untagged labels and definitions; merge several broader concepts into one multi-value column; sort labels case-insensitively." } ], "http://www.w3.org/ns/prov#wasDerivedFrom": [ { "@id": "https://w3id.org/np/RAul10Jretr7ykLaQ9dS_kdYRr9v4Cp2homA9W3Demzxg" } ], "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/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8" }, { "@id": "https://w3id.org/np/RAKc76yHLDbloE6ObluzYQsfX37v6qrZXbYeIKpe8-YUo" }, { "@id": "https://w3id.org/np/RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ" }, { "@id": "https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate": [ { "@id": "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } ] }, { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4/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": "cey1nz4VF+VHRlh8FjmMQSZW4V+YMVja4itZqvFy4zI956P5vb8TyPNyN0anewkGxtdA9MV7eudKJ2USXGv7VtGUDs3hC9wDyz4bivdxC4s428FYAQjwU2hebBv7gy1brPr79oz6ZnTyjdIbGwqpg5bsjqKvg27um7oEEfiEeak=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4/Head", "@graph": [ { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAiUgtO4YmGSPlo8auOylTb-6m-WTc1prEnPxbuey2Ih4/get-concepts-of-skos-scheme", "http://purl.org/dc/terms/description": [ { "@value": "This query returns all concepts that specify to be in the given SKOS scheme. Of several versions of the same term, only the newest valid declaration is shown." } ], "http://purl.org/dc/terms/license": [ { "@id": "http://www.apache.org/licenses/LICENSE-2.0" } ], "@type": [ "https://w3id.org/kpxl/grlc/grlc-query" ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get the concepts of a SKOS scheme" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/type/af79dec054ac75f59327aa4e560e3ed0c243130f9852d4e7027aee5beefed2f3" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix owl: \nprefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix skos: \n\nselect ?concept\n (coalesce(min(?label_u), min(?label_a)) as ?label)\n (group_concat(distinct str(?broader); separator=\" \") as ?broaderConcept_multi_iri)\n (coalesce(min(?definition_u), min(?definition_a)) as ?description)\n ?np (group_concat(distinct ?flagLabel; separator=\" \") as ?flags) where {\n values ?_scheme_multi_iri {}\n {\n select ?concept (iri(strafter(max(concat(str(?date0), \"|\", str(?np0))), \"|\")) as ?np) where {\n values ?_scheme_multi_iri {}\n graph npa:graph {\n ?np0 npx:hasNanopubType skos:Concept .\n ?np0 npa:hasValidSignatureForPublicKeyHash ?pubkey0 .\n filter not exists { ?npx0 npx:invalidates ?np0 ; npa:hasValidSignatureForPublicKeyHash ?pubkey0 . }\n ?np0 dct:created ?date0 .\n ?np0 npx:introduces ?concept .\n ?np0 np:hasAssertion ?a0 .\n }\n graph ?a0 {\n ?concept skos:inScheme ?_scheme_multi_iri .\n }\n } group by ?concept\n }\n graph npa:graph { ?np np:hasAssertion ?a . }\n optional {\n graph npa:graph {\n values (?flag ?flagLabel) { ( npx:ExampleNanopub \"Example\") ( npx:DraftNanopub \"Draft\") }\n ?np npx:hasNanopubType ?flag .\n }\n }\n graph ?a {\n ?concept skos:inScheme ?_scheme_multi_iri .\n optional { ?concept skos:broader ?broader . }\n optional { ?concept skos:prefLabel ?label_u . filter(lang(?label_u) = \"\") }\n optional { ?concept skos:prefLabel ?label_a . }\n optional { ?concept skos:definition ?definition_u . filter(lang(?definition_u) = \"\") }\n optional { ?concept skos:definition ?definition_a . }\n }\n}\ngroup by ?concept ?np\norder by lcase(str(coalesce(?label, \"\")))" } ] } ] } ]