public abstract class HDTManager extends Object
Constructor and Description |
---|
HDTManager() |
Modifier and Type | Method and Description |
---|---|
static HDT |
catHDT(String location,
String hdtFileName1,
String hdtFileName2,
HDTOptions hdtFormat,
ProgressListener listener)
Create an HDT file from two HDT files by joining the triples.
|
protected abstract HDT |
doGenerateHDT(Iterator<TripleString> iterator,
String baseURI,
HDTOptions hdtFormat,
ProgressListener listener) |
protected abstract HDT |
doGenerateHDT(String rdfFileName,
String baseURI,
RDFNotation rdfNotation,
HDTOptions hdtFormat,
ProgressListener listener) |
protected abstract TripleWriter |
doGetHDTWriter(OutputStream out,
String baseURI,
HDTOptions hdtFormat) |
protected abstract TripleWriter |
doGetHDTWriter(String outFile,
String baseURI,
HDTOptions hdtFormat) |
protected abstract HDT |
doHDTCat(String location,
String hdtFileName1,
String hdtFileName2,
HDTOptions hdtFormat,
ProgressListener listener) |
protected abstract HDT |
doIndexedHDT(HDT hdt,
ProgressListener listener) |
protected abstract HDT |
doLoadHDT(InputStream hdtFile,
ProgressListener listener) |
protected abstract HDT |
doLoadHDT(String hdtFileName,
ProgressListener listener) |
protected abstract HDT |
doLoadIndexedHDT(InputStream hdtFileName,
ProgressListener listener) |
protected abstract HDT |
doLoadIndexedHDT(String hdtFileName,
ProgressListener listener) |
protected abstract HDT |
doMapHDT(String hdtFileName,
ProgressListener listener) |
protected abstract HDT |
doMapIndexedHDT(String hdtFileName,
ProgressListener listener) |
protected abstract HDTOptions |
doReadOptions(String file) |
static HDT |
generateHDT(Iterator<TripleString> iterator,
String baseURI,
HDTOptions hdtFormat,
ProgressListener listener)
Create an HDT file from an RDF file.
|
static HDT |
generateHDT(String rdfFileName,
String baseURI,
RDFNotation rdfNotation,
HDTOptions hdtFormat,
ProgressListener listener)
Create an HDT file from an RDF file.
|
static TripleWriter |
getHDTWriter(OutputStream out,
String baseURI,
HDTOptions hdtFormat) |
static TripleWriter |
getHDTWriter(String outFile,
String baseURI,
HDTOptions hdtFormat) |
static HDT |
indexedHDT(HDT hdt,
ProgressListener listener)
Return an indexed HDT that is efficient for all kind of queries, given a not indexed HDT.
|
static HDT |
loadHDT(InputStream hdtFile)
Load an HDT from an InputStream (File, socket...).
|
static HDT |
loadHDT(InputStream hdtFile,
ProgressListener listener)
Load an HDT from an InputStream (File, socket...).
|
static HDT |
loadHDT(String hdtFileName)
Load an HDT file into memory to use it.
|
static HDT |
loadHDT(String hdtFileName,
ProgressListener listener)
Load an HDT file into memory to use it.
|
static HDT |
loadIndexedHDT(InputStream hdtFileName)
Load an HDT file from InputStream, and create additional indexes to support all kind of queries efficiently.
|
static HDT |
loadIndexedHDT(InputStream hdtFileName,
ProgressListener listener)
Load an HDT file from InputStream, and create additional indexes to support all kind of queries efficiently.
|
static HDT |
loadIndexedHDT(String hdtFileName)
Load an HDT File, and load/create additional indexes to support all kind of queries efficiently.
|
static HDT |
loadIndexedHDT(String hdtFileName,
ProgressListener listener)
Load an HDT File, and load/create additional indexes to support all kind of queries efficiently.
|
static HDT |
mapHDT(String hdtFileName)
Map an HDT file into memory to use it.
|
static HDT |
mapHDT(String hdtFileName,
ProgressListener listener)
Map an HDT file into memory to use it.
|
static HDT |
mapIndexedHDT(String hdtFileName)
Maps an HDT File into virtual memory, and load/create additional indexes to support all kind of queries efficiently.
|
static HDT |
mapIndexedHDT(String hdtFileName,
ProgressListener listener)
Maps an HDT File into virtual memory, and load/create additional indexes to support all kind of queries efficiently.
|
static HDTOptions |
readOptions(String file) |
public static HDTOptions readOptions(String file) throws IOException
IOException
public static HDT loadHDT(String hdtFileName, ProgressListener listener) throws IOException
hdtFileName
- listener
- Listener to get notified of loading progress. Can be null if no notifications needed.IOException
public static HDT loadHDT(String hdtFileName) throws IOException
hdtFileName
- IOException
public static HDT mapHDT(String hdtFileName, ProgressListener listener) throws IOException
hdtFileName
- listener
- Listener to get notified of loading progress. Can be null if no notifications needed.IOException
public static HDT mapHDT(String hdtFileName) throws IOException
hdtFileName
- IOException
public static HDT loadHDT(InputStream hdtFile, ProgressListener listener) throws IOException
hdtFile
- listener
- Listener to get notified of loading progress. Can be null if no notifications needed.IOException
public static HDT loadHDT(InputStream hdtFile) throws IOException
hdtFile
- IOException
public static HDT loadIndexedHDT(String hdtFileName, ProgressListener listener) throws IOException
hdtFileName
- listener
- Listener to get notified of loading progress. Can be null if no notifications needed.IOException
public static HDT loadIndexedHDT(String hdtFileName) throws IOException
hdtFileName
- IOException
public static HDT mapIndexedHDT(String hdtFileName, ProgressListener listener) throws IOException
hdtFileName
- listener
- Listener to get notified of loading progress. Can be null if no notifications needed.IOException
public static HDT mapIndexedHDT(String hdtFileName) throws IOException
hdtFileName
- IOException
public static HDT loadIndexedHDT(InputStream hdtFileName, ProgressListener listener) throws IOException
hdtFileName
- listener
- Listener to get notified of loading progress. Can be null if no notifications needed.IOException
public static HDT loadIndexedHDT(InputStream hdtFileName) throws IOException
hdtFileName
- IOException
public static HDT indexedHDT(HDT hdt, ProgressListener listener)
hdt
- listener
- Listener to get notified of loading progress. Can be null if no notifications needed.public static HDT generateHDT(String rdfFileName, String baseURI, RDFNotation rdfNotation, HDTOptions hdtFormat, ProgressListener listener) throws IOException, ParserException
rdfFileName
- File name.baseURI
- Base URI for the dataset.rdfNotation
- Format of the source RDF File (NTriples, N3, RDF-XML...)hdtFormat
- Parameters to tune the generated HDT.listener
- Listener to get notified of loading progress. Can be null if no notifications needed.IOException
ParserException
public static HDT generateHDT(Iterator<TripleString> iterator, String baseURI, HDTOptions hdtFormat, ProgressListener listener) throws IOException, ParserException
iterator
- A provider of triples. Must implement hasNext(), next() and estimatedNumResults.baseURI
- Base URI for the dataset.hdtFormat
- Parameters to tune the generated HDT.listener
- Listener to get notified of loading progress. Can be null if no notifications needed.IOException
ParserException
public static TripleWriter getHDTWriter(OutputStream out, String baseURI, HDTOptions hdtFormat) throws IOException
IOException
public static TripleWriter getHDTWriter(String outFile, String baseURI, HDTOptions hdtFormat) throws IOException
IOException
public static HDT catHDT(String location, String hdtFileName1, String hdtFileName2, HDTOptions hdtFormat, ProgressListener listener) throws IOException
location
- where the new HDT file is storedhdtFileName1
- First hdt file namehdtFileName2
- Second hdt file namehdtFormat
- Parameters to tune the generated HDT.listener
- Listener to get notified of loading progress. Can be null if no notifications needed.IOException
protected abstract HDTOptions doReadOptions(String file) throws IOException
IOException
protected abstract HDT doLoadHDT(String hdtFileName, ProgressListener listener) throws IOException
IOException
protected abstract HDT doLoadHDT(InputStream hdtFile, ProgressListener listener) throws IOException
IOException
protected abstract HDT doMapHDT(String hdtFileName, ProgressListener listener) throws IOException
IOException
protected abstract HDT doLoadIndexedHDT(String hdtFileName, ProgressListener listener) throws IOException
IOException
protected abstract HDT doLoadIndexedHDT(InputStream hdtFileName, ProgressListener listener) throws IOException
IOException
protected abstract HDT doMapIndexedHDT(String hdtFileName, ProgressListener listener) throws IOException
IOException
protected abstract HDT doIndexedHDT(HDT hdt, ProgressListener listener)
protected abstract HDT doGenerateHDT(String rdfFileName, String baseURI, RDFNotation rdfNotation, HDTOptions hdtFormat, ProgressListener listener) throws IOException, ParserException
IOException
ParserException
protected abstract HDT doGenerateHDT(Iterator<TripleString> iterator, String baseURI, HDTOptions hdtFormat, ProgressListener listener) throws IOException
IOException
protected abstract TripleWriter doGetHDTWriter(OutputStream out, String baseURI, HDTOptions hdtFormat) throws IOException
IOException
protected abstract TripleWriter doGetHDTWriter(String outFile, String baseURI, HDTOptions hdtFormat) throws IOException
IOException
protected abstract HDT doHDTCat(String location, String hdtFileName1, String hdtFileName2, HDTOptions hdtFormat, ProgressListener listener) throws IOException
IOException
Copyright © 2020 DataWeb Research. All rights reserved.