{title:'RDF Serializers', updated:'9.0.0'}

The {@link oaj.jena.RdfSerializer} class is the top-level class for all Jena-based serializers. Language-specific serializers are defined as inner subclasses of the RdfSerializer class:

- {@link oaj.jena.RdfSerializer}
  - {@link oaj.jena.RdfXmlSerializer}
  - {@link oaj.jena.RdfXmlAbbrevSerializer}
  - {@link oaj.jena.N3Serializer}
  - {@link oaj.jena.NTripleSerializer}
  - {@link oaj.jena.TurtleSerializer}

The class hierarchy for the builder of this serializer is:

- {@link oaj.Context.Builder}
  - {@link oaj.BeanContextable.Builder}
    - {@link oaj.BeanTraverseContext.Builder}
      - {@link oaj.serializer.Serializer.Builder}
        - {@link oaj.serializer.WriterSerializer.Builder}
          - {@link oaj.jena.RdfSerializer.Builder}

Refer to the builder javadocs for configurable settings.

The following pre-configured serializers are provided for convenience:

- {@link oaj.jena.RdfSerializer}
  - {@link oaj.jena.RdfXmlSerializer}
    - {@link oaj.jena.RdfXmlSerializer#DEFAULT DEFAULT}
  - {@link oaj.jena.RdfXmlAbbrevSerializer}
    - {@link oaj.jena.RdfXmlAbbrevSerializer#DEFAULT DEFAULT}
  - {@link oaj.jena.N3Serializer}
    - {@link oaj.jena.N3Serializer#DEFAULT DEFAULT}
  - {@link oaj.jena.NTripleSerializer}
    - {@link oaj.jena.NTripleSerializer#DEFAULT DEFAULT}
  - {@link oaj.jena.TurtleSerializer}
    - {@link oaj.jena.TurtleSerializer#DEFAULT DEFAULT}

Abbreviated RDF/XML is currently the most widely accepted and readable RDF syntax, so the examples shown here will use that format.