Class NQuadsParser
- All Implemented Interfaces:
RdfMetaProvider,XmlMetaProvider
RdfParser for parsing N-Quads into POJOs.
Accepts RDF in N-Quads format (quads with optional graph component) 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):
<...> <.../name> "Alice" <...> . <...> <.../age> "30"^^<http://www.w3.org/2001/XMLSchema#int> <...> .
Complex (nested address + array):
<...> <.../name> "Alice" <graph> . <...> <.../address> <.../address> <graph> . <.../address> <.../street> "123 Main St" <graph> . <.../address> <.../city> "Boston" <graph> . <.../address> <.../state> "MA" <graph> .
Notes:
- This class is thread safe and reusable.
See Also:
- {doc jmr.RdfDetails}
-
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 NQuadsParserDefault N-Quads 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 N-Quads parser, all default settings.
-
-
Constructor Details
-
NQuadsParser
Constructor.- Parameters:
builder- The builder for this object.
Cannot benull .
-
-
Method Details
-
create
Creates a new builder for this object.- Returns:
- A new builder.
-