Class RDFFormat


  • public class RDFFormat
    extends java.lang.Object
    Constants for writable formats
    • Field Detail

      • BLOCKS

        public static final RDFFormatVariant BLOCKS
        Print in blocks, typically all triples with the same subject in an incoming triple/quad stream
      • ASCII

        public static final RDFFormatVariant ASCII
        Use ASCII output (N-triples, N-Quads)
      • UTF8

        public static final RDFFormatVariant UTF8
        Use UTF-8 output (N-triples, N-Quads)
      • ValueEncoding

        public static final RDFFormatVariant ValueEncoding
        Variant for RDF Thrift using values
      • TURTLE_PRETTY

        public static final RDFFormat TURTLE_PRETTY
        Turtle - pretty form
      • TURTLE

        public static final RDFFormat TURTLE
        Turtle - default form
      • TTL

        public static final RDFFormat TTL
        Turtle - short name
      • TURTLE_BLOCKS

        public static final RDFFormat TURTLE_BLOCKS
        Turtle - write in blocks of triples, with same subject, no nested object or RDF lists
      • TURTLE_FLAT

        public static final RDFFormat TURTLE_FLAT
        Turtle - one line per triple
      • NTRIPLES_UTF8

        public static final RDFFormat NTRIPLES_UTF8
        N-Triples in UTF-8
      • NTRIPLES

        public static final RDFFormat NTRIPLES
        N-Triples - RDF 1.1 form - UTF-8
      • NT

        public static final RDFFormat NT
        N-Triples - RDF 1.1 form - UTF-8
      • NTRIPLES_ASCII

        public static final RDFFormat NTRIPLES_ASCII
        N-Triples - Use ASCII
      • NQUADS_UTF8

        public static final RDFFormat NQUADS_UTF8
        N-Quads in UTF-8
      • NQUADS

        public static final RDFFormat NQUADS
        N-Quads - RDF 1.1 form - UTF-8
      • NQ

        public static final RDFFormat NQ
        N-Quads - RDF 1.1 form - UTF-8
      • NQUADS_ASCII

        public static final RDFFormat NQUADS_ASCII
        N-Quads - Use ASCII
      • TRIG_PRETTY

        public static final RDFFormat TRIG_PRETTY
        TriG - pretty form
      • TRIG

        public static final RDFFormat TRIG
        TriG - default form
      • TRIG_BLOCKS

        public static final RDFFormat TRIG_BLOCKS
        TriG - write in blocks of triples, with same subject, no nested object or RDF lists
      • TRIG_FLAT

        public static final RDFFormat TRIG_FLAT
        TriG - one line per triple
      • SHACLC

        public static final RDFFormat SHACLC
        SHACL Compact Syntax
      • JSONLD11_PLAIN

        public static RDFFormat JSONLD11_PLAIN
        JSON LD 1.1 - multi-line JSON
      • JSONLD11_FLAT

        public static RDFFormat JSONLD11_FLAT
        JSON LD 1.1 - single-line JSON
      • JSONLD11

        public static RDFFormat JSONLD11
        JSON LD 1.1 default form - multi-line JSON
      • JSONLD_EXPAND_PRETTY

        public static final RDFFormat JSONLD_EXPAND_PRETTY
      • JSONLD_EXPAND_FLAT

        public static final RDFFormat JSONLD_EXPAND_FLAT
      • JSONLD_COMPACT_PRETTY

        public static final RDFFormat JSONLD_COMPACT_PRETTY
      • JSONLD_COMPACT_FLAT

        public static final RDFFormat JSONLD_COMPACT_FLAT
      • JSONLD_FLATTEN_PRETTY

        public static final RDFFormat JSONLD_FLATTEN_PRETTY
      • JSONLD_FLATTEN_FLAT

        public static final RDFFormat JSONLD_FLATTEN_FLAT
      • JSONLD_FRAME_PRETTY

        public static final RDFFormat JSONLD_FRAME_PRETTY
      • JSONLD_FRAME_FLAT

        public static final RDFFormat JSONLD_FRAME_FLAT
      • JSONLD_PRETTY

        public static final RDFFormat JSONLD_PRETTY
      • JSONLD

        public static final RDFFormat JSONLD
      • JSONLD_FLAT

        public static final RDFFormat JSONLD_FLAT
      • RDFXML_PRETTY

        public static final RDFFormat RDFXML_PRETTY
      • RDFXML_ABBREV

        public static final RDFFormat RDFXML_ABBREV
      • RDFXML

        public static final RDFFormat RDFXML
      • RDFXML_PLAIN

        public static final RDFFormat RDFXML_PLAIN
      • RDFJSON

        public static final RDFFormat RDFJSON
      • RDF_THRIFT

        public static final RDFFormat RDF_THRIFT
        RDF Thrift output. This format is faithful representation of RDF writtern and it is suitable for database dumps. It does not encode numeric literals as values (see RDF_THRIFT_VALUES).
        See Also:
        RDF_THRIFT_VALUES
      • RDF_THRIFT_VALUES

        public static final RDFFormat RDF_THRIFT_VALUES
        A variant of an an RDFFormat that uses value encoding (e.g. integers, doubles, decimals as binary). This does not preserve exact representation (+001 is the same value as 1, +1 and 001) which may matter for database dumps. It looses datatype for derived types (xsd;long, xsd:int, xsd:short and xsd:byte become xsd:integer). For large volumes of numeric data, it may provide a significant reduction in size in combination with using prefixes for subjects and predicates.
        See Also:
        RDF_THRIFT
      • RDFNULL

        public static final RDFFormat RDFNULL
        The "null" output format (a sink that prints nothing, usually quite efficiently)
    • Method Detail

      • getLang

        public Lang getLang()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object