[ { "@id": "https://w3id.org/np/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k/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/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k", "http://purl.org/dc/terms/created": [ { "@value": "2026-07-02T10:24:36Z", "@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/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k/get-definitions-of-ontology-ns" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RAiU4biwmbb6YcJ0v178nyJS1y3NtdpAcmhMBMmoyYBuA" } ], "http://www.w3.org/ns/prov#wasDerivedFrom": [ { "@id": "https://w3id.org/np/RAiU4biwmbb6YcJ0v178nyJS1y3NtdpAcmhMBMmoyYBuA" } ], "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/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw" }, { "@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/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k/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": "kVG2K3u6qknhTUWBT0kD1Y2QAU9LNVXf1pVN3ufOYM77Rdm3Xu2H6/o5/Jyaco+LffSMEQjOSNsbP1KhzbiWMM8OAVsKcaz9yYZkSBXfB1D8raCPKaN11VfmouAadqZSHUuZMZCx2zU3WUbMoO8MHp71qRNvVijvbUmiDuftV5E=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k/Head", "@graph": [ { "@id": "https://w3id.org/np/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAVJmNizA8ZgU5J_6J5Odztw5ERBSeMmLbSOQQBDENN_k/get-definitions-of-ontology-ns", "http://purl.org/dc/terms/description": [ { "@value": "Like 'Get the definitions of an ontology including namespace and descriptions', but restricted to definition nanopublications published by an admin, maintainer, or member of the space that maintains the resource (observers excluded). It returns the definitions of the elements of a given OWL ontology (classes, properties, named individuals, and describing paragraphs) that either match the ontology namespace or declare dct:isPartOf the ontology. The maintaining space and its validated member public-key hashes are resolved server-side from the spaces repo (/repo/spaces). Each element appears once, kept from the latest member-authored definition (by nanopub timestamp, ties broken by nanopub URI). The last_modified_by/last_modified columns give the signer and timestamp of that latest definition; the signer name is resolved from the trust repo (/repo/trust) or left blank." } ], "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 latest member-authored definitions of an ontology including namespace" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/full" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix owl: \nprefix rdfs: \nprefix rdf: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix skos: \nprefix schema: \nprefix gen: \nprefix foaf: \n\nselect ?item (sample(?item_label_) as ?item_label)\n (sample(?user) as ?last_modified_by) (sample(?lmbl) as ?last_modified_by_label)\n (sample(?date) as ?last_modified)\n (sample(?np_) as ?np) (\"^\" as ?np_label) where {\n {\n select ?item (max(?rank) as ?maxrank) where {\n {\n select ?np_ ?item ?a ?date ?pubkey ?itemType where {\n values ?itemType { owl:Class rdf:Property owl:ObjectProperty owl:DatatypeProperty owl:NamedIndividual gen:Paragraph }\n service {\n select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n values ?_ontology_multi_iri {}\n graph ?stateG {\n ?_ontology_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 ?itemType .\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 ?item .\n ?np_ np:hasAssertion ?a .\n }\n filter(contains(?memberPubkeys, ?pubkey))\n }\n }\n values ?_ontology_multi_iri {}\n graph ?a {\n { ?item a ?itemType . filter(strstarts(str(?item), ?__ontologyNamespace)) }\n union\n { ?item a ?itemType . ?item dct:isPartOf|schema:isPartOf ?_ontology_multi_iri . }\n }\n bind(concat(str(?date), \"|\", str(?np_)) as ?rank)\n } group by ?item\n }\n {\n select ?np_ ?item ?date ?user ?item_label_ where {\n {\n select ?np_ ?item ?a ?date ?user ?pubkey ?itemType where {\n values ?itemType { owl:Class rdf:Property owl:ObjectProperty owl:DatatypeProperty owl:NamedIndividual gen:Paragraph }\n service {\n select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n values ?_ontology_multi_iri {}\n graph ?stateG {\n ?_ontology_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 ?itemType .\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 ?item .\n ?np_ np:hasAssertion ?a .\n optional { ?np_ npx:signedBy ?user . }\n }\n filter(contains(?memberPubkeys, ?pubkey))\n }\n }\n values ?_ontology_multi_iri {}\n graph ?a {\n { ?item a ?itemType . filter(strstarts(str(?item), ?__ontologyNamespace)) }\n union\n { ?item a ?itemType . ?item dct:isPartOf|schema:isPartOf ?_ontology_multi_iri . }\n optional { ?item rdfs:label|schema:title ?item_label_ . }\n }\n }\n }\n bind(concat(str(?date), \"|\", str(?np_)) as ?rank)\n filter(?rank = ?maxrank)\n optional {\n service {\n select ?user ?lmbl where {\n graph npa:graph { npa:thisRepo npa:hasCurrentTrustState ?tg . }\n graph ?tg { ?user foaf:name ?lmbl . }\n }\n }\n }\n} group by ?item\norder by ?item_label" } ] } ] } ]