@prefix this: . @prefix sub: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo; a np:Nanopublication . } sub:assertion { sub:get-active-user-count-in-time-period dct:description "This query returns the number of active users, separated by whether they are an ORCID or not, for the given time period (start and end date)."; dct:license ; a ; rdfs:label "Get active user counts in time period"; ; """prefix rdfs: prefix np: prefix npa: prefix npx: prefix xsd: prefix dct: prefix prov: prefix foaf: select (count(distinct ?userid) as ?userCount) ?isOrcid where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np npx:signedBy ?userid . ?np dct:created ?date . } filter not exists { graph npa:graph { ?np npa:hasSubIri ?userid . } } bind(substr(str(?date), 1, 10) as ?dateStr) filter(?dateStr >= ?_startDate) filter(?dateStr <= ?_endDate) bind(strstarts(str(?userid), \"https://orcid.org/\") as ?isOrcid) } group by ?isOrcid order by ?isOrcid""" . } 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 "2026-03-19T09:28:23.419Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-active-user-count-in-time-period; npx:supersedes ; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB"; npx:hasSignature "IWc8xDSCvt3w3XojpHko9eAZJ4V3ODxWVYZ6SbmNIjjn1ndEqG7Wo0wZXtpICnqSLnWETixwSnx5fAUmIOim/2Zc2aDaOhLby3OLZ8Sx7HAKQX413XM1BkAc99ZD03kCmcXvQVg9yChGooHsgPFXq/yz5qL2KjiZUP/tND91BbM="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }