Draft Ontology module

This commit is contained in:
2026-04-07 16:45:28 +02:00
parent 1117018fad
commit a617985789
3 changed files with 250 additions and 0 deletions

16
js/ontology.js Normal file
View File

@@ -0,0 +1,16 @@
/**
* @module Ontology
*/
/**
* Load an ontology from its JSON description
* @param {String} jsonPath The path (URI) of the ontology JSON file
* @returns {Object}
*/
export async function loadOntology(jsonPath) {
const ontology = await fetch(jsonPath)
.then(res => res.json())
.catch(err => console.error(err));
return ontology;
}