Class HDTTriples


  • class HDTTriples
    extends HDTPart
    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 |
     +------+------+-----+------+------------+------+-------+
     
    • Field Detail

      • FORMAT_LIST

        protected static final byte[] FORMAT_LIST
      • FORMAT_BITMAP

        protected static final byte[] FORMAT_BITMAP
      • nrtriples

        private int nrtriples
    • Constructor Detail

      • HDTTriples

        HDTTriples()
    • Method Detail

      • getOrder

        protected HDTTriples.Order getOrder()
        Return triple order
        Returns:
        enum
      • parse

        protected void parse​(java.io.InputStream is)
                      throws java.io.IOException
        Description copied from class: HDTPart
        Parse from input stream
        Specified by:
        parse in class HDTPart
        Throws:
        java.io.IOException