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.
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