Full identifier: https://w3id.org/np/RAOmIiB2U3ocW6XNRjsfP9MWxHvhN8GeHKdTJONIrYFLo#get-fer-pref-ids
Assigned to 1 class:
Nanopublication | Part | Subject | Predicate | Object | Published By | Published On |
---|---|---|---|---|---|---|
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-fer-pref-ids
|
Tobias Kuhn
|
2025-03-10T14:08:10.379Z
|
|||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-fer-pref-ids
|
Get FER preferred IDs
|
Tobias Kuhn
|
2025-03-10T14:08:10.379Z
|
||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-fer-pref-ids
|
Tobias Kuhn
|
2025-03-10T14:08:10.379Z
|
|||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-fer-pref-ids
|
This query returns the preferred IDs of FAIR-Enabling Resources (FERs), including the references to previous nanopublications with older term definitions.
|
Tobias Kuhn
|
2025-03-10T14:08:10.379Z
|
||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-fer-pref-ids
|
Tobias Kuhn
|
2025-03-10T14:08:10.379Z
|
|||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-fer-pref-ids
|
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
|
Tobias Kuhn
|
2025-03-10T14:08:10.379Z
|
||
links a nanopublication to its pubinfo
http://www.nanopub.org/nschema#hasPublicationInfo
pubinfo
|
get-fer-pref-ids
|
Tobias Kuhn
|
2025-03-10T14:08:10.379Z
|