[ { "@id": "https://w3id.org/np/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8/Head", "@graph": [ { "@id": "https://w3id.org/np/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8/assertion", "@graph": [ { "@id": "https://w3id.org/np/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8/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 values ?_ontology_multi_iri {}\n values ?itemType { owl:Class rdf:Property owl:ObjectProperty owl:DatatypeProperty owl:NamedIndividual gen:Paragraph }\n service {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\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 ?pubkey .\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 graph ?a {\n {\n ?item a ?itemType .\n filter(strstarts(str(?item), ?__ontologyNamespace))\n } union {\n ?item a ?itemType .\n ?item dct:isPartOf|schema:isPartOf ?_ontology_multi_iri .\n }\n optional { ?item rdfs:label|schema:title ?item_label_ . }\n }\n filter not exists {\n service {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG2 . }\n graph ?stateG2 {\n ?_ontology_multi_iri npa:isMaintainedBy? ?space2 .\n ?ri2 a gen:RoleInstantiation ; npa:forSpace ?space2 ; npa:forAgent ?agent2 ;\n npa:hasRoleType ?rt2 .\n filter(?rt2 in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n ?acct2 a npa:AccountState ; npa:agent ?agent2 ; npa:pubkey ?pubkey2 .\n }\n }\n graph npa:graph {\n ?np2 npx:hasNanopubType ?itemType .\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 ?item .\n ?np2 np:hasAssertion ?a2 .\n }\n graph ?a2 {\n {\n ?item a ?itemType .\n filter(strstarts(str(?item), ?__ontologyNamespace))\n } union {\n ?item a ?itemType .\n ?item dct:isPartOf|schema:isPartOf ?_ontology_multi_iri .\n }\n }\n filter(?date2 > ?date || (?date2 = ?date && str(?np2) > str(?np_)))\n }\n optional {\n service {\n graph npa:graph { npa:thisRepo npa:hasCurrentTrustState ?tg . }\n graph ?tg { ?user foaf:name ?lmbl . }\n }\n }\n} group by ?item\norder by ?item_label" } ] } ] }, { "@id": "https://w3id.org/np/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8/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/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8", "http://purl.org/dc/terms/created": [ { "@value": "2026-06-26T07:51: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/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8/get-definitions-of-ontology-ns" } ], "http://www.w3.org/ns/prov#wasDerivedFrom": [ { "@id": "https://w3id.org/np/RA-AB1iDSPzDpv3VvzQBDSWMElDGnYb8F-iva2kYyQYN4" }, { "@id": "https://w3id.org/np/RAliUJFYGJF3xnfl1825g-TB4iVvOV8RxFRbB0q0OEEsE" } ], "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/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8/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": "EHQ2MuThVKlQTzdqgoZcP5NF+rwJQx3Zvo+ew1CPk0NdzYAubRw3T7gC9IPAYta/1TpaZJlNl1iDjN8q0cYJ0rxiwh95ArYB4IIWhDW/QoAhuPgJt+GPeXdJI5qpHCqao7QmRf9GHsck9nH5dj285fkB3pZ590WM4M7qRmnFWS0=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8/provenance", "@graph": [ { "@id": "https://w3id.org/np/RA2RYleQ5Qf88nZpRpXE584XdwoPJGG6XeT4LNZBauAF8/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] } ]