-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
6 changed files
with
141 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
console.log('hdp-aux.js') | ||
|
||
class HDPAux { | ||
static dump_to_html(res, selector) { | ||
console.log(document.querySelector(selector).innerHTML) | ||
let out = document.querySelector(selector) | ||
out.innerHTML = JSON.stringify(res, null, 2) | ||
// out.innerHTML = JSON.stringify(res, space = 2) | ||
// https://highlightjs.org/usage/ | ||
if (hljs && hljs.highlightAll){ | ||
hljs.highlightAll() | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
SHA384 (bootstrapper/hdp-minimam.mjs) = 3f952a050951e84a3ddfb85eb54f78dc102591ece51bb3e476ffecaaf0d1677feb49a1d91c67eb7449c8d35e1242dbe3 | ||
SHA384 (bootstrapper/hdp-aux.js) = d33d92c769b1fa0467f38f797c99406d47182400782f5c0744b37c9e53486d8a331b8d2319990920a250b90523786809 | ||
SHA384 (bootstrapper/hdp-minimam.mjs) = 11cff20de3a0e05067be0b32fc28dd70e7e278c0d1ccb25bc32627566056a48b9898d79f004fb7600a2b21bf7881216d | ||
SHA384 (bootstrapper/hdplisp.js) = cd118e73f7ea84b780cc4ebb4e7e99cbf2bf41eecac7ca7b43be6ad5ac22b39189bd01a8fa380b237734030c205228cf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,63 @@ | ||
<!doctype html> | ||
<html lang="la"> <!-- Lingua Latina --> | ||
<head> | ||
<html lang="la"> | ||
<!-- Lingua Latina --> | ||
|
||
<head> | ||
<!-- Required meta tags --> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
|
||
<!-- Bootstrap CSS --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous"> | ||
|
||
<title>EticaAI/HXL-Data-Science-file-formats/hxlm-js</title> | ||
</head> | ||
<body> | ||
<h1>EticaAI/HXL-Data-Science-file-formats/hxlm-js</h1> | ||
|
||
<!-- Optional JavaScript; choose one of the two! --> | ||
|
||
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) --> | ||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script> | ||
|
||
<!-- | ||
<script> | ||
const HXLM_LKG="../hxlm/ontologia/json/core.lkg.json" | ||
const HXLM_VKG="../hxlm/ontologia/json/core.vkg.json" | ||
</script> | ||
--> | ||
|
||
<script src="./bootstrapper/hdp-minimam.mjs"></script> | ||
<script src="./bootstrapper/hdp-minimam.js"></script> | ||
<!-- Bootstrap CSS --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous"> | ||
<!-- https://highlightjs.org/ --> | ||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/styles/default.min.css"> | ||
</head> | ||
|
||
<body> | ||
<h1>hxlm-js</h1> | ||
<p><mark>(qdp->ENG "Open the console log of your browser!")</mark></p> | ||
|
||
<h2>HDPMiniman</h2> | ||
<div> | ||
<h3>JavaScript</h3> | ||
<pre><code class="lang-javascript"> | ||
bootstrapping = HDPMiniman.bootstrapping() | ||
hdp = new HDPMiniman(bootstrapping) | ||
console.log(hdp.explanare()) | ||
</code> | ||
</pre> | ||
<h3>console.log</h3> | ||
<pre><code class="lang-json" id="hdp-explanare"> | ||
|
||
</code> | ||
</pre> | ||
</div> | ||
|
||
<!-- JQuery, Boostrap --> | ||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" | ||
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" | ||
crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" | ||
crossorigin="anonymous"></script> | ||
|
||
<!-- https://highlightjs.org/ --> | ||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/highlight.min.js"></script> | ||
|
||
<!-- HDP starts here --> | ||
<script src="./bootstrapper/hdplisp.js"></script> | ||
<script src="./bootstrapper/hdp-aux.js"></script> | ||
<script src="./bootstrapper/hdp-minimam.mjs"></script> | ||
|
||
<script> | ||
// const HXLM_LKG="../hxlm/ontologia/json/core.lkg.json" | ||
// const HXLM_VKG="../hxlm/ontologia/json/core.vkg.json" | ||
// let hdp = new HDPMiniman({ | ||
// LKG: "../hxlm/ontologia/json/core.lkg.json", | ||
// VKG: "../hxlm/ontologia/json/core.vkg.json" | ||
// }) | ||
|
||
bootstrapping = HDPMiniman.bootstrapping() | ||
hdp = new HDPMiniman(bootstrapping) | ||
|
||
console.log(hdp) | ||
console.log(hdp.explanare()) | ||
// console.log(HDPMiniman.explanare()) | ||
// console.log(HDPMiniman.explanare()) | ||
HDPAux.dump_to_html(hdp.explanare(), '#hdp-explanare') | ||
</script> | ||
|
||
<!-- Option 2: Separate Popper and Bootstrap JS --> | ||
<!-- | ||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-+YQ4JLhjyBLPDQt//I+STsc9iw4uQqACwlvpslubQzn4u2UU2UFM80nGisd026JF" crossorigin="anonymous"></script> | ||
--> | ||
</body> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters