Matches in Nanopublications for { ?s <https://w3id.org/kpxl/grlc/sparql> ?o ?g. }
- get-fer-pref-ids sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix fip: <https://w3id.org/fair/fip/terms/> select ?resource_pref_id ?reslabel ?res_np_date ?resourcetype ?res_np ?pubkey_hash ?previous_np 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 . ?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* ?previous_np . } } } }" assertion.
- get-fer-pref-ids sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix fip: <https://w3id.org/fair/fip/terms/> select ?resource_pref_id ?res ?reslabel ?res_np_date ?resourcetype ?res_np ?pubkey_hash ?previous 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* ?previous . } } } }" assertion.
- get-fer-pref-ids sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix fip: <https://w3id.org/fair/fip/terms/> select ?resource_pref_id ?res ?reslabel ?res_np_date ?resourcetype ?res_np ?pubkey_hash ?np_pre 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 . } } } }" assertion.
- get-fer-ids sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix fip: <https://w3id.org/fair/fip/terms/> prefix dct: <http://purl.org/dc/terms/> prefix dce: <http://purl.org/dc/elements/1.1/> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix np: <http://www.nanopub.org/nschema#> prefix dcat: <https://www.w3.org/ns/dcat#> select distinct ?resource_id ?np_pre ?pubkey_hash where { graph npa:graph { ?np_pre npa:hasValidSignatureForPublicKeyHash ?pubkey_hash . ?np_pre np:hasAssertion ?res_a . ?np_pre (npx:introduces|npx:describes) ?resource_id . values ?resourcetype { fip:Available-FAIR-Enabling-Resource fip:FAIR-Enabling-Resource-to-be-Developed fip:FAIR-Enabling-Resource } ?np_pre npx:hasNanopubType ?resourcetype . } }" assertion.
- get-fer-pref-ids sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix fip: <https://w3id.org/fair/fip/terms/> select ?resource_pref_id ?res ?reslabel ?res_np_date ?resourcetype ?res_np ?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 . } } } }" assertion.
- get-fer-pref-ids sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix fip: <https://w3id.org/fair/fip/terms/> select ?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) }" assertion.
- get-fer-ids sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix fip: <https://w3id.org/fair/fip/terms/> prefix dct: <http://purl.org/dc/terms/> prefix dce: <http://purl.org/dc/elements/1.1/> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix np: <http://www.nanopub.org/nschema#> prefix dcat: <https://www.w3.org/ns/dcat#> select distinct ?resource_id ?np_pre ?pubkey_hash ?np_pre_pubkey_hash where { graph npa:graph { ?np_pre npa:hasValidSignatureForPublicKeyHash ?pubkey_hash . ?np_pre np:hasAssertion ?res_a . ?np_pre (npx:introduces|npx:describes) ?resource_id . values ?resourcetype { fip:Available-FAIR-Enabling-Resource fip:FAIR-Enabling-Resource-to-be-Developed fip:FAIR-Enabling-Resource } ?np_pre npx:hasNanopubType ?resourcetype . } bind(concat(str(?np_pre), " ", ?pubkey_hash) as ?np_pre_pubkey_hash) }" assertion.
- get-fer-pref-ids sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix fip: <https://w3id.org/fair/fip/terms/> select ?resource_pref_id ?res ?reslabel ?res_np_date ?resourcetype ?res_np ?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) }" assertion.
- get-fer-pref-ids sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix fip: <https://w3id.org/fair/fip/terms/> 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" assertion.
- get-fer-ids sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix fip: <https://w3id.org/fair/fip/terms/> prefix dct: <http://purl.org/dc/terms/> prefix dce: <http://purl.org/dc/elements/1.1/> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix np: <http://www.nanopub.org/nschema#> prefix dcat: <https://www.w3.org/ns/dcat#> select distinct ?resource_id ?np_pre ?pubkey_hash ?np_pre_pubkey_hash where { graph npa:graph { ?np_pre npa:hasValidSignatureForPublicKeyHash ?pubkey_hash . ?np_pre np:hasAssertion ?res_a . ?np_pre (npx:introduces|npx:describes) ?resource_id . values ?resourcetype { fip:Available-FAIR-Enabling-Resource fip:FAIR-Enabling-Resource-to-be-Developed fip:FAIR-Enabling-Resource } ?np_pre npx:hasNanopubType ?resourcetype . } bind(concat(str(?np_pre), " ", ?pubkey_hash) as ?np_pre_pubkey_hash) } order by ?resource_id ?np_pre" assertion.
- get-gff-qualifications sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> select distinct ?res_np ?qualification_np where { values ?qpubkey { "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCtpcftn7kbe6toJbOTDQaCcCssEFSWqt6J4rZ02w+TfY7/eIOgJZYOlpL6G3AzO2RNmVYWRPSlMiykaFuaRuBitvk1GKfGdprfZbvXwmeOxpqCTRBQX9EnFyQyd+Ra/ajfw/UsG8skeu1xnUEpnQbpgbQYc/fvhJNN0UwEc77mOwIDAQAB"^^xsd:string "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDO4xkU+/dGujq1raR66QtRqquMxiJ9hm2uzc2uBj7bCBBRnWhTw7M8f77BqAFHShgxqxYTr2do7/tVmoKeM51ISyttxWrh9ebZRoz5o6Muxt7HyA4sLHAmnixeZ5VJfZzsKAmVN23Y2ZiCqMoXjtcp5jO2lOC0AXaGPftnaA8b9QIDAQAB"^^xsd:string "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCFntPrMZqvg2kVhCNArNnEn37ddXGwZ/0r4C8CS4lDry7C7YkYgng9yb0UMZQUHiTVkR/5A4m/xjE+Vy+AnwcWUeB75SfGZjE5ylI6VeHjTHi9+2hh2PHYIWnkhU4WHl3COEnxSSa/VouvPzZ2BIWLH6fTrq7NNL3RF5hGegGG0QIDAQAB"^^xsd:string } graph npa:graph { ?qualification_np npa:hasValidSignatureForPublicKey ?qpubkey . filter not exists { ?qualification_np_x npx:invalidates ?qualification_np ; npa:hasValidSignatureForPublicKey ?qpubkey . } ?qualification_np np:hasAssertion ?qa . } graph ?qa { ?qualifier npx:qualifies ?res_np . } } order by ?res_np ?qualification_np" assertion.
- get-fer-pref-ids sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix fip: <https://w3id.org/fair/fip/terms/> 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 ) } optional { select * { graph npa:networkGraph { ?res_np npx:supersedes* ?np_pre_x . } } } bind(coalesce(?np_pre_x, ?res_np) as ?np_pre) bind(concat(str(?np_pre), " ", ?pubkey_hash) as ?np_pre_pubkey_hash) } order by ?resource_pref_id ?res_np" assertion.
- get-fer-pref-ids sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix fip: <https://w3id.org/fair/fip/terms/> 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:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?res_np ; npa:hasValidSignatureForPublicKey ?pubkey . } bind(sha256(?pubkey) as ?pubkey_hash) ## workaround due to https://github.com/knowledgepixels/nanopub-query/issues/14 ?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 ) } optional { select * { graph npa:networkGraph { ?res_np npx:supersedes* ?np_pre_x . } } } bind(coalesce(?np_pre_x, ?res_np) as ?np_pre) bind(concat(str(?np_pre), " ", ?pubkey_hash) as ?np_pre_pubkey_hash) } order by ?resource_pref_id ?res_np" assertion.
- get-fer-pref-ids-extra-available sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix fip: <https://w3id.org/fair/fip/terms/> 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:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?res_np ; npa:hasValidSignatureForPublicKey ?pubkey . } bind(sha256(?pubkey) as ?pubkey_hash) ## workaround due to https://github.com/knowledgepixels/nanopub-query/issues/14 ?res_np npx:hasNanopubType fip:Available-FAIR-Enabling-Resource . filter not exists { ?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(fip:Available-FAIR-Enabling-Resource as ?resourcetype) } optional { select * { graph npa:networkGraph { ?res_np npx:supersedes* ?np_pre_x . } } } bind(coalesce(?np_pre_x, ?res_np) as ?np_pre) bind(concat(str(?np_pre), " ", ?pubkey_hash) as ?np_pre_pubkey_hash) } order by ?resource_pref_id ?res_np" assertion.
- get-fer-pref-ids-extra-to-be-developed sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix fip: <https://w3id.org/fair/fip/terms/> 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:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?res_np ; npa:hasValidSignatureForPublicKey ?pubkey . } bind(sha256(?pubkey) as ?pubkey_hash) ## workaround due to https://github.com/knowledgepixels/nanopub-query/issues/14 ?res_np npx:hasNanopubType fip:FAIR-Enabling-Resource-to-be-Developed . filter not exists { ?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(fip:FAIR-Enabling-Resource-to-be-Developed as ?resourcetype) } optional { select * { graph npa:networkGraph { ?res_np npx:supersedes* ?np_pre_x . } } } bind(coalesce(?np_pre_x, ?res_np) as ?np_pre) bind(concat(str(?np_pre), " ", ?pubkey_hash) as ?np_pre_pubkey_hash) } order by ?resource_pref_id ?res_np" assertion.
- get-fip-decl-in-index sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix fip: <https://w3id.org/fair/fip/terms/> prefix dct: <http://purl.org/dc/terms/> prefix dce: <http://purl.org/dc/elements/1.1/> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix np: <http://www.nanopub.org/nschema#> select ?fip_index ?fip_title ?decl_np where { graph npa:graph { ?fip_index npx:hasNanopubType npx:NanopubIndex . ?fip_index npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?index_np_x npx:invalidates ?fip_index ; npa:hasValidSignatureForPublicKey ?pubkey . } ?fip_index np:hasAssertion ?index_a . ?fip_index rdfs:label ?fip_title . ?fip_index dct:created ?index_date . ?decl_np npx:hasNanopubType fip:FIP-Declaration . ?decl_np dct:created ?date . } graph ?index_a { ?fip_index npx:includesElement ?decl_np . } filter not exists { graph npa:graph { ?fip_newer_index npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?fip_newer_index_x npx:invalidates ?fip_newer_index ; npa:hasValidSignatureForPublicKey ?pubkey . } ?fip_newer_index dct:created ?newer_date . # Matching on the title string is an ugly hack: ?fip_newer_index rdfs:label ?fip_title . } filter(?newer_date > ?index_date). } }" assertion.
- get-fip-decl-in-index sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix fip: <https://w3id.org/fair/fip/terms/> prefix dct: <http://purl.org/dc/terms/> prefix dce: <http://purl.org/dc/elements/1.1/> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix np: <http://www.nanopub.org/nschema#> select ?fip_index ?fip_title ?decl_np where { graph npa:graph { ?fip_index npx:hasNanopubType npx:NanopubIndex . ?fip_index npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?index_np_x npx:invalidates ?fip_index ; npa:hasValidSignatureForPublicKey ?pubkey . } ?fip_index np:hasAssertion ?index_a . ?fip_index rdfs:label ?fip_title . ?fip_index dct:created ?index_date . ?decl_np npa:hasValidSignatureForPublicKey ?decl_pubkey . filter not exists { ?decl_np_x npx:invalidates ?decl_np ; npa:hasValidSignatureForPublicKey ?decl_pubkey . } ?decl_np npx:hasNanopubType fip:FIP-Declaration . ?decl_np dct:created ?date . } graph ?index_a { ?fip_index npx:includesElement ?decl_np . } filter not exists { graph npa:graph { ?fip_newer_index npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?fip_newer_index_x npx:invalidates ?fip_newer_index ; npa:hasValidSignatureForPublicKey ?pubkey . } ?fip_newer_index dct:created ?newer_date . # Matching on the title string is an ugly hack: ?fip_newer_index rdfs:label ?fip_title . } filter(?newer_date > ?index_date). } }" assertion.
- get-fip-decl-details sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix fip: <https://w3id.org/fair/fip/terms/> prefix dct: <http://purl.org/dc/terms/> prefix dce: <http://purl.org/dc/elements/1.1/> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix np: <http://www.nanopub.org/nschema#> prefix dcat: <https://www.w3.org/ns/dcat#> select ?decl_np ?community ?c ?question ?q ?sort ?nochoice ?decl ?rel ?resource_id_used ?startdate ?enddate ?date where { graph npa:graph { ?decl_np npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?decl_np_x npx:invalidates ?decl_np ; npa:hasValidSignatureForPublicKey ?pubkey . } ?decl_np npx:hasNanopubType fip:FIP-Declaration . ?decl_np dct:created ?date . ?decl_np np:hasAssertion ?assertion . } graph ?assertion { ?decl a fip:FIP-Declaration . ?decl fip:refers-to-question ?question . { { ?decl fip:declares-current-use-of ?resource_id_used . bind(fip:declares-current-use-of as ?rel) } union { ?decl fip:declares-planned-use-of ?resource_id_used . bind(fip:declares-planned-use-of as ?rel) } union { ?decl fip:declares-planned-replacement-of ?resource_id_used . bind(fip:declares-planned-replacement-of as ?rel) } union { ?decl fip:declares-replacement-from ?resource_id_used . bind(fip:declares-replacement-from as ?rel) } # unofficial union { ?decl fip:declares-replacement-to ?resource_id_used . bind(fip:declares-replacement-to as ?rel) } # unofficial } # grlc gives an error for some reason if these two optional statements are at the end of the graph block: optional { ?decl dcat:startDate ?startdate . } optional { ?decl dcat:endDate ?enddate . } ?decl fip:declared-by ?community . } bind (replace(str(?community), ".*#", "") as ?c) bind (replace(str(?supercommunity), ".*#", "") as ?sc) bind (replace(str(?question), "^.*-([^-MD]+(-[MD]+)?)$", "$1") as ?q) bind (concat(replace(?q, "F|M", "0"), "x") as ?sort) bind ("" as ?nochoice) }" assertion.
- get-fip-supercommunities sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix fip: <https://w3id.org/fair/fip/terms/> select distinct ?community (group_concat(distinct ?supercommunity; separator=" ") as ?supercommunities) (group_concat(distinct ?sc; separator=" ") as ?sc) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } ?np npx:hasNanopubType fip:FAIR-Implementation-Community . ?np (npx:introduces|npx:describes) ?community . ?np np:hasAssertion ?a . } graph ?a { ?community dct:isPartOf ?supercommunity . } optional { graph npa:graph { ?disapproval np:hasAssertion ?da . ?disapproval npa:hasValidSignatureForPublicKey ?dpubkey . filter not exists { ?disapproval_x npx:invalidates ?disapproval ; npa:hasValidSignatureForPublicKey ?dpubkey . } } graph <https://w3id.org/np/RAkVk6aKWsmgcuKtPA7OSp2h-GbDfx8xrz_kJAAgY8Xa4#assertion> { ?dpubkeys npx:hasPublicKey ?dpubkey . } graph ?da { ?dsomebody ( npx:disapproves-of | npx:disapprovesOf ) ?np . } } filter(!bound(?disapproval)) # for some reason this is much faster than "filter not exists" bind(replace(str(?supercommunity), ".*#", "") as ?sc) } group by ?community" assertion.
- get-all-users sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npx: <http://purl.org/nanopub/x/> prefix npa: <http://purl.org/nanopub/admin/> prefix dct: <http://purl.org/dc/terms/> prefix foaf: <http://xmlns.com/foaf/0.1/> select ?user ?name ?intronp ?date ?pubkey where { graph npa:graph { ?intronp npx:hasNanopubType npx:declaredBy . ?intronp npa:hasValidSignatureForPublicKey ?intronp_pubkey . filter not exists { ?intronp_x npx:invalidates ?intronp ; npa:hasValidSignatureForPublicKey ?intronp_pubkey . } ?intronp np:hasAssertion ?a . ?intronp dct:created ?date . } graph ?a { ?keydeclaration npx:declaredBy ?user . ?keydeclaration npx:hasPublicKey ?pubkey . optional { ?user foaf:name ?name . } } } order by ?user desc(?date)" assertion.
- find-gofair-qualified-things sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> select distinct ?thing ?label ?description ?np ?date ?pubkey ?retraction ?newversion ?qualifier ?qualification_np where { graph npa:graph { ?np npx:hasNanopubType ?__type_iri . ?np npa:hasValidSignatureForPublicKey ?pubkey . optional { ?retraction npx:retracts ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } optional { ?newversion npx:supersedes ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } ?np (npx:introduces|npx:describes) ?thing . ?np rdfs:label ?label . ?np dct:description ?description . ?np dct:created ?date . filter(str(?date) > "2022") } bind(concat(" ",lcase(str(?label))," ",lcase(str(?description))," ") as ?text) filter( contains(?text, lcase(str(?_searchterm))) ) optional { graph npa:graph { ?disapproval np:hasAssertion ?da . ?disapproval npa:hasValidSignatureForPublicKey ?dpubkey . filter not exists { ?disapproval_x npx:invalidates ?disapproval ; npa:hasValidSignatureForPublicKey ?dpubkey . } } graph <https://w3id.org/np/RAkVk6aKWsmgcuKtPA7OSp2h-GbDfx8xrz_kJAAgY8Xa4#assertion> { ?dpubkeys npx:hasPublicKey ?dpubkey . } graph ?da { ?dsomebody ( npx:disapproves-of | npx:disapprovesOf ) ?np . } } filter(!bound(?disapproval)) # Faster than "filter not exists" for some reason optional { graph npa:graph { ?qualification_np npx:hasNanopubType npx:qualifies . ?qualification_np np:hasAssertion ?qa . ?qualification_np npa:hasValidSignatureForPublicKey ?qpubkey . filter not exists { ?qualification_np_x npx:invalidates ?qualification_np ; npa:hasValidSignatureForPublicKey ?qpubkey . } } graph <https://w3id.org/np/RAkVk6aKWsmgcuKtPA7OSp2h-GbDfx8xrz_kJAAgY8Xa4#assertion> { ?qpubkeys npx:hasPublicKey ?qpubkey . } graph ?qa { ?qualifier npx:qualifies ?np . } } } order by asc(?label)" assertion.
- list_nonqualifed_fsr sparql "prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> select distinct ?np ?label (group_concat(distinct ?typelabel; separator = ", ") as ?types) ?date where { values ?service { <https://w3id.org/np/l/nanopub-query-1.1/repo/type/3ef5b11551ebc44e34f4bca614b387204447656ce195314532769ca7b20143fe> <https://w3id.org/np/l/nanopub-query-1.1/repo/type/070fa9a0f87a189bc2eb9d4c1a14f68f11538cc2229b9f4fd6ac026a3d2ce570> } service ?service { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } ?np dct:created ?date . filter(str(?date) > "2022") ?np np:hasAssertion ?a . } graph ?a { #?thing a <https://w3id.org/fair/fip/terms/FAIR-Supporting-Resource> . ?thing a ?type . ?thing rdfs:label ?labelx . } } filter( ?type != <https://w3id.org/fair/fip/terms/FAIR-Supporting-Resource> ) filter( ?type != <https://w3id.org/fair/fip/terms/Available-FAIR-Supporting-Resource> ) filter( ?type != <https://w3id.org/fair/fip/terms/FAIR-Supporting-Resource-to-be-Developed> ) filter( ?type != <https://w3id.org/fair/fip/terms/FAIR-Enabling-Resource> ) filter( ?type != <https://w3id.org/fair/fip/terms/Available-FAIR-Enabling-Resource> ) filter( ?type != <https://w3id.org/fair/fip/terms/FAIR-Enabling-Resource-to-be-Developed> ) bind(replace(str(?type), '^.*/([^/]+)$', '$1') as ?typelabel) bind(str(?labelx) as ?label) optional { select ?np ?disapproval { service <https://w3id.org/np/l/nanopub-query-1.1/repo/type/39692876d0a7881c82e9a2cb6dc8859fb16fa69fb41cea2ace2f8fa70bc52aed> { graph npa:graph { ?disapproval npa:hasValidSignatureForPublicKey ?dpubkey . ?disapproval np:hasAssertion ?da . filter not exists { ?disapprovalx npx:invalidates ?disapproval ; npa:hasValidSignatureForPublicKey ?dpubkey . } } graph <https://w3id.org/np/RAkVk6aKWsmgcuKtPA7OSp2h-GbDfx8xrz_kJAAgY8Xa4#assertion> { ?dpubkeys npx:hasPublicKey ?dpubkey . } graph ?da { ?dsomebody npx:disapprovesOf ?np . } } } } filter(!bound(?disapproval)) optional { select ?np ?qualification { service <https://w3id.org/np/l/nanopub-query-1.1/repo/type/cd51a3ac3e109fd12aacd5a324e14ebff644ce209c916e4250a3f50c2ddf0051> { graph npa:graph { ?qualification npa:hasValidSignatureForPublicKey ?qpubkey . ?qualification np:hasAssertion ?qa . filter not exists { ?qualificationx npx:invalidates ?qualification ; npa:hasValidSignatureForPublicKey ?qpubkey . } } graph <https://w3id.org/np/RAkVk6aKWsmgcuKtPA7OSp2h-GbDfx8xrz_kJAAgY8Xa4#assertion> { ?qpubkeys npx:hasPublicKey ?qpubkey . } graph ?qa { ?qsomebody npx:qualifies ?np . } } } } filter(!bound(?qualification)) } group by ?np ?label ?date order by desc(?date)" assertion.
- get-fip-decl-in-index sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix fip: <https://w3id.org/fair/fip/terms/> prefix dct: <http://purl.org/dc/terms/> prefix dce: <http://purl.org/dc/elements/1.1/> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix np: <http://www.nanopub.org/nschema#> select ?fip_index ?fip_title ?decl_np where { graph npa:graph { ?fip_index npx:hasNanopubType npx:NanopubIndex . ?fip_index npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?index_np_x npx:invalidates ?fip_index ; npa:hasValidSignatureForPublicKey ?pubkey . } ?fip_index np:hasAssertion ?index_a . ?fip_index rdfs:label ?fip_title . ?fip_index dct:created ?index_date . ?decl_np npa:hasValidSignatureForPublicKey ?decl_pubkey . filter not exists { ?decl_np_x npx:invalidates ?decl_np ; npa:hasValidSignatureForPublicKey ?decl_pubkey . } ?decl_np npx:hasNanopubType fip:FIP-Declaration . ?decl_np dct:created ?date . } graph ?index_a { ?fip_index npx:includesElement ?decl_np . } filter not exists { graph npa:graph { # Matching on the title string is an ugly hack: ?fip_newer_index rdfs:label ?fip_title . ?fip_newer_index npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?fip_newer_index_x npx:invalidates ?fip_newer_index ; npa:hasValidSignatureForPublicKey ?pubkey . } ?fip_newer_index dct:created ?newer_date . } filter(?newer_date > ?index_date). } }" assertion.