@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-fer-pref-ids a ; dct:description "This query returns the preferred IDs of FAIR-Enabling Resources (FERs), including the references to previous nanopublications with older term definitions."; dct:license ; rdfs:label "Get FER preferred IDs"; ; """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix fip: select distinct ?resource_pref_id ?res ?reslabel ?res_np_date ?resourcetype ?res_np ?np_pre ?pubkey_hash ?np_pre_pubkey_hash where { graph npa:graph { ?res_np npa:hasValidSignatureForPublicKeyHash ?pubkey_hash . filter not exists { ?npx npx:invalidates ?res_np ; npa:hasValidSignatureForPublicKeyHash ?pubkey_hash . } ?res_np npx:hasNanopubType fip:FAIR-Enabling-Resource . ?res_np (npx:introduces|npx:describes) ?resource_pref_id . bind(replace(str(?resource_pref_id), \"^.*?(#|/)([^/#]*/?[^/#]*)/?$\", \"$2\") as ?res) ?res_np dct:created ?res_np_date . ?res_np rdfs:label ?reslabel . bind( exists { ?res_np npx:hasNanopubType fip:Available-FAIR-Enabling-Resource } as ?available_resource ) bind( exists { ?res_np npx:hasNanopubType fip:FAIR-Enabling-Resource-to-be-Developed } as ?tobedeveloped_resource ) bind(if(?available_resource, fip:Available-FAIR-Enabling-Resource, if(?tobedeveloped_resource, fip:FAIR-Enabling-Resource-to-be-Developed, fip:FAIR-Enabling-Resource ) ) as ?resourcetype ) } { select * { graph npa:networkGraph { ?res_np npx:supersedes* ?np_pre . } } } bind(concat(str(?np_pre), \" \", ?pubkey_hash) as ?np_pre_pubkey_hash) } order by ?resource_pref_id ?res_np""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB"; npx:hasSignature "XrI9M1H3RdSGpJ72/WIVokngozq2AJ4xboT19D/Grn6+v3nhv0yefe3xQ9NnlHaqOJWi6SG1HkOUhUDEpSZPKd5zZVjW3YV/hd9LWy0dUNwBpObUdpSynMbq05elEjNMIN2GwPbm369xTP3KBAFC+OOkvtbkyEJrynFn/OLBiQk="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . this: dct:created "2025-03-10T13:10:48.824Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:introduces sub:get-fer-pref-ids; npx:supersedes ; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . }