Code examples: curl
PREFIX sbd: <https://www.sbd4nano.eu/rdf/#>
PREFIX sbdbel: <https://www.sbd4nano.eu/bel/#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX sio: <http://semanticscience.org/resource/SIO_>
PREFIX sbdbel2: <https://h2020-sbd4nano.github.io/sbdbel/>
SELECT ?material (COUNT(DISTINCT ?relation) AS ?count)
WHERE {
VALUES ?ca { sbdbel:CausalAssertion sbd:CausalAssertion sbdbel2:CausalAssertion }
?relation a ?ca ;
sbdbel:NP | sio:000332 | sbdbel2:NP ?materialIRI .
?materialIRI rdfs:label ?material .
} GROUP BY ?material
ORDER BY DESC(?count)
material | count |
Metal Oxide | 6 |
metal oxide nanoparticle | 6 |
Nanoparticle | 5 |
Nanomaterial | 5 |
nanoparticle | 5 |
curl -s https://raw.githubusercontent.com/h2020-sbd4nano/sbd-data-book/master/sparql/relationshipsByMaterial.rq | sed 's+<lang/>+en+' > relationshipsByMaterial.rq
curl -H "Accept: text/tab-separated-values" -G https://sbd4nanolandscape.rdf.bigcat-bioinformatics.org/sparql --data-urlencode query@relationshipsByMaterial.rq
This SPARQL query is available under CCZero.