Package org.apache.jena.riot
Class RDFFormat
java.lang.Object
org.apache.jena.riot.RDFFormat
Constants for writable formats
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RDFFormatVariantRDF/XML ABBREV variantstatic final RDFFormatVariantUse ASCII output (N-triples, N-Quads)static final RDFFormatVariantPrint in blocks, typically all triples with the same subject in an incoming triple/quad streamstatic final RDFFormatVariantPrint out one per linestatic final RDFFormatstatic final RDFFormatstatic final RDFFormatstatic final RDFFormatstatic final RDFFormatstatic final RDFFormatstatic final RDFFormatstatic final RDFFormatstatic final RDFFormatstatic final RDFFormatstatic final RDFFormatstatic RDFFormatJSON LD 1.1 default form - multi-line JSONstatic RDFFormatJSON LD 1.1 - single-line JSONstatic RDFFormatJSON LD 1.1 - multi-line JSONstatic final RDFFormatN-Quads - RDF 1.1 form - UTF-8static final RDFFormatN-Quads - RDF 1.1 form - UTF-8static final RDFFormatN-Quads - Use ASCIIstatic final RDFFormatN-Quads in UTF-8static final RDFFormatN-Triples - RDF 1.1 form - UTF-8static final RDFFormatN-Triples - RDF 1.1 form - UTF-8static final RDFFormatN-Triples - Use ASCIIstatic final RDFFormatN-Triples in UTF-8static final RDFFormatVariantBasic RDF/XML variantstatic final RDFFormatVariantPretty printing variantstatic final RDFFormatRDF Protobuf output.static final RDFFormatA variant of an an RDFFormat that uses value encoding (e.g.static final RDFFormatRDF Thrift output.static final RDFFormatA variant of an an RDFFormat that uses value encoding (e.g.static final RDFFormatstatic final RDFFormatThe "null" output format (a sink that prints nothing, usually quite efficiently)static final RDFFormatstatic final RDFFormatstatic final RDFFormatstatic final RDFFormatstatic final RDFFormatSHACL Compact Syntaxstatic final RDFFormatTriG - default formstatic final RDFFormatTriG - write in blocks of triples, with same subject, no nested object or RDF listsstatic final RDFFormatTriG - one line per triplestatic final RDFFormatTriG - pretty formstatic final RDFFormatstatic final RDFFormatTurtle - short namestatic final RDFFormatTurtle - default formstatic final RDFFormatTurtle - write in blocks of triples, with same subject, no nested object or RDF listsstatic final RDFFormatTurtle - one line per triplestatic final RDFFormatTurtle - pretty formstatic final RDFFormatVariantUse UTF-8 output (N-triples, N-Quads)static final RDFFormatVariantVariant for RDF Thrift using values -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PRETTY
Pretty printing variant -
BLOCKS
Print in blocks, typically all triples with the same subject in an incoming triple/quad stream -
FLAT
Print out one per line -
ASCII
Use ASCII output (N-triples, N-Quads) -
UTF8
Use UTF-8 output (N-triples, N-Quads) -
ValueEncoding
Variant for RDF Thrift using values -
TURTLE_PRETTY
Turtle - pretty form -
TURTLE
Turtle - default form -
TTL
Turtle - short name -
TURTLE_BLOCKS
Turtle - write in blocks of triples, with same subject, no nested object or RDF lists -
TURTLE_FLAT
Turtle - one line per triple -
NTRIPLES_UTF8
N-Triples in UTF-8 -
NTRIPLES
N-Triples - RDF 1.1 form - UTF-8 -
NT
N-Triples - RDF 1.1 form - UTF-8 -
NTRIPLES_ASCII
N-Triples - Use ASCII -
NQUADS_UTF8
N-Quads in UTF-8 -
NQUADS
N-Quads - RDF 1.1 form - UTF-8 -
NQ
N-Quads - RDF 1.1 form - UTF-8 -
NQUADS_ASCII
N-Quads - Use ASCII -
TRIG_PRETTY
TriG - pretty form -
TRIG
TriG - default form -
TRIG_BLOCKS
TriG - write in blocks of triples, with same subject, no nested object or RDF lists -
TRIG_FLAT
TriG - one line per triple -
SHACLC
SHACL Compact Syntax -
JSONLD11_PLAIN
JSON LD 1.1 - multi-line JSON -
JSONLD11_FLAT
JSON LD 1.1 - single-line JSON -
JSONLD11
JSON LD 1.1 default form - multi-line JSON -
JSONLD_EXPAND_PRETTY
-
JSONLD_EXPAND_FLAT
-
JSONLD_COMPACT_PRETTY
-
JSONLD_COMPACT_FLAT
-
JSONLD_FLATTEN_PRETTY
-
JSONLD_FLATTEN_FLAT
-
JSONLD_FRAME_PRETTY
-
JSONLD_FRAME_FLAT
-
JSONLD_PRETTY
-
JSONLD
-
JSONLD_FLAT
-
ABBREV
RDF/XML ABBREV variant -
PLAIN
Basic RDF/XML variant -
RDFXML_PRETTY
-
RDFXML_ABBREV
-
RDFXML
-
RDFXML_PLAIN
-
RDFJSON
-
TRIX
-
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 (seeRDF_PROTO_VALUES).- See Also:
-
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
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 (seeRDF_THRIFT_VALUES).- See Also:
-
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
The "null" output format (a sink that prints nothing, usually quite efficiently)
-
-
Constructor Details
-
RDFFormat
-
RDFFormat
-
-
Method Details