[ { "@id": "https://w3id.org/np/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8/get-faq-suggestions", "http://purl.org/dc/terms/description": [ { "@value": "This query returns FAQ answers or edits contributed by users who are NOT members of the space maintaining the entity: the inverse of the member-gated FAQ views. For each entry only the single latest non-member nanopub is returned, and only when it is newer (by timestamp) than the latest member version of that entry — i.e. the contribution that would win most-recent-wins if its author were a member (a pending suggestion). The member public-key hashes are resolved server-side from the spaces repo (/repo/spaces). override_target holds the suggestion nanopub itself, so a member can override it to accept the suggestion. Placeholder stubs (gen:UnansweredQuestion) are excluded." } ], "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 non-member FAQ suggestions for an entity" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/type/88a3271eb4f952262a674b6765824830ecb6c5a9ae10f1fd8caa4fc21cdccad7" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix rdf: \nprefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix schema: \nprefix gen: \nprefix foaf: \n\nselect ?question ?content ?suggester (sample(?sname) as ?suggester_label)\n (?np as ?override_target) ?np (\"^\" as ?np_label) where {\n service {\n select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n values ?_resource_multi_iri {}\n graph ?stateG {\n ?_resource_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 ?mpk .\n }\n }\n }\n graph npa:graph {\n ?np npa:hasValidSignatureForPublicKeyHash ?pubkey .\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\n filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . }\n ?np dct:created ?date .\n ?np np:hasAssertion ?a .\n optional { ?np npx:signedBy ?suggester . }\n }\n filter(!contains(?memberPubkeys, ?pubkey))\n graph ?a {\n ?faq rdf:type schema:Question .\n ?faq rdfs:label ?question .\n ?faq gen:hasContent ?content .\n values ?_resource_multi_iri {}\n ?faq dct:isPartOf ?_resource_multi_iri .\n filter not exists { ?faq rdf:type gen:UnansweredQuestion }\n }\n filter not exists {\n graph npa:graph {\n ?mnp npa:hasValidSignatureForPublicKeyHash ?mpk2 .\n filter not exists { ?mx npx:invalidates ?mnp ; npa:hasValidSignatureForPublicKeyHash ?mpk2 . }\n ?mnp dct:created ?mdate .\n ?mnp np:hasAssertion ?ma .\n }\n filter(contains(?memberPubkeys, ?mpk2))\n graph ?ma { ?faq rdf:type schema:Question . }\n filter(?mdate >= ?date)\n }\n filter not exists {\n graph npa:graph {\n ?np2 npa:hasValidSignatureForPublicKeyHash ?pubkey2 .\n filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pubkey2 . }\n ?np2 dct:created ?date2 .\n ?np2 np:hasAssertion ?a2 .\n }\n filter(!contains(?memberPubkeys, ?pubkey2))\n graph ?a2 {\n ?faq rdf:type schema:Question .\n filter not exists { ?faq rdf:type gen:UnansweredQuestion }\n }\n filter(?date2 > ?date || (?date2 = ?date && str(?np2) > str(?np)))\n }\n optional {\n service {\n select ?suggester ?sname where {\n graph npa:graph { npa:thisRepo npa:hasCurrentTrustState ?tg . }\n graph ?tg { ?suggester foaf:name ?sname . }\n }\n }\n }\n}\ngroup by ?question ?content ?suggester ?np\norder by ?question" } ] } ] }, { "@id": "https://w3id.org/np/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8/Head", "@graph": [ { "@id": "https://w3id.org/np/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8/pubinfo", "@graph": [ { "@id": "https://w3id.org/np/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8", "http://purl.org/dc/terms/created": [ { "@value": "2026-07-16T13:54:29Z", "@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/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8/get-faq-suggestions" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get non-member FAQ suggestions for an entity" } ], "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/RAMEgudZsQ1bh1fZhfYnkthqH6YSXpghSE_DEN1I-6eAI" }, { "@id": "https://w3id.org/np/RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ" }, { "@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/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8/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": "G0OGTzSMBXLV3ZFqmHkMM0ikfWgD5kXWg4YOet90quQUMcgn0G95RCZYK2F9qBA/9zXNTofPLDKasBaoHHjUDEFkwKcb33Z3ynlDrFn0Wi4NeOk8Vb8R+TYe9g4CC+Kti84q9pRlzYlmMOQyCErPLobu1zXBdYLZCMfhE8YbO4c=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAaae9rYCWn6VPq5qG5cIyiw_hiAKAQ435rA7JuAnnnV8" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] } ]