discovery is a software library which aims to ease the development of decision support tools exploiting omics RDF databases. The library offers a dedicated query language that can be used in several runtime environments (Browser/JS, Node/JS, JVM/Scala).
discovery is developed as part of the work package "Creating FAIR e-resources for knowledge mining" for the national infrastructure for metabolomics and fluxomics - MetaboHUB
this software development is based on RDFJS (RDF JavaScript Libraries) and RDF4J
further information and documentation, visit https://p2m2.github.io/discovery/
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/p2m2/discovery@develop/dist/discovery-web.min.js"> </script>
<script>
var config = SWDiscoveryConfiguration
.init()
.sparqlEndpoint("https://metabolights.semantic-metabolomics.fr/sparql");
SWDiscovery(config)
.prefix("obo","http://purl.obolibrary.org/obo/")
.prefix("metabolights","https://www.ebi.ac.uk/metabolights/property#")
.prefix("rdfs","http://www.w3.org/2000/01/rdf-schema#")
.something()
.set(URI("obo:CHEBI_4167"))
.isObjectOf(URI("metabolights:Xref"),"study")
.datatype(URI("rdfs:label"),"label")
.select("study","label")
.commit()
.raw()
.then((response) => {
for (let i=0;i<response.results.bindings.length;i++) {
let study=response.results.bindings[i]["study"].value;
let label=response.results.datatypes["label"][study][0].value;
console.log(study+"-->"+label);
}
}).catch( (error) => {
console.error(" -- catch exception --")
console.error(error)
} );
</script>
libraryDependencies += "com.github.p2m2" %% "discovery" % "0.4.0"
libraryDependencies += "com.github.p2m2" %%% "discovery" % "0.4.0"
npm i @p2m2/discovery
docker run -d --network host -t inraep2m2/service-discovery-proxy:latest
version: '3.9'
services:
service-discovery-proxy:
image: inraep2m2/service-discovery-proxy:latest
command: ./mill -w app.runBackground --port 8085 --verbose
network_mode: "host"
restart: on-failure