File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,17 +41,28 @@ Then, run:
4141After building, these are the typical operations that you will perform:
4242
4343- Convert your RDF data to HDT:
44-
44+
45+ NB: the input stream is assumed to be valid RDF, so you should validate your data before feeding it into rdf2hdt.
46+
47+ ```
4548 $ tools/rdf2hdt data/test.nt data/test.hdt
49+ ```
50+
51+ - Create only the index of an HDT file:
4652
47- NB: the input stream is assumed to be valid RDF, so you should validate your data before feeding it into rdf2hdt.
53+ ```
54+ $ tools/hdtSearch -q 0 data/test.hdt
55+ ```
4856
4957- Convert an HDT to another RDF serialization format, such as N-Triples:
5058
59+ ```
5160 $ tools/hdt2rdf data/test.hdt data/test.hdtexport.nt
61+ ```
5262
5363- Open a terminal to search triple patterns within an HDT file:
5464
65+ ```
5566 $ tools/hdtSearch data/test.hdt
5667 >> ? ? ?
5768 http://example.org/uri3 http://example.org/predicate3 http://example.org/uri4
@@ -72,14 +83,19 @@ NB: the input stream is assumed to be valid RDF, so you should validate your dat
7283 2 results shown.
7384
7485 >> exit
86+ ```
7587
7688- Extract the Header of an HDT file:
7789
90+ ```
7891 $ tools/hdtInfo data/test.hdt > header.nt
92+ ```
7993
8094- Replace the Header of an HDT file with a new one. For example, by editing the existing one as extracted using `hdtInfo`:
8195
96+ ```
8297 $ tools/replaceHeader data/test.hdt data/testOutput.hdt newHeader.nt
98+ ```
8399
84100## Contributing
85101
You can’t perform that action at this time.
0 commit comments