@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-users-last-6m dct:description "This query returns the user IDs of all active users of the last 6 months."; dct:license ; a ; rdfs:label "Get active users of last 6 months"; ; """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix prov: select distinct ?user where { { graph npa:graph { bind(now() - \"P6M\"^^xsd:duration as ?sixmonthsago) ?np dct:creator ?user . ?np dct:created ?date . filter(?date > ?sixmonthsago) } } union { graph npa:graph { bind(now() - \"P6M\"^^xsd:duration as ?sixmonthsago) ?np np:hasAssertion ?assertion . ?np np:hasProvenance ?prov . ?np dct:created ?date . filter(?date > ?sixmonthsago) } graph ?prov { ?assertion prov:wasAttributedTo ?user . } } filter not exists { graph npa:graph { ?np npa:hasSubIri ?user . } } } order by ?user""" . } 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-09-01T07:50:01.491Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-active-users-last-6m; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB"; npx:hasSignature "gqKbtfoOW0l8zK2PfCl5yk11Nx1WDt4vOArPdS1ClMG/8hYL32rNwtSOlNe20/YNlFfne7RmqOKhj+haovlW6gpnsYfH/x/7qdzRiTgReVXuqyL4zz5NJRhC+OjF8ywczb6iXQju3wrPI2gn6mUL1jRUsVENrSPcOkCwC4aak8Y="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }