https://w3id.org/np/RAxbzOjj7pF5ltM_Khyf4ZgGmmi_oszSLlCbeabDWe50o
.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt
@prefix this: <https://w3id.org/np/RAxbzOjj7pF5ltM_Khyf4ZgGmmi_oszSLlCbeabDWe50o> . @prefix sub: <https://w3id.org/np/RAxbzOjj7pF5ltM_Khyf4ZgGmmi_oszSLlCbeabDWe50o/> . @prefix np: <http://www.nanopub.org/nschema#> . @prefix dct: <http://purl.org/dc/terms/> . @prefix nt: <https://w3id.org/np/o/ntemplate/> . @prefix npx: <http://purl.org/nanopub/x/> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix orcid: <https://orcid.org/> . @prefix ns1: <http://purl.org/np/> . @prefix prov: <http://www.w3.org/ns/prov#> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . 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 <https://w3id.org/kpxl/grlc/grlc-query>; 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 <http://www.apache.org/licenses/LICENSE-2.0>; rdfs:label "Get monthly active organic user count"; <https://w3id.org/kpxl/grlc/endpoint> <https://w3id.org/np/l/nanopub-query-1.1/repo/full>; <https://w3id.org/kpxl/grlc/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 ?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-25T16:51:31.022Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license <https://creativecommons.org/licenses/by/4.0/>; npx:embeds sub:get-quarterly-active-organic-user-count; npx:wasCreatedAt <https://nanodash.knowledgepixels.com/>; nt:wasCreatedFromProvenanceTemplate ns1:RANwQa4ICWS5SOjw7gp99nBpXBasapwtZF1fIM3H2gYTM; nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw>, <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>; nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB"; npx:hasSignature "J3jvRDfNbE9lwLrke6rZobHvMyKsSxwRAsStTgTePkMrI/Ozm9NMikvQWaVJAxzVHroXmRtNOUXc4uUCL0mz3if8evx8/BbTC4dLXYDOELSATm0/iIpT9hAYVAnNrNSb3Ax4duqj4ZB+qXT8IgVLSCfkX10lmPNm1llYTXnX1xs="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }