[ { "@id": "https://w3id.org/np/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g/provenance", "@graph": [ { "@id": "https://w3id.org/np/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g/Head", "@graph": [ { "@id": "https://w3id.org/np/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g/assertion", "@graph": [ { "@id": "https://w3id.org/np/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g/get-resource-info", "http://purl.org/dc/terms/description": [ { "@value": "Returns key-value facts for display on a space or maintained-resource page: its type(s), description(s), and admins. Type and description are read from the resource's latest non-invalidated definition nanopub. Admins are the validated admins (npa:hasRoleType gen:AdminRole) of the governing space - the resource itself when it is a space, or its maintaining space when it is a maintained resource - resolved via the spaces repository. Each property occupies one row; the Value column is a multi-value cell so properties with several values (multiple types or admins) list them all in a single row. Both columns use the '_noheader' convention so the redundant header row is dropped." } ], "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 resource info" } ], "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 rdf: \nprefix rdfs: \nprefix dct: \nprefix foaf: \nprefix np: \nprefix npa: \nprefix npx: \nprefix gen: \n\nselect distinct ?Property_noheader ?Property_label ?Value_multi_val_noheader ?Value_label_multi where {\n values ?_resource_multi_iri {}\n graph npa:graph {\n ?np npx:introduces ?_resource_multi_iri ; npa:hasValidSignatureForPublicKeyHash ?pubkey ; np:hasAssertion ?a .\n filter not exists { ?inv npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\n }\n graph ?a { ?_resource_multi_iri a ?baseType . filter(?baseType in (gen:Space, gen:MaintainedResource)) }\n\n optional {\n select (group_concat(?typeIriS; separator=\"\\n\") as ?typeVal) (group_concat(?typeLocal; separator=\"\\n\") as ?typeLabel) where {\n select distinct ?typeIriS ?typeLocal where {\n values ?_resource_multi_iri {}\n graph npa:graph {\n ?npt npx:introduces ?_resource_multi_iri ; npa:hasValidSignatureForPublicKeyHash ?pkt ; np:hasAssertion ?at .\n filter not exists { ?invt npx:invalidates ?npt ; npa:hasValidSignatureForPublicKeyHash ?pkt . }\n }\n graph ?at { ?_resource_multi_iri a ?typeIri . filter(?typeIri != gen:Space && ?typeIri != gen:MaintainedResource) }\n bind(str(?typeIri) as ?typeIriS)\n bind(replace(str(?typeIri), '^.*[/#]', '') as ?typeLocal)\n }\n } having (count(?typeIriS) > 0)\n }\n\n optional {\n select (group_concat(distinct ?descEsc; separator=\"\\n\") as ?descVal) where {\n values ?_resource_multi_iri {}\n graph npa:graph {\n ?npd npx:introduces ?_resource_multi_iri ; npa:hasValidSignatureForPublicKeyHash ?pkd ; np:hasAssertion ?ad .\n filter not exists { ?invd npx:invalidates ?npd ; npa:hasValidSignatureForPublicKeyHash ?pkd . }\n }\n graph ?ad { ?_resource_multi_iri dct:description ?desc . }\n bind(replace(replace(str(?desc), \"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\"), \"[\\r\\n]+\", \"\\\\\\\\n\") as ?descEsc)\n } having (count(?desc) > 0)\n }\n\n optional {\n select (group_concat(?admin2; separator=\"\\n\") as ?adminVal) (group_concat(?adminName; separator=\"\\n\") as ?adminLabel) where {\n select distinct ?admin2 ?adminName where {\n values ?_resource_multi_iri {}\n service {\n graph npa:graph { npa:hasCurrentSpaceState ?g . }\n optional { graph ?g { ?_resource_multi_iri npa:isMaintainedBy ?maint . } }\n bind(coalesce(?maint, ?_resource_multi_iri) as ?adminSpace)\n graph ?g { ?ri a gen:RoleInstantiation ; npa:forSpace ?adminSpace ; npa:hasRoleType gen:AdminRole ; npa:forAgent ?admin . }\n optional { graph ?g { ?admin foaf:name ?adminName0 . } }\n }\n bind(coalesce(?adminName0, str(?admin)) as ?adminName)\n bind(str(?admin) as ?admin2)\n }\n } having (count(?admin2) > 0)\n }\n\n values (?key ?Property_noheader ?Property_label) {\n ('Type' rdf:type 'Type:')\n ('Description' dct:description 'Description:')\n ('Admins' gen:hasAdmin 'Admins:')\n }\n bind(if(?key='Type', ?typeVal, if(?key='Description', ?descVal, ?adminVal)) as ?Value_multi_val_noheader)\n filter(bound(?Value_multi_val_noheader))\n bind(if(?key='Type', ?typeLabel, if(?key='Admins', ?adminLabel, '')) as ?Value_label_multi)\n}\norder by (if(?key='Type', 1, if(?key='Description', 2, 3)))" } ] } ] }, { "@id": "https://w3id.org/np/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g/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/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g", "http://purl.org/dc/terms/created": [ { "@value": "2026-06-26T07:42:34Z", "@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/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g/get-resource-info" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get resource info" } ], "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/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw" }, { "@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/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g/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": "WFeUtVAvS1oUVcrPsLin4mya6af5BujqWDK75ptKCN8RPd7Go92Um8Qmqv+V2ZCKqmJThf/dfnn/Tjl5tDtFstPz+I8B5H0hpvmVJjzP6F5Z5IQku0AC8qytUmtPY0qrWEYdoNPk2f8uto7RHUwR/ctBma0UeO39BLF9VgjhiTA=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RARL13kpzeG58KhCmrWKlZuwkRI6HB1g6cLYT5Pa6mk4g" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] } ]