Matches in Nanopublications for { <https://w3id.org/np/RA60pDSziSc7Xptdou6TeT4ZvbSunEi34zvNtaWIugT2Q/get-weekly-active-user-count> ?p ?o ?g. }
Showing items 1 to 6 of
6
with 100 items per page.
- get-weekly-active-user-count type grlc-query assertion.
- get-weekly-active-user-count label "Get weekly active user count" assertion.
- get-weekly-active-user-count description "Returns the number of active users per (approximate) week." assertion.
- get-weekly-active-user-count sparql "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 prov: <http://www.w3.org/ns/prov#> prefix foaf: <http://xmlns.com/foaf/0.1/> select ?approxweek (min(?date) as ?firstday) (count(distinct ?userid) as ?usercount) where { { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np dct:creator ?userid . ?np dct:created ?date . } } union { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np np:hasAssertion ?assertion . ?np np:hasProvenance ?prov . ?np dct:created ?date . } graph ?prov { ?assertion prov:wasAttributedTo ?userid . } } filter not exists { graph npa:graph { ?np npa:hasSubIri ?userid . } } bind(floor((year(?date)*365 + month(?date)*365/12 + day(?date)) / 7) as ?approxweek) } group by ?approxweek order by desc(?approxweek)" assertion.
- get-weekly-active-user-count endpoint full assertion.
- get-weekly-active-user-count license LICENSE-2.0 assertion.