-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlatest_nanopubs.rq
36 lines (34 loc) · 1.62 KB
/
latest_nanopubs.rq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#+ endpoint: https://query.np.trustyuri.net/repo/type/d51b6cb0d1977fefb3a9c1e30395db919c31e8a165cbc2b13785ab79d1e8c4fc
# (type: https://www.lorentzcenter.nl/the-road-to-fair-and-equitable-science.html)
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dct: <http://purl.org/dc/terms/>
prefix foaf: <http://xmlns.com/foaf/0.1/>
select ?np ?nplabel ?userid ?username ?date where {
graph npa:graph {
?np rdfs:label ?nplabel .
?np npa:hasValidSignatureForPublicKey ?pubkey .
?np dct:created ?date .
?np dct:creator ?__userid_iri .
filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . }
filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . }
filter not exists { ?np npx:hasNanopubType npx:retracts . }
}
optional { service <https://query.np.trustyuri.net/repo/type/77757cabf6184c51c20b8b0fe5dc5e1365b7f628448335184ad54319a0affdfc> { # (type: http://purl.org/nanopub/x/declaredBy)
graph npa:graph {
?i_np npa:hasValidSignatureForPublicKey ?pubkey ;
np:hasAssertion ?i_assertion .
filter not exists { ?i_npx npx:invalidates ?i_np ; npa:hasValidSignatureForPublicKey ?pubkey . }
filter not exists { ?i_np npx:hasNanopubType npx:ExampleNanopub . }
filter not exists { ?i_np npx:hasNanopubType npx:retracts . }
}
graph ?i_assertion {
?__userid_iri foaf:name ?username .
}
} }
bind(?__userid_iri as ?userid)
}
order by desc(?date)