Package org.apache.juneau.marshall.jena
Class TurtleParser
- All Implemented Interfaces:
RdfMetaProvider,XmlMetaProvider
Subclass of
RdfParser for parsing Turtle into POJOs.
Accepts RDF in W3C Turtle format and converts it to Java beans, maps, collections, and primitive types. Date/time literals are parsed via ISO 8601.
Examples:
Example input (bean with name/age):
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.marshall.jena.RdfParser
RdfParser.Builder<SELF extends RdfParser.Builder<SELF>>, RdfParser.DefaultBuilderNested classes/interfaces inherited from class org.apache.juneau.marshall.parser.Parser
Parser.Null -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TurtleParserDefault Turtle parser, all default settings.Fields inherited from class org.apache.juneau.marshall.jena.RdfParser
collectionFormat, juneauBpNs, juneauNs, language, looseCollections, trimWhitespaceFields inherited from class org.apache.juneau.marshall.parser.Parser
autoCloseStreams, consumes, debugOutputLines, listener, nulls, trimStrings, unbufferedFields 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 RdfParser.Builder<?>create()Creates a new builder for this object.Methods inherited from class org.apache.juneau.marshall.jena.RdfParser
copy, createSession, getCollectionFormat, getJenaSettings, getJuneauBpNs, getJuneauNs, getLanguage, getRdfBeanMeta, getRdfBeanPropertyMeta, getRdfClassMeta, getSession, getXmlBeanMeta, getXmlBeanPropertyMeta, getXmlClassMeta, isLooseCollections, isTrimWhitespace, propertiesMethods inherited from class org.apache.juneau.marshall.parser.ReaderParser
getStreamCharset, isReaderParserMethods inherited from class org.apache.juneau.marshall.parser.Parser
canHandle, createParserBuilder, doRead, getDebugOutputLines, getListener, getMediaTypes, getNulls, getPrimaryMediaType, isAutoCloseStreams, isTrimStrings, isUnbuffered, read, read, read, read, read, read, readArgs, readIntoCollection, readIntoMap, readWithOuterMethods inherited from class org.apache.juneau.marshall.MarshallingContextable
getDurationFormat, getMarshallingContext, getPeriodFormatMethods inherited from class org.apache.juneau.marshall.Context
createBuilder, getAnnotationProvider, init, isDebug, toString
-
Field Details
-
DEFAULT
Default Turtle parser, all default settings.
-
-
Constructor Details
-
TurtleParser
Constructor.- Parameters:
builder- The builder for this object.
Cannot benull .
-
-
Method Details
-
create
Creates a new builder for this object.- Returns:
- A new builder.
-