Status: 
| part | subject | predicate | object | published by | date | |
|---|---|---|---|---|---|---|
|
Assertion
|
|
|||||
|
Assertion
|
Get read papers by user
|
|
||||
|
Assertion
|
|
|||||
|
Assertion
|
This query returns the read papers (and comments if applicable) for a given user.
|
|
||||
|
Assertion
|
|
|||||
|
Assertion
|
prefix pc: <http://purl.org/petapico/o/paperclub#>
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/>
select ?paper ?comment ?np ?date where {
graph npa:graph {
?np npx:hasNanopubType pc:hasRead .
?np npa:hasValidSignatureForPublicKeyHash ?pubkey .
filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
?np dct:created ?date .
?np npx:signedBy ?_user_iri .
?np np:hasAssertion ?a .
}
graph ?a {
?_user_iri pc:hasRead ?paper .
optional { ?paper rdfs:comment ?comment . }
}
} order by desc(?date)
|
|
||||
|
PublicationInfo
|
|