[ { "@id": "https://w3id.org/np/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM/Head", "@graph": [ { "@id": "https://w3id.org/np/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM/get-project-info", "http://purl.org/dc/terms/description": [ { "@value": "Returns key-value facts for display on a project page (a gen:Project, which is also a gen:Space): its description, start date, end date, project lead(s), and admins. Description and dates are read from the project's latest non-invalidated definition nanopub. Project leads are the validated holders of the project-lead role (gen:hasRole .../projectLeadRole) and admins are the validated admins (npa:hasRoleType gen:AdminRole) of the project, both resolved via the spaces repository. A lead's label uses the canonical foaf:name from the trust state when present, otherwise falls back to the foaf:name or nt:hasLabelFromApi declared for the agent in the pubinfo of the role-grant nanopub (npa:viaNanopub), and finally to the agent IRI. Each property occupies one row; the Value column is a multi-value cell so properties with several values (multiple leads 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 project 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 schema: \nprefix foaf: \nprefix nt: \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 gen:Project }\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(distinct substr(str(?sd), 1, 10); separator=\"\\n\") as ?startVal) where {\n values ?_resource_multi_iri {}\n graph npa:graph {\n ?nps npx:introduces ?_resource_multi_iri ; npa:hasValidSignatureForPublicKeyHash ?pks ; np:hasAssertion ?asd .\n filter not exists { ?invs npx:invalidates ?nps ; npa:hasValidSignatureForPublicKeyHash ?pks . }\n }\n graph ?asd { ?_resource_multi_iri schema:startDate ?sd . }\n } having (count(?sd) > 0)\n }\n\n optional {\n select (group_concat(distinct substr(str(?ed), 1, 10); separator=\"\\n\") as ?endVal) where {\n values ?_resource_multi_iri {}\n graph npa:graph {\n ?npe npx:introduces ?_resource_multi_iri ; npa:hasValidSignatureForPublicKeyHash ?pke ; np:hasAssertion ?aed .\n filter not exists { ?inve npx:invalidates ?npe ; npa:hasValidSignatureForPublicKeyHash ?pke . }\n }\n graph ?aed { ?_resource_multi_iri schema:endDate ?ed . }\n } having (count(?ed) > 0)\n }\n\n optional {\n select (group_concat(?lead2; separator=\"\\n\") as ?leadVal) (group_concat(?leadName; separator=\"\\n\") as ?leadLabel) where {\n select ?lead2 (coalesce(max(?leadNmState), max(?leadNmPub), ?lead2) as ?leadName) where {\n values ?_resource_multi_iri {}\n service {\n graph npa:graph { npa:hasCurrentSpaceState ?g . }\n graph ?g { ?ri a gen:RoleInstantiation ; npa:forSpace ?_resource_multi_iri ; gen:hasRole ; npa:forAgent ?lead ; npa:viaNanopub ?leadNp . }\n optional { graph ?g { ?lead foaf:name ?leadNmState . } }\n }\n optional { graph npa:graph { ?leadNp np:hasPublicationInfo ?lpi . } graph ?lpi { ?lead foaf:name ?leadNmPub1 . } }\n optional { graph npa:graph { ?leadNp np:hasPublicationInfo ?lpi2 . } graph ?lpi2 { ?lead nt:hasLabelFromApi ?leadNmPub2 . } }\n bind(coalesce(?leadNmPub1, ?leadNmPub2) as ?leadNmPub)\n bind(str(?lead) as ?lead2)\n } group by ?lead2\n } having (count(?lead2) > 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 graph ?g { ?ri2 a gen:RoleInstantiation ; npa:forSpace ?_resource_multi_iri ; 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 ('Description' dct:description 'Description:')\n ('StartDate' schema:startDate 'Start Date:')\n ('EndDate' schema:endDate 'End Date:')\n ('Lead' gen:hasProjectLead 'Project Lead:')\n ('Admins' gen:hasAdmin 'Admins:')\n }\n bind(if(?key='Description', ?descVal, if(?key='StartDate', ?startVal, if(?key='EndDate', ?endVal, if(?key='Lead', ?leadVal, ?adminVal)))) as ?Value_multi_val_noheader)\n filter(bound(?Value_multi_val_noheader))\n bind(if(?key='Lead', ?leadLabel, if(?key='Admins', ?adminLabel, '')) as ?Value_label_multi)\n}\norder by (if(?key='Description', 1, if(?key='StartDate', 2, if(?key='EndDate', 3, if(?key='Lead', 4, 5)))))" } ] } ] }, { "@id": "https://w3id.org/np/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM/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/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM", "http://purl.org/dc/terms/created": [ { "@value": "2026-06-30T11:54:46Z", "@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/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM/get-project-info" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RA17SntraXQMGUNXu3dWbWA4kg10388Aeuf6VBB9VSPHo" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get project 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/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM/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": "mOeZ5UMpL/2UIHFB4g4ddFZ9CZv6O4sM9a2rYw8WjvWAPFUhuM8nKhMuvCIM9AEnGDQQyFpPjHTYSG/UdM0LankY3PwvR8uWnE7eRMgNF+XxBG1FWUc6BriY7qgATWzFBNiOTh7XZ7/5ch+EyqCS7MXvKROYpFHamEkpGuZ+uyg=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAC-5NUqwCvpKqRsK70qVwTEfOyTQdZpzvbONdNNVEHFM/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] } ]