Skip to content

Commit e0510a0

Browse files
committed
fix docs
1 parent 96a2435 commit e0510a0

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[![Latest Version](https://img.shields.io/crates/v/rdf2hdt.svg)](https://crates.io/crates/rdf2hdt)
2+
[![Lint](https://github.com/DeciSym/rdf2hdt/actions/workflows/format_check.yml/badge.svg)](https://github.com/DeciSym/rdf2hdt/actions/workflows/format_check.yml)
3+
[![Build](https://github.com/DeciSym/rdf2hdt/actions/workflows/test_build.yml/badge.svg)](https://github.com/DeciSym/rdf2hdt/actions/workflows/test_build.yml)
4+
[![Documentation](https://docs.rs/rdf2hdt/badge.svg)](https://docs.rs/rdf2hdt/)
5+
6+
17
# rdf2hdt
28
Library for converting RDF data to HDT
39

@@ -6,9 +12,17 @@ and then generates and saves the data as HDT. Implementation is based on the [HD
612
and the output HDT is intended to be consumed by one of [hdt crate](https://github.com/KonradHoeffner/hdt), [hdt-cpp](https://github.com/rdfhdt/hdt-cpp),
713
or [hdt-java](https://github.com/rdfhdt/hdt-java).
814

9-
## Using the rdf2hdt CLI
15+
## Installation
16+
17+
Install `rdf2hdt` with `cargo`:
18+
19+
```bash
20+
cargo install rdf2hdt
21+
```
22+
23+
## Usage
1024

11-
This library includes a CLI utility for gnerating HDT files from RDF input data. The binary can be built using `cargo build`.
25+
The `rdf2hdt` CLI tool is used for generating HDT files from RDF input data.
1226

1327
```bash
1428
$ rdf2hdt convert --help
@@ -32,13 +46,6 @@ Options:
3246
-v, --verbose...
3347
Increase logging verbosity
3448

35-
-b, --block-size <BLOCK_SIZE>
36-
Block size used during term compression
37-
38-
Every Nth term will be stored fully while others will only contain everything besides the longest common prefix of the last Nth term
39-
40-
[default: 16]
41-
4249
-q, --quiet...
4350
Decrease logging verbosity
4451

@@ -51,12 +58,11 @@ Options:
5158
HDT files can be generated directly in Rust.
5259

5360
```rust
54-
use rdf2hdt::hdt::{buld_hdt, Options};
61+
use rdf2hdt::hdt::buld_hdt;
5562

5663
let result = build_hdt(
5764
vec!["tests/resources/apple.ttl".to_string()],
5865
"output.hdt",
59-
Options::default(),
6066
)?;
6167
```
6268

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// Licensed under the BSD 3-Clause License (see LICENSE file in the project root).
33

44
pub mod builder;
5-
pub mod rdf_reader;
5+
pub(crate) mod rdf_reader;

src/rdf_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::{
1414
path::Path,
1515
};
1616

17-
pub fn convert_to_nt(
17+
pub(crate) fn convert_to_nt(
1818
file_paths: Vec<String>,
1919
output_file: std::fs::File,
2020
) -> Result<(), Box<dyn Error>> {

0 commit comments

Comments
 (0)