@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: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-users-with-profile a ; dct:description "This query returns all users who have set up their profile by declaring at least one view to be displayed on their profile page, sorted by date of first view display publication (most recent first)."; dct:license ; rdfs:label "Get users with profile"; ; """prefix np: prefix npx: prefix npa: prefix dct: prefix gen: prefix foaf: select ?user (sample(?name) as ?user_label) (min(?date) as ?date) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . } graph ?a { ?display a gen:ViewDisplay . ?display gen:isDisplayFor ?user . } graph npa:graph { ?intronp npa:hasValidSignatureForPublicKeyHash ?intropubkey . filter not exists { ?intronpx npx:invalidates ?intronp ; npa:hasValidSignatureForPublicKeyHash ?intropubkey . } ?intronp np:hasAssertion ?introa . } graph ?introa { ?keydecl npx:declaredBy ?user . optional { ?user foaf:name ?name . } } } group by ?user order by desc(?date)""" . } 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-30T14:23:21Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-users-with-profile; rdfs:label "Get users with profile"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "bYmBDoF2yN4bYvFZ4cqnWvOB3Z6KC+yrNdsmu+pW01HNlI5BxqAvMoP4e8woeRbQRD8MPeKb3GN0L6mCiUmKXULwfP/2yuxDSSVkxnpIgfbH/uZ2x1trV/D/AuTs4AusUD4Es1xHWe4UHlRfKBwgYwY4i0JQaJ34D30EsA5losQ="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }