Status: 
| part | subject | predicate | object | published by | date | |
|---|---|---|---|---|---|---|
|
Assertion
|
|
|||||
|
Assertion
|
Get weekly nanopub count
|
|
||||
|
Assertion
|
|
|||||
|
Assertion
|
Returns the number of nanopublications published per week (Mon-Sun).
|
|
||||
|
Assertion
|
|
|||||
|
Assertion
|
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/>
select ?week (substr(str(min(?date)), 0, 11) as ?firstday) (count(?np) as ?nanopubcount) where {
graph npa:graph {
?np npa:hasValidSignatureForPublicKey ?pubkey .
?np dct:created ?date .
}
bind(if(month(?date) <= 2, year(?date) - 1, year(?date)) as ?y)
bind(if(month(?date) <= 2, month(?date) + 9, month(?date) - 3) as ?m)
bind(365*?y + xsd:integer(?y/4) - xsd:integer(?y/100) + xsd:integer(?y/400) + xsd:integer((153*?m + 2)/5) + day(?date) as ?daynum)
bind(?daynum + 1 - xsd:integer((?daynum + 1) / 7) * 7 as ?dow)
bind(xsd:integer((?daynum - ?dow) / 7) as ?week)
}
group by ?week
order by desc(?week)
|
|
||||
|
PublicationInfo
|
|
|||||
|
Assertion
|
|