hdt-java icon indicating copy to clipboard operation
hdt-java copied to clipboard

CRCException while Parsing DBpedia HDT File.

Open janothan opened this issue 5 years ago • 0 comments

I downloaded the DBpedia HDT data set. I try to load it using the following code:

HDT hdtDataSet = HDTManager.loadHDT(hdtFilePath);

When I run the program, I get the following exception after some minutes:

org.rdfhdt.hdt.exceptions.CRCException: CRC Error while reading Dictionary Section Plain Front Coding Data.
	at org.rdfhdt.hdt.dictionary.impl.section.PFCDictionarySectionBig.load(PFCDictionarySectionBig.java:490)
	at org.rdfhdt.hdt.dictionary.impl.section.DictionarySectionFactory.loadFrom(DictionarySectionFactory.java:67)
	at org.rdfhdt.hdt.dictionary.impl.FourSectionDictionary.load(FourSectionDictionary.java:119)
	at org.rdfhdt.hdt.hdt.impl.HDTImpl.loadFromHDT(HDTImpl.java:194)
	at org.rdfhdt.hdt.hdt.impl.HDTImpl.loadFromHDT(HDTImpl.java:214)
	at org.rdfhdt.hdt.hdt.HDTManagerImpl.doLoadHDT(HDTManagerImpl.java:34)
	at org.rdfhdt.hdt.hdt.HDTManager.loadHDT(HDTManager.java:66)

I am using:

        <dependency>
            <groupId>org.rdfhdt</groupId>
            <artifactId>hdt-java-core</artifactId>
            <version>2.1.1-SNAPSHOT</version>
        </dependency>

Remark: It does work with other data sets such as Semantic Web Dog Food.

janothan avatar Feb 19 '20 13:02 janothan