https://w3id.org/np/RAlorCjp4uSt7p8VdwrMrsR0dmGSqsq_lPu1mdDU7qBcg
.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt
@prefix this: <https://w3id.org/np/RAlorCjp4uSt7p8VdwrMrsR0dmGSqsq_lPu1mdDU7qBcg> .
@prefix sub: <https://w3id.org/np/RAlorCjp4uSt7p8VdwrMrsR0dmGSqsq_lPu1mdDU7qBcg/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix grlc: <https://w3id.org/kpxl/grlc/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix orcid: <https://orcid.org/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
sub:Head {
this: a np:Nanopublication;
np:hasAssertion sub:assertion;
np:hasProvenance sub:provenance;
np:hasPublicationInfo sub:pubinfo .
}
sub:assertion {
sub:get-nanosuggestion-details a grlc:grlc-query;
dct:description "Returns the details of a single nanosuggestion as a list of field/value rows: title, kind, text, current status, assignee, the spaces it is relevant for, what it is about, and further links. Empty fields are omitted and only the most recent status assertion is shown.";
dct:license <http://www.apache.org/licenses/LICENSE-2.0>;
rdfs:label "Get the details of a nanosuggestion";
grlc:endpoint <https://w3id.org/np/l/nanopub-query-1.1/repo/full>;
grlc:sparql """
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix dct: <http://purl.org/dc/terms/>
prefix foaf: <http://xmlns.com/foaf/0.1/>
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix schema: <https://schema.org/>
prefix gen: <https://w3id.org/kpxl/gen/terms/>
prefix nsug: <https://w3id.org/np/RA5BAdUvlxLWMWFQN3UVKoIQEB_MYTiAoLH1klXJ7z-XI/>
select ?field_noheader (group_concat(distinct ?vshown; separator=', ') as ?value) (min(?sort) as ?s)
where {
values (?property ?field_noheader ?sort) {
( rdfs:label 'title' '1' )
( rdf:type 'kind' '2' )
( rdf:value 'text' '3' )
( schema:actionStatus 'status' '4' )
( schema:agent 'assigned to' '5' )
( gen:isRelevantFor 'relevant for' '6' )
( schema:about 'about' '7' )
( rdfs:seeAlso 'more info' '8' )
}
graph npa:graph {
?np npa:hasValidSignatureForPublicKeyHash ?pubkey ; np:hasAssertion ?a ; dct:created ?d .
filter not exists { ?npi npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
}
graph ?a { ?_suggestion_iri ?property ?value0 . }
filter(!(?property = rdf:type && (?value0 = nsug:Nanosuggestion || ?value0 = schema:Statement)))
filter(?property != schema:actionStatus || not exists {
graph npa:graph {
?np2 npa:hasValidSignatureForPublicKeyHash ?pk2 ; np:hasAssertion ?a2 ; dct:created ?d2 .
filter not exists { ?np2i npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pk2 . }
filter(?d2 > ?d)
}
graph ?a2 { ?_suggestion_iri schema:actionStatus ?other . }
})
optional { ?value0 rdfs:label ?vl . filter(lang(?vl) = '') }
optional { ?value0 foaf:name ?vn }
bind(if(?value0 = schema:PotentialActionStatus, 'open',
if(?value0 = schema:ActiveActionStatus, 'in progress',
if(?value0 = schema:CompletedActionStatus, 'done',
if(?value0 = schema:FailedActionStatus, 'rejected',
coalesce(?vl, ?vn, str(?value0)))))) as ?vshown)
}
group by ?field_noheader
order by ?s
""" .
}
sub:provenance {
sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 .
}
sub:pubinfo {
orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" .
this: dct:created "2026-08-26T13:56:45Z"^^xsd:dateTime;
dct:creator orcid:0000-0002-1267-0234;
dct:license <https://creativecommons.org/licenses/by/4.0/>;
npx:embeds sub:get-nanosuggestion-details;
npx:supersedes <https://w3id.org/np/RAWAyENgdNYPEqXOMoa3WwOL2OOowiMskh1vqCkXfPo1g>;
rdfs:label "Get the details of a nanosuggestion";
nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw>,
<https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw>, <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>;
nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .
sub:sig npx:hasAlgorithm "RSA";
npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
npx:hasSignature "kWvvNX94S49Z5aoUp5M4Ez2dfAdFQpqM1d2CEplZzrmWhPoup/gaKdQiyApDcoVZm2s31FdRgevH1ejPJB41KQs8z1qB1udQxEW2lw1WULEgXiExuhG1gP6AULXombHZSGpGdya6Gu+T9y46bXNA/2tz9FeqxM7E115JpWyAW9c=";
npx:hasSignatureTarget this:;
npx:signedBy orcid:0000-0002-1267-0234 .
}