|
|
@ -30,7 +30,7 @@ or with ES modules: |
|
|
|
import oxigraph from './node_modules/oxigraph/node.js'; |
|
|
|
import oxigraph from './node_modules/oxigraph/node.js'; |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
To load on an HTML web page: |
|
|
|
To load on an HTML web page (for [WebPack 5](https://webpack.js.org/) remove the `<script>` tag and put the code in a JS file): |
|
|
|
```html |
|
|
|
```html |
|
|
|
<script type="module"> |
|
|
|
<script type="module"> |
|
|
|
import init, * as oxigraph from './node_modules/oxigraph/web.js' |
|
|
|
import init, * as oxigraph from './node_modules/oxigraph/web.js' |
|
|
@ -82,6 +82,8 @@ SPARQL: |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This example works with WebPack too if you remove the `<script>` tag and put the code in a JS file. |
|
|
|
|
|
|
|
|
|
|
|
## API |
|
|
|
## API |
|
|
|
|
|
|
|
|
|
|
|
Oxigraph currently provides a simple JS API. |
|
|
|
Oxigraph currently provides a simple JS API. |
|
|
|