Class HDTTriples
java.lang.Object
org.eclipse.rdf4j.rio.hdt.HDTPart
org.eclipse.rdf4j.rio.hdt.HDTTriples
HDT Triples Part.
This part starts with $HDT, followed by a byte indicating the type of the part, the NULL-terminated URI
string for the format, and optionally one or more key=value; properties.
These properties may include the order (SPO, SOP...), and the number of triples.
Then a NULL byte, followed by the 16-bit CRC ($HDT and NULL included)
Structure:
+------+------+-----+------+------------+------+-------+ | $HDT | type | URI | NULL | key=value; | NULL | CRC16 | +------+------+-----+------+------------+------+-------+
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class HDTPart
HDTPart.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byte[]protected static final byte[]private intprotected static final Stringprivate HDTTriples.Orderprotected static final StringFields inherited from class HDTPart
COOKIE, name, pos, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HDTTriples.OrdergetOrder()Return triple orderprotected voidparse(InputStream is) Parse from input streamMethods inherited from class HDTPart
checkControl, checkCRC, checkFormat, countToNull, getDebugPartStr, getIntegerProperty, getProperties, getProperties, mapProperties, readToNull
-
Field Details
-
FORMAT_LIST
protected static final byte[] FORMAT_LIST -
FORMAT_BITMAP
protected static final byte[] FORMAT_BITMAP -
ORDER
- See Also:
-
NUM
- See Also:
-
order
-
nrtriples
private int nrtriples
-
-
Constructor Details
-
HDTTriples
HDTTriples()
-
-
Method Details
-
getOrder
-
parse
Description copied from class:HDTPartParse from input stream- Specified by:
parsein classHDTPart- Parameters:
is-- Throws:
IOException
-