Package org.apache.jena.riot
Class RDFFormat
- java.lang.Object
-
- org.apache.jena.riot.RDFFormat
-
public class RDFFormat extends java.lang.Object
Constants for writable formats
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RDFFormat.JSONLDVariant
-
Field Summary
Fields Modifier and Type Field Description static RDFFormatVariant
ABBREV
RDF/XML ABBREV variantstatic RDFFormatVariant
ASCII
Use ASCII output (N-triples, N-Quads)static RDFFormatVariant
BLOCKS
Print in blocks, typically all triples with the same subject in an incoming triple/quad streamstatic RDFFormatVariant
FLAT
Print out one per linestatic RDFFormat
JSONLD
static RDFFormat
JSONLD_COMPACT_FLAT
static RDFFormat
JSONLD_COMPACT_PRETTY
static RDFFormat
JSONLD_EXPAND_FLAT
static RDFFormat
JSONLD_EXPAND_PRETTY
static RDFFormat
JSONLD_FLAT
static RDFFormat
JSONLD_FLATTEN_FLAT
static RDFFormat
JSONLD_FLATTEN_PRETTY
static RDFFormat
JSONLD_FRAME_FLAT
static RDFFormat
JSONLD_FRAME_PRETTY
static RDFFormat
JSONLD_PRETTY
static RDFFormat
JSONLD11
JSON LD 1.1 default form - multi-line JSONstatic RDFFormat
JSONLD11_FLAT
JSON LD 1.1 - single-line JSONstatic RDFFormat
JSONLD11_PLAIN
JSON LD 1.1 - multi-line JSONstatic RDFFormat
NQ
N-Quads - RDF 1.1 form - UTF-8static RDFFormat
NQUADS
N-Quads - RDF 1.1 form - UTF-8static RDFFormat
NQUADS_ASCII
N-Quads - Use ASCIIstatic RDFFormat
NQUADS_UTF8
N-Quads in UTF-8static RDFFormat
NT
N-Triples - RDF 1.1 form - UTF-8static RDFFormat
NTRIPLES
N-Triples - RDF 1.1 form - UTF-8static RDFFormat
NTRIPLES_ASCII
N-Triples - Use ASCIIstatic RDFFormat
NTRIPLES_UTF8
N-Triples in UTF-8static RDFFormatVariant
PLAIN
Basic RDF/XML variantstatic RDFFormatVariant
PRETTY
Pretty printing variantstatic RDFFormat
RDF_PROTO
RDF Protobuf output.static RDFFormat
RDF_PROTO_VALUES
A variant of an an RDFFormat that uses value encoding (e.g.static RDFFormat
RDF_THRIFT
RDF Thrift output.static RDFFormat
RDF_THRIFT_VALUES
A variant of an an RDFFormat that uses value encoding (e.g.static RDFFormat
RDFJSON
static RDFFormat
RDFNULL
The "null" output format (a sink that prints nothing, usually quite efficiently)static RDFFormat
RDFXML
static RDFFormat
RDFXML_ABBREV
static RDFFormat
RDFXML_PLAIN
static RDFFormat
RDFXML_PRETTY
static RDFFormat
SHACLC
SHACL Compact Syntaxstatic RDFFormat
TRIG
TriG - default formstatic RDFFormat
TRIG_BLOCKS
TriG - write in blocks of triples, with same subject, no nested object or RDF listsstatic RDFFormat
TRIG_FLAT
TriG - one line per triplestatic RDFFormat
TRIG_PRETTY
TriG - pretty formstatic RDFFormat
TRIX
static RDFFormat
TTL
Turtle - short namestatic RDFFormat
TURTLE
Turtle - default formstatic RDFFormat
TURTLE_BLOCKS
Turtle - write in blocks of triples, with same subject, no nested object or RDF listsstatic RDFFormat
TURTLE_FLAT
Turtle - one line per triplestatic RDFFormat
TURTLE_PRETTY
Turtle - pretty formstatic RDFFormatVariant
UTF8
Use UTF-8 output (N-triples, N-Quads)static RDFFormatVariant
ValueEncoding
Variant for RDF Thrift using values
-
Constructor Summary
Constructors Constructor Description RDFFormat(Lang lang)
RDFFormat(Lang lang, RDFFormatVariant variant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Lang
getLang()
RDFFormatVariant
getVariant()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
PRETTY
public static final RDFFormatVariant PRETTY
Pretty 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
-
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
-
ABBREV
public static final RDFFormatVariant ABBREV
RDF/XML ABBREV variant
-
PLAIN
public static final RDFFormatVariant PLAIN
Basic RDF/XML 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 (seeRDF_PROTO_VALUES
).- See Also:
RDF_PROTO_VALUES
-
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_PROTO
-
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 (seeRDF_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)
-
-
Constructor Detail
-
RDFFormat
public RDFFormat(Lang lang)
-
RDFFormat
public RDFFormat(Lang lang, RDFFormatVariant variant)
-
-
Method Detail
-
getLang
public Lang getLang()
-
getVariant
public RDFFormatVariant getVariant()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-