Get FAQ entries of an entity
type: Nanopublication
has assertion: assertion
has provenance: provenance
has publication info: pubinfo
created: 2026-07-16T06:49:04Z
creator: https://orcid.org/0000-0002-1267-0234
license: https://creativecommons.org/licenses/by/4.0/
embeds: Get FAQ entries of an entity

sig
has algorithm: RSA
signed by: https://orcid.org/0000-0002-1267-0234

Get FAQ entries of an entity
type: grlc-query
description: This query returns the answered FAQ entries (questions and answers) of an entity, including source nanopub and date. Only entries published by an admin, maintainer, or member of the space that maintains the entity are returned; the maintaining space and its validated member public-key hashes are resolved server-side from the spaces repo (/repo/spaces), observers excluded. Entries currently typed as gen:UnansweredQuestion (placeholder stubs) are excluded. When several member-published nanopubs declare the same FAQ entry, only the most recent one is returned.
license: LICENSE-2.0
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 np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix schema: <http://schema.org/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select ?title ?content ?date ?faq (?np as ?override_target) ?np where { service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . } values ?_resource_multi_iri {} graph ?stateG { ?_resource_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?rt . filter(?rt in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . } filter(contains(?memberPubkeys, ?pubkey)) graph ?a { ?faq rdf:type schema:Question . ?faq rdfs:label ?title . ?faq gen:hasContent ?content . values ?_resource_multi_iri {} ?faq dct:isPartOf ?_resource_multi_iri . filter not exists { ?faq rdf:type gen:UnansweredQuestion } optional { ?faq gen:hasPositionString ?position } } filter not exists { graph npa:graph { ?np2 npa:hasValidSignatureForPublicKeyHash ?pubkey2 . filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pubkey2 . } ?np2 dct:created ?date2 . ?np2 np:hasAssertion ?a2 . filter (?date2 > ?date) } filter(contains(?memberPubkeys, ?pubkey2)) graph ?a2 { ?faq rdf:type schema:Question . } } } order by ?position ?title