@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @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-bio-relations-for-resource a grlc:grlc-query; dct: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."; dct:license ; rdfs:label "Get biological relations for a resource"; grlc:endpoint ; grlc:sparql """prefix rdfs: prefix np: prefix npa: prefix npx: prefix gen: prefix biolink: prefix biodiv: 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""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-06-02T10:51:37Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-bio-relations-for-resource; rdfs:label "Get biological relations for a resource"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "JwzmSSCWybngSPGRcIXzgqepikgZvsJAWNkLoagpm2v0kkZZVjqebs6tA9mvQBWg7+KUm540OqmM+I2OuqVVmkHYwpIl92a3PTzTwa+bsXteUkf9Y+SWNA0gG50jQ1k3GlJtnNj3IB6B9824Qv7Fn0jUoLooikk0Jq5Nkj2kBWU="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }