Skip to content

Commit

Permalink
hxlm-js (hdp #18, lisp #18): started hxlm-js/; transpile Python to JS…
Browse files Browse the repository at this point in the history
… is way too ugly to not do by hand
  • Loading branch information
fititnt committed Apr 3, 2021
1 parent 8a208e5 commit 04777d8
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 0 deletions.
26 changes: 26 additions & 0 deletions hxlm-js/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# EticaAI/HXL-Data-Science-file-formats/hxlm-js

This folders contains a subset of HXLm.HDP and, at some extend, HXLm.lisp.
While this may not be a full implementation of the python interface, this
_at least_ help to not make
[hdp-conventions/README.md](hdp-conventions/README.md) too focused on an single
programming language.

## Test page
For convenience, the <https://hpd.etica.ai> domain as created to allow test the javascript
parts of HXLm. Still recommended look at the GitHub (and maybe the source
code) that do have a lot of comments.

- [hxlm-js/index.html](hxlm-js/index.html)
- [https://hpd.etica.ai/hxlm-js/index.html]

## Ontologia

- [hxlm/ontologia/](hxlm/ontologia/)
- [hxlm/ontologia/core.lkg.yml](hxlm/ontologia/core.lkg.yml)
- [hxlm/ontologia/json/core.lkg.json](hxlm/ontologia/json/core.lkg.json)
- [https://hpd.etica.ai/hxlm/ontologia/json/core.lkg.json](https://hpd.etica.ai/hxlm/ontologia/json/core.lkg.json)
- [hxlm/ontologia/core.vkg.yml](hxlm/ontologia/core.vkg.yml)
- [hxlm/ontologia/json/core.vkg.json](hxlm/ontologia/json/core.vkg.json)
- [https://hpd.etica.ai/hxlm/ontologia/json/core.vkg.json](https://hpd.etica.ai/hxlm/ontologia/json/core.vkg.json)

1 change: 1 addition & 0 deletions hxlm-js/bootstrapper/hdp-minimam.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('bootstrapper/hdp-minimam.js')
1 change: 1 addition & 0 deletions hxlm-js/bootstrapper/hdp-minimam.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('bootstrapper/hdp-minimam.js')
1 change: 1 addition & 0 deletions hxlm-js/bootstrapper/hdplisp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('bootstrapper/hdplisp.js')
42 changes: 42 additions & 0 deletions hxlm-js/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!doctype html>
<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>
var HXLM_LKG="../hxlm/ontologia/json/core.lkg.json"
var HXLM_VKG="../hxlm/ontologia/json/core.vkg.json"
</script>

<script src="./bootstrapper/hdp-minimam.mjs"></script>
<script src="./bootstrapper/hdp-minimam.js"></script>
<script src="./bootstrapper/hdplisp.js"></script>

<script>

</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>
</html>

0 comments on commit 04777d8

Please sign in to comment.