Skip to content

I have an HDT file. How can I initialise in Java a qEndpoint on top of it? #253

Answered by ate47
D063520 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

You need to put the HDT in a directory, here /path/to/the/hdt/dir, then determine a directory for the delta store, here /path/to/delta/dir, then run this:

// create a SPARQL repository
SparqlRepository repository = CompiledSail.compiler()
         // describe the files used to create/load the store:
         // /path/to/the/hdt/dir : location of the directory containing the HDT
         // /path/to/delta/dir   : location of the directory containing the delta store 
         //                        (if none, a new one will be created)
         // filename.hdt         : name of the HDT file
        .withEndpointFiles(new EndpointFiles(
                Path.of("/path/to/the/hdt/dir")…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@D063520
Comment options

D063520 Feb 9, 2023
Maintainer Author

Answer selected by D063520
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants