Class RDFFormat

java.lang.Object
org.apache.jena.riot.RDFFormat

public class RDFFormat extends Object
Constants for writable formats
  • Field Details

    • PRETTY

      public static final RDFFormatVariant PRETTY
      Pretty printing variant
    • PLAIN

      public static final RDFFormatVariant PLAIN
      Plain printing variant
    • BLOCKS

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

      public static final RDFFormatVariant FLAT
      Print out one per line
    • LONG

      public static final RDFFormatVariant LONG
      Print with fixed indentation width and linebreaks after each sequence element
    • 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
    • TURTLE_LONG

      public static final RDFFormat TURTLE_LONG
      Turtle - with fixed indentation width and linebreaks after each sequence element
    • 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
    • TRIG_LONG

      public static final RDFFormat TRIG_LONG
      TriG - with fixed indentation width and linebreaks after each sequence element
    • SHACLC

      public static final RDFFormat SHACLC
      SHACL Compact Syntax
    • JSONLD11_PRETTY

      public static RDFFormat JSONLD11_PRETTY
      JSON LD 1.1 - multi-line JSON - prefixes and native types.
    • 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_PRETTY

      public static final RDFFormat JSONLD_PRETTY
    • JSONLD_PLAIN

      public static final RDFFormat JSONLD_PLAIN
    • JSONLD

      public static final RDFFormat JSONLD
    • JSONLD_FLAT

      public static final RDFFormat JSONLD_FLAT
    • ABBREV

      public static final RDFFormatVariant ABBREV
      RDF/XML ABBREV variant
    • 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
    • TRIX

      public static final RDFFormat TRIX
    • RDF_PROTO

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

      public static final RDFFormat RDF_PROTO_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

      public static final RDFFormat RDF_THRIFT
      RDF Thrift output. This format is faithful representation of RDF written and it is suitable for database dumps. It does not encode numeric literals as values (see RDF_THRIFT_VALUES).
      See Also:
    • 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:
    • RDFNULL

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

      public static final RDFFormat RDFRAW
      Stream-only output format for development - flushes every line.
  • Constructor Details

  • Method Details