Package org.apache.juneau.marshall.jena
Class N3Serializer
- All Implemented Interfaces:
Function<Object,,String> ThrowingFunction<Object,,String> RdfMetaProvider,XmlMetaProvider
Subclass of
RdfSerializer for serializing POJOs to N3 (Notation3) format.
Produces RDF in Notation3 syntax, a compact, readable format that extends Turtle with additional features such as formulas and variables.
Examples:
Example output (bean with name/age):
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.marshall.jena.RdfSerializer
RdfSerializer.Builder<SELF extends RdfSerializer.Builder<SELF>>, RdfSerializer.DefaultBuilderNested classes/interfaces inherited from class org.apache.juneau.marshall.serializer.Serializer
Serializer.Null -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final N3SerializerDefault N3 serializer, all default settings.Fields inherited from class org.apache.juneau.marshall.jena.RdfSerializer
addBeanTypesRdf, addLiteralTypes, addRootProperty, autoDetectNamespaces, collectionFormat, juneauBpNs, juneauNs, language, looseCollections, useXmlNamespacesFields inherited from class org.apache.juneau.marshall.serializer.WriterSerializer
maxIndent, quoteChar, quoteCharOverride, useWhitespaceFields inherited from class org.apache.juneau.marshall.serializer.Serializer
accept, addBeanTypes, addRootType, keepNullProperties, listener, nonDefault, produces, sortCollections, sortMaps, trimEmptyCollections, trimEmptyMaps, trimStringsFields inherited from class org.apache.juneau.marshall.MarshallingContextable
marshallingContextFields inherited from class org.apache.juneau.marshall.Context
CONTEXT_APPLY_FILTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RdfSerializer.Builder<?>create()Creates a new builder for this object.Methods inherited from class org.apache.juneau.marshall.jena.RdfSerializer
copy, createSession, getCollectionFormat, getJenaSettings, getJuneauBpNs, getJuneauNs, getLanguage, getNamespaces, getRdfBeanMeta, getRdfBeanPropertyMeta, getRdfClassMeta, getSession, getXmlBeanMeta, getXmlBeanPropertyMeta, getXmlClassMeta, isAddBeanTypes, isAddLiteralTypes, isAddRootProp, isAutoDetectNamespaces, isLooseCollections, isUseXmlNamespaces, propertiesMethods inherited from class org.apache.juneau.marshall.serializer.WriterSerializer
applyThrows, getMaxIndent, getQuoteChar, getStreamCharset, isUseWhitespace, isWriterSerializer, println, quoteChar, toString, writeMethods inherited from class org.apache.juneau.marshall.serializer.Serializer
createSerializerBuilder, doWrite, forEachAcceptMediaType, getListener, getMediaTypeRanges, getPrimaryMediaType, getResponseContentType, getResponseHeaders, getUriContext, getUriRelativity, getUriResolution, isAddRootType, isKeepNullProperties, isNonDefault, isSortCollections, isSortMaps, isTrimEmptyCollections, isTrimEmptyMaps, isTrimStrings, write, writeToStringMethods inherited from class org.apache.juneau.marshall.MarshallingTraverseContext
getDetectRecursions, getIgnoreRecursions, getInitialDepth, getMaxDepth, isDetectRecursions, isIgnoreRecursions, shouldDetectRecursionsMethods inherited from class org.apache.juneau.marshall.MarshallingContextable
getDurationFormat, getMarshallingContext, getPeriodFormatMethods inherited from class org.apache.juneau.marshall.Context
createBuilder, getAnnotationProvider, init, isDebug, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.juneau.commons.function.ThrowingFunction
apply
-
Field Details
-
DEFAULT
Default N3 serializer, all default settings.
-
-
Constructor Details
-
N3Serializer
Constructor.- Parameters:
builder- The builder for this object.
Cannot benull .
-
-
Method Details
-
create
Creates a new builder for this object.- Returns:
- A new builder.
-