Package org.apache.juneau.marshall.jena
Class TriGParser
- All Implemented Interfaces:
RdfMetaProvider,XmlMetaProvider
Subclass of
RdfParser for parsing TriG into POJOs.
Accepts RDF datasets in TriG format (Turtle with named graphs) and converts them 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 TriGParserDefault TriG 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 TriG parser, all default settings.
-
-
Constructor Details
-
TriGParser
Constructor.- Parameters:
builder- The builder for this object.
Cannot benull .
-
-
Method Details
-
create
Creates a new builder for this object.- Returns:
- A new builder.
-