Matches in Nanopublications for { <https://w3id.org/np/RA-ufOL8E0tWoT-aB5RziLElbJx2JEIvo7mgP-v2VuB18/get-yearly-active-user-count> ?p ?o ?g. }
Showing items 1 to 6 of
6
with 100 items per page.
- get-yearly-active-user-count type grlc-query assertion.
- get-yearly-active-user-count label "Get yearly active user count" assertion.
- get-yearly-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 ?year (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(substr(str(?date), 0, 5) as ?year) } group by ?year order by desc(?year)" assertion.
- get-yearly-active-user-count endpoint full assertion.
- get-yearly-active-user-count description "Returns the number of active users per year." assertion.
- get-yearly-active-user-count license LICENSE-2.0 assertion.