Status: 
| part | subject | predicate | object | published by | date | |
|---|---|---|---|---|---|---|
|
Assertion
|
|
|||||
|
Assertion
|
Get unanswered FAQ entries of an entity
|
|
||||
|
Assertion
|
|
|||||
|
Assertion
|
This query returns the unanswered FAQ entries of an entity: questions whose most recent declaration is typed as gen:UnansweredQuestion (i.e. still carrying a placeholder instead of a real answer). Returns the question text as a plain label.
|
|
||||
|
Assertion
|
|
|||||
|
Assertion
|
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 ?question ?np ("^" as ?np_label) where {
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 .
}
graph ?a {
?faq rdf:type schema:Question .
?faq rdf:type gen:UnansweredQuestion .
?faq rdfs:label ?question .
values ?_resource_multi_iri {}
?faq dct:isPartOf ?_resource_multi_iri .
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)
}
graph ?a2 {
?faq rdf:type schema:Question .
}
}
}
order by ?position ?question
|
|
||||
|
PublicationInfo
|
|
|||||
|
Assertion
|
|