Get biological relations for a resource
has assertion: assertion
has provenance: provenance
has publication info: pubinfo
type: Nanopublication
created: 2026-06-02T10:51:37Z
creator: Tobias Kuhn
license: https://creativecommons.org/licenses/by/4.0/
embeds: Get biological relations for a resource

Get biological relations for a resource
description: Given a resource, this query returns the biological relations it covers: reified organism-to-chemical associations (Biolink subject/predicate/object) linked to the resource via gen:coversClaim. Each row reports the organism, the relation, and the chemical (each linked to its identifier and labelled), plus a link to the nanopublication that asserts the association.
license: LICENSE-2.0
type: grlc-query
endpoint: full
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 gen: <https://w3id.org/kpxl/gen/terms/> prefix biolink: <https://w3id.org/biolink/vocab/> prefix biodiv: <https://w3id.org/kpxl/biodiv/terms/> select distinct ?organism ?organism_label ?relation_label ?chemical ?chemical_label ?np ("^" as ?np_label) where { graph npa:graph { ?np np:hasAssertion ?a . } graph ?a { ?_resource_iri gen:coversClaim ?assoc . ?assoc a biodiv:OrganismTaxonToChemicalAssociation ; biolink:subject ?organism ; biolink:predicate ?relation ; biolink:object ?chemical . optional { ?organism rdfs:label ?organism_label . } optional { ?relation rdfs:label ?relation_label . } optional { ?chemical rdfs:label ?chemical_label . } } graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pk . } filter not exists { graph npa:graph { ?inv npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pk . } } } order by ?organism_label ?relation_label ?chemical_label

sig
has algorithm: RSA
signed by: Tobias Kuhn