[ { "@graph" : [ { "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE/pubinfo" } ] } ], "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE/Head" }, { "@graph" : [ { "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE/get-3pff-events-for-user", "@type" : [ "https://w3id.org/kpxl/grlc/grlc-query" ], "http://purl.org/dc/terms/description" : [ { "@value" : "Returns all 3PFF events for a given user, including the role they had in each event." } ], "http://purl.org/dc/terms/license" : [ { "@id" : "http://www.apache.org/licenses/LICENSE-2.0" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "Get 3PFF events for user" } ], "https://w3id.org/kpxl/grlc/endpoint" : [ { "@id" : "https://w3id.org/np/l/nanopub-query-1.1/repo/full" } ], "https://w3id.org/kpxl/grlc/sparql" : [ { "@value" : "prefix rdfs: \nprefix np: \nprefix npa: \nprefix npx: \nprefix dct: \nprefix tpff: \nprefix schema: \n\nselect ?event ?event_label (sample(?ev_name) as ?event_name) (sample(?ev_date) as ?event_date) ?roles_multi_iri ?roles_label_multi ?nps_multi_iri ?nps_label_multi where {\n {\n select ?event (replace(str(?event), \"^.*/\", \"\") as ?event_label) (group_concat(str(?role); separator=\" \") as ?roles_multi_iri) (group_concat(?role_label; separator=\"\\n\") as ?roles_label_multi) (group_concat(str(?latest_np); separator=\" \") as ?nps_multi_iri) (group_concat(\"^\"; separator=\"\\n\") as ?nps_label_multi) where {\n {\n select ?event ?role ?role_label (sample(?np) as ?latest_np) where {\n values (?role ?role_label) {\n (tpff:participatedAsParticipantIn \"Participant\")\n (tpff:participatedAsFacilitatorIn \"Facilitator\")\n (tpff:participatedAsTrainerIn \"Trainer\")\n (tpff:participatedAsFacilitatorAssistantIn \"Facilitator Assistant\")\n (tpff:participatedAsTrainerAssistantIn \"Trainer Assistant\")\n (tpff:participatedAsImplementerIn \"Implementer\")\n (tpff:participatedAsImplementerAspirantIn \"Implementer Aspirant\")\n }\n graph npa:graph {\n ?np npx:hasNanopubType ?role .\n ?np dct:creator ?_user_iri .\n ?np npa:hasValidSignatureForPublicKeyHash ?pk .\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pk . }\n ?np np:hasAssertion ?a .\n ?np dct:created ?date .\n }\n graph ?a {\n ?_user_iri ?role ?event .\n }\n filter not exists {\n graph npa:graph {\n ?np2 npx:hasNanopubType ?role .\n ?np2 dct:creator ?_user_iri .\n ?np2 npa:hasValidSignatureForPublicKeyHash ?pk2 .\n filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pk2 . }\n ?np2 np:hasAssertion ?a2 .\n ?np2 dct:created ?date2 .\n filter(?date2 > ?date)\n }\n graph ?a2 {\n ?_user_iri ?role ?event .\n }\n }\n }\n group by ?event ?role ?role_label\n }\n }\n group by ?event\n }\n graph npa:graph {\n ?enp npx:introduces ?event .\n ?enp npa:hasValidSignatureForPublicKeyHash ?epk .\n filter not exists { ?enpx npx:invalidates ?enp ; npa:hasValidSignatureForPublicKeyHash ?epk . }\n ?enp np:hasAssertion ?ea .\n }\n graph ?ea {\n ?event a tpff:3PFF-event .\n ?event rdfs:label ?ename .\n optional { ?event dct:date ?dateDct . }\n optional { ?event schema:startDate ?dateSchema . }\n }\n bind(coalesce(?dateDct, strBefore(str(?dateSchema), \"T\")) as ?ev_date)\n bind(replace(?ename, \"^[^|]*\\\\| ?\", \"\") as ?ev_name)\n}\ngroup by ?event ?event_label ?roles_multi_iri ?roles_label_multi ?nps_multi_iri ?nps_label_multi\norder by desc(sample(?ev_date))" } ] } ], "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE/assertion" }, { "@graph" : [ { "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE/assertion", "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0002-1267-0234" } ] } ], "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE/provenance" }, { "@graph" : [ { "@id" : "https://orcid.org/0000-0002-1267-0234", "http://xmlns.com/foaf/0.1/name" : [ { "@value" : "Tobias Kuhn" } ] }, { "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE", "http://purl.org/dc/terms/created" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2026-03-26T09:14:21Z" } ], "http://purl.org/dc/terms/creator" : [ { "@id" : "https://orcid.org/0000-0002-1267-0234" } ], "http://purl.org/dc/terms/license" : [ { "@id" : "https://creativecommons.org/licenses/by/4.0/" } ], "http://purl.org/nanopub/x/embeds" : [ { "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE/get-3pff-events-for-user" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "Get 3PFF events for user" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate" : [ { "@id" : "https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate" : [ { "@id" : "https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw" }, { "@id" : "https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate" : [ { "@id" : "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } ] }, { "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE/sig", "http://purl.org/nanopub/x/hasAlgorithm" : [ { "@value" : "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey" : [ { "@value" : "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature" : [ { "@value" : "N479PwI8YKLEEDyN3VK4t8O2xzz6qv4lKUbYd7mAZrjciaV09rJBSWu2vrGPHJs349Saxu9VJncJPncr7pqy16ZeV1+XcCb5a5C5XQDAJ9bl21xV9I+zlw4v0PLlS5/XSvAqYYThRfBMM2iKhZx/NLTDOFQjeyUkfzHN9BhKTdo=" } ], "http://purl.org/nanopub/x/hasSignatureTarget" : [ { "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE" } ], "http://purl.org/nanopub/x/signedBy" : [ { "@id" : "https://orcid.org/0000-0002-1267-0234" } ] } ], "@id" : "https://w3id.org/np/RA4J4IoZuEBRPiNqT-LHuu0U3p5Hwzrw7i-10okl_6uzE/pubinfo" } ]