@prefix this: . @prefix sub: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix ns1: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-quarterly-active-organic-user-count a ; dct:description "Returns the number of active users per quarter since 2022. Two sequences of non-organic acquisition (as part of university course) are filtered out."; dct:license ; rdfs:label "Get quarterly active organic user count"; ; """prefix rdfs: prefix np: prefix npa: prefix npx: prefix xsd: prefix dct: prefix prov: prefix foaf: select ?quarter (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 . } } filter(str(?date) > \"2022\") filter(str(?date) < \"2023-10-03\" || str(?date) > \"2023-10-12\") filter(str(?date) < \"2024-09-27\" || str(?date) > \"2024-10-07\") bind(substr(str(?date), 0, 8) as ?month) bind(replace(?month, \"-0[1-3]$\", \"-Q1\") as ?quarter_temp1) bind(replace(?quarter_temp1, \"-0[4-6]$\", \"-Q2\") as ?quarter_temp2) bind(replace(?quarter_temp2, \"-0[7-9]$\", \"-Q3\") as ?quarter_temp3) bind(replace(?quarter_temp3, \"-1[0-9]$\", \"-Q4\") as ?quarter) } group by ?quarter order by desc(?quarter)""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2025-07-27T09:29:37.147Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-quarterly-active-organic-user-count; npx:supersedes ; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ns1:RANwQa4ICWS5SOjw7gp99nBpXBasapwtZF1fIM3H2gYTM; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB"; npx:hasSignature "N36DMG2zcI4/kOy66yC0PlwWyZKDmAFHE9ej9jo2aqrQbUWqjbzQ2rhnToq4uGOo3d7lfE+75312HYHKQmAr5opx4YmkJZ4JefPpqE/NwLYWAuaKlceUlscULy+axNOrwiRLuccRl6NvW+o0a7W500KGbajMEjSW9IjLkj9Ex68="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }