-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
29 lines (25 loc) · 1.03 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="./target/scala-2.13/scalajs-bundler/main/chebi-discovery-fastopt-bundle.js"> </script>
<script>
let config = `{
"sources" : [{
"id" : " - Forum Semantic Metabolomics - ",
"url" : "https://forum.semantic-metabolomics.fr/sparql"
}]
}`;
let chebIdRef="http://purl.obolibrary.org/obo/CHEBI_15756";
let lIdChebis = ["http://purl.obolibrary.org/obo/CHEBI_7896"];
let maxDeep = 3.0 ;
ChebiDiscovery(config)
.ontology_based_matching(chebIdRef,lIdChebis,maxDeep)
.then ( (lTupleObject) => {
let div = document.createElement("div") ;
div.innerHTML = "<h3>ontology based matching of</h3> <pre>"+JSON.stringify(lTupleObject)+"</code>" ;
document.body.appendChild(div);
})
.catch( msg => { console.error(msg) ; } ) ;
</script>
<body/>
</html>