You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c90c1cc
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,11 +82,13 @@ Web Assembly allows purely client-side HDT in the browser.
82
82
It is gated behind the wasm32-unknown-unknown target and not a feature but is still experimental.
83
83
We don't release the compiled artifacts to NPM yet (please open an issue if you need this or something else) so for now you need to build them yourself.
84
84
Open [test-wasm.html](tests/resources/test-wasm.html) to test it and see the source code for how to load and query HDT with Wasm.
85
+
Due to CORS browser restrictions you may have to run a local server e.g. on port 8000 and then open <http://localhost:8000/tests/resources/test-wasm.html>.
85
86
86
87
```sh
87
88
rustup target add wasm32-unknown-unknown
88
-
cargo install wasm_pack
89
+
cargo install wasm-pack
89
90
RUSTFLAGS="-C target-feature=+simd128" wasm-pack build --target web --release
91
+
python -m http.server 8000
90
92
```
91
93
92
94
## API Documentation
@@ -130,7 +132,7 @@ cargo bench --bench gungraun
130
132
```
131
133
132
134
* requires [persondata\_en\_10k.hdt](https://github.com/KonradHoeffner/hdt/releases/download/benchmarkdata/persondata_en_10k.hdt.bz2) placed in `tests/resources`
133
-
* requires [Valgrind](https://valgrind.org/) to be installed
135
+
* requires [Valgrind](https://valgrind.org/)and [gungraun-runner](https://gungraun.github.io/gungraun/latest/html/installation/gungraun.html)to be installed
134
136
* may require a conservative target CPU like `RUSTFLAGS="-C target-cpu=skylake" cargo bench --bench gungraun`
"description": "Library for the Header Dictionary Triples (HDT) compression file format for RDF data. All features other than \"sophia\" are experimental and are neither guaranteed to work in all combinations nor adher to semver: they may change or be removed in future versions including minor or patch releases.\n \n A Rust library for the [Header Dictionary Triples](https://www.rdfhdt.org/) compressed RDF format, including: \n* loading the HDT default format as created by [hdt-cpp](https://github.com/rdfhdt/hdt-cpp)\n* converting N-Triples to HDT\n* efficient querying by triple patterns\n* serializing into other formats like RDF Turtle and N-Triples using the [Sophia](https://crates.io/crates/sophia) adapter\n* running SPARQL queries (with the experimental \"sparql\" feature but HDT is not optimized for that) \n* load other HDT variants\n* swap data to disk\n* modify the RDF graph in memory \nIf you need any of the those features, consider using a SPARQL endpoint instead.\nFor acknowledgement of all the original authors, please look at the reference implementations in C++ and Java by the [https://github.com/rdfhdt](https://github.com/rdfhdt) organisation.\n \n The performance of a query depends on the size of the graph, the type of triple pattern and the size of the result set.\nWhen using large HDT files, make sure to enable the release profile, such as through `cargo build --release`, as this can be much faster than using the dev profile.\n \n If you want to optimize the code, you can use a profiler.\nThe provided test data is very small in order to keep the size of the crate down; locally modifying the tests to use a large HDT file returns more meaningful results.\n \n",
31
+
"description": "Rust library for the Header Dictionary Triples (HDT) compression file format for RDF data.",
26
32
"identifier": "10.5281/zenodo.7871065",
27
33
"keywords": [
28
34
{
@@ -61,7 +67,7 @@
61
67
],
62
68
"datePublished": "2023",
63
69
"identifier": "10.21105/joss.05114",
64
-
"name": "https://orcid.org/0000-0000-0000-0000",
70
+
"name": "hdt-rs: A Rust library for the Header Dictionary Triples binary RDF compression format",
0 commit comments