@prefix this: . @prefix sub: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix ns1: . @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-recommended-fsrs-cca a ; dct:description "Returns the FAIR Supporting Resources (FSRs) that are recommended by at least one FAIR Implementation Community (fip:recommended-by) from the Climate Change Adaptation domain, with their FSR types (from the FIP Ontology typology), the recommending communities, and a checkmark when the latest metadata nanopublication of the FSR is curated by the GO FAIR Foundation (npx:qualifies signed by a curator from the GFF curators list, qualifier ROR 056j50v04 or one of the gofairfoundation.org IRIs). Disapproved and invalidated nanopublications are excluded."; dct:license ; rdfs:label "Get recommended FSRs for CCA"; ; """prefix rdf: prefix rdfs: prefix np: prefix npa: prefix npx: prefix xsd: prefix dct: prefix owl: prefix foaf: prefix prov: prefix skos: prefix schema: prefix gen: prefix fip: prefix tpff: prefix search: select ?fsr (min(?fsr_label) as ?fsr_label) (group_concat(distinct str(?type); separator=\" \") as ?types_multi_iri) (group_concat(distinct ?type_label; separator=\"\\n\") as ?types_label_multi) (group_concat(distinct str(?community); separator=\" \") as ?recommended_by_multi_iri) (group_concat(distinct ?community_label; separator=\"\\n\") as ?recommended_by_label_multi) (max(?curated_x) as ?curated) (min(?np) as ?np) (\"^\" as ?np_label) where { { select ?curators_a where { graph npa:graph { npa:hasValidSignatureForPublicKey ?curators_pk . ?curators_np npa:hasValidSignatureForPublicKey ?curators_pk ; np:hasAssertion ?curators_a . filter not exists { ?curators_x npx:invalidates ?curators_np ; npa:hasValidSignatureForPublicKey ?curators_pk . } } graph npa:networkGraph { ?curators_np (npx:supersedes)* . filter not exists { ?curators_y npx:supersedes ?curators_np } } } } # Require a valid recommendation by the FAIR2Adapt community graph npa:graph { ?f2a_rnp npx:hasNanopubType fip:recommended-by ; npa:hasValidSignatureForPublicKey ?f2a_rpk ; np:hasAssertion ?f2a_ra . filter not exists { ?f2a_rx npx:invalidates ?f2a_rnp ; npa:hasValidSignatureForPublicKey ?f2a_rpk . } } graph ?f2a_ra { ?fsr fip:recommended-by . } # Fetch all valid community recommendations for the matching ?fsr graph npa:graph { ?rnp npx:hasNanopubType fip:recommended-by ; npa:hasValidSignatureForPublicKey ?rpk ; np:hasAssertion ?ra . filter not exists { ?rx npx:invalidates ?rnp ; npa:hasValidSignatureForPublicKey ?rpk . } } graph ?ra { ?fsr fip:recommended-by ?community . } graph npa:graph { ?np npx:introduces|npx:describes ?fsr ; rdfs:label ?fsr_label ; npa:hasValidSignatureForPublicKey ?pk ; dct:created ?date ; np:hasAssertion ?a . ?np npx:hasNanopubType ?fsr_type . values ?fsr_type { fip:FAIR-Enabling-Resource fip:FAIR-Supporting-Resource } filter(str(?date) > \"2022\") filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } filter not exists { ?x npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pk . } filter not exists { ?np2 npx:introduces|npx:describes ?fsr ; npa:hasValidSignatureForPublicKey ?pk2 ; dct:created ?date2 . ?np2 npx:hasNanopubType ?fsr_type2 . values ?fsr_type2 { fip:FAIR-Enabling-Resource fip:FAIR-Supporting-Resource } filter not exists { ?np2 npx:hasNanopubType npx:ExampleNanopub . } filter not exists { ?x2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKey ?pk2 . } filter(?date2 > ?date) } } filter not exists { graph ?da { ?disapprover npx:disapprovesOf ?np . } graph npa:graph { ?dnp np:hasAssertion ?da ; npa:hasValidSignatureForPublicKey ?dpk . filter not exists { ?dx npx:invalidates ?dnp ; npa:hasValidSignatureForPublicKey ?dpk . } } graph ?curators_a { ?dk npx:hasPublicKey ?dpk . } } optional { graph npa:graph { ?np npx:hasNanopubType ?type . } { select distinct ?type (min(?tl) as ?type_label) where { ?type rdfs:subClassOf+ fip:FAIR-Supporting-Resource . filter(strstarts(str(?type), \"https://w3id.org/fair/fip/terms/\")) filter(?type not in (fip:FAIR-Enabling-Resource, fip:FAIR-Supporting-Resource, fip:Available-FAIR-Enabling-Resource, fip:Available-FAIR-Supporting-Resource, fip:FAIR-Enabling-Resource-to-be-Developed, fip:FAIR-Supporting-Resource-to-be-Developed)) graph npa:graph { ?tnp npx:introduces ?type ; np:hasAssertion ?ta . } graph ?ta { ?type rdfs:label ?tl . } } group by ?type } } optional { graph npa:graph { ?cnp npx:hasNanopubType fip:FAIR-Implementation-Community ; npx:introduces|npx:describes ?community ; np:hasAssertion ?ca ; npa:hasValidSignatureForPublicKey ?cpk . filter not exists { ?cx npx:invalidates ?cnp ; npa:hasValidSignatureForPublicKey ?cpk . } } graph ?ca { ?community rdfs:label ?community_label . } } optional { graph ?qa { ?qualifier npx:qualifies ?np . } values ?qualifier { } graph npa:graph { ?qnp np:hasAssertion ?qa ; npa:hasValidSignatureForPublicKey ?qpk . filter not exists { ?qx npx:invalidates ?qnp ; npa:hasValidSignatureForPublicKey ?qpk . } } graph ?curators_a { ?qk npx:hasPublicKey ?qpk . } } bind(if(bound(?qnp), \"✓\", \"\") as ?curated_x) } group by ?fsr order by ?fsr_label""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . orcid:0000-0003-2195-3997 foaf:name "Barbara Magagna" . this: dct:created "2026-11-21T10:28:36.021Z"^^xsd:dateTime; dct:creator orcid:0000-0003-2195-3997; dct:license ; npx:embeds sub:get-recommended-fsrs-cca; npx:wasCreatedAt ; prov:wasDerivedFrom ns1:RAntWwY-oLQ5QTSviLZrZ6GD6dniz-_skWtO-4_8031zU, ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCM0tu3I/KK6A/qPha/6pfngQZ4LBQpLnKAcIUuZLnSEb0epJ2IoY3zh/4N42us/6LpCHgZZZtSOTm5/KVo+OTDIqo294PpEZAO70u5DcMcGMC5OufzxGKs3Dwdo6XqPiDHxXuiaKCTO7/ABWAi7CtFoMrqJAHfeyqe82dAiH2IiwIDAQAB"; npx:hasSignature "fu2+CIJbThKelF9DB7uw8qgsJAUfQlQOz+/7A1HO/dBHo9vxPEZBimDpxlYlGIWZEQcvHFFHFPXk6TCl5eQsSOtpAhsahm6jUQ7eyjkd7Rv4iYsbowu9OGHEVpaEB8cqTXJ+xQXqVjJvPeXmtLjnrcPXz2InsGnhKpDp1p6Dcyw="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0003-2195-3997 . }