@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-idea-info a grlc:grlc-query; dct:description "Key/value rows describing one idea (an instance of the Idea class published with the \"Suggesting an idea\" template) for its part page: title, description, what it is suggested for, further links, who suggested it and when, and the number of up-votes. The descriptive rows come from the newest valid (not invalidated, not superseded) nanopublication introducing the idea. Up-votes are schema:VoteAction nanopublications with the idea as schema:object, counted as distinct valid signing keys, so each person counts once."; dct:license ; rdfs:label "Get the basic info of an idea"; grlc:endpoint ; grlc:sparql """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix gen: prefix schema: prefix foaf: prefix idea: select ?Property_noheader ?Value_noheader (min(?vl) as ?Value_label) where { { select ?np ?a ?pi ?created where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pk ; np:hasAssertion ?a ; np:hasPublicationInfo ?pi ; npx:introduces ?_idea_iri ; dct:created ?created . filter not exists { ?inv npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pk . } filter not exists { ?newer npx:supersedes ?np . } } graph ?a { ?_idea_iri a idea:Idea . } } order by desc(?created) limit 1 } { values (?property ?Property_noheader ?ord) { ( rdfs:label 'Title:' '1' ) ( dct:description 'Description:' '2' ) ( gen:isRelevantFor 'Suggested for:' '3' ) ( rdfs:seeAlso 'More info:' '4' ) } graph ?a { ?_idea_iri ?property ?Value_noheader . } optional { graph ?lg { ?Value_noheader rdfs:label ?tl . } filter(isIRI(?Value_noheader)) } bind(if(isIRI(?Value_noheader), coalesce(str(?tl), replace(str(?Value_noheader), '^.*/', '')), '') as ?vl) } union { graph npa:graph { ?np npx:introduces ?_idea_iri . } graph ?pi { ?np dct:creator ?Value_noheader . } optional { graph ?pi { ?Value_noheader foaf:name ?cn . } } bind(coalesce(str(?cn), replace(str(?Value_noheader), '^.*/', '')) as ?vl) bind('Suggested by:' as ?Property_noheader) bind('5' as ?ord) } union { graph npa:graph { ?np npx:introduces ?_idea_iri ; dct:created ?c2 . } bind(str(?c2) as ?Value_noheader) bind('' as ?vl) bind('Suggested on:' as ?Property_noheader) bind('6' as ?ord) } union { { select (count(distinct ?vpk) as ?nv) where { graph ?va { ?vote a schema:VoteAction ; schema:object ?_idea_iri . } graph npa:graph { ?vnp np:hasAssertion ?va ; npa:hasValidSignatureForPublicKeyHash ?vpk . filter not exists { ?vinv npx:invalidates ?vnp ; npa:hasValidSignatureForPublicKeyHash ?vpk . } } } } bind(str(?nv) as ?Value_noheader) bind('' as ?vl) bind('Up-votes:' as ?Property_noheader) bind('7' as ?ord) } } group by ?ord ?Property_noheader ?Value_noheader order by ?ord ?Value_noheader""" . } 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-09-15T09:34:19Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-idea-info; npx:supersedes ; rdfs:label "Get the basic info of an idea"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "bUAr7bF74dOrIas68dvpRLQD6p9clBKryztEupOeQ/kE8jhXn0OT6AfRvmxRBTXwAXlkLITU+ECIlsxZ9qE0s072jMtJC1uCbdjg15ozHx8YNY9sm2wAlJNjK66ATp/lparnn3WML62NcbpH9oFPRSJf2B0d/jUqoY70I+6RNgQ="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }