Skip to content

Library API

Reto Gmür edited this page Aug 21, 2021 · 5 revisions

Status: sketch

Usage example

const synonymGroup = new SynonymGroup(sparqlEndpoint, "Sadayoshia acamar");

for await (const justifiedSynonim of synonymGroup) {
  //do something with synonym
  for await (const justification of justifiedSynonim.justifications) {
    //do something with justification 
  }
}

myStopButton.addEventListener("click", () => synonymGroup.abortSearch())

Clone this wiki locally