public class RDFParserOptions extends Object implements Serializable, IRDFParserOptions
RDFParser
. The options all have the defaults specified by
RDFParserBase
.
Note: synchronization on the class instance is used to ensure safe publication of the member field values.
Modifier and Type | Class and Description |
---|---|
static interface |
RDFParserOptions.Options |
Constructor and Description |
---|
RDFParserOptions() |
RDFParserOptions(boolean verifyData,
boolean preserveBlankNodeIDs,
boolean stopAtFirstError,
org.openrdf.rio.RDFParser.DatatypeHandling datatypeHandling) |
RDFParserOptions(Properties properties) |
Modifier and Type | Method and Description |
---|---|
static void |
apply(IRDFParserOptions opts,
org.openrdf.rio.RDFParser p)
Utility method applies the options to the
RDFParser . |
void |
apply(org.openrdf.rio.RDFParser p)
Apply the options to the parser.
|
boolean |
equals(Object o) |
org.openrdf.rio.RDFParser.DatatypeHandling |
getDatatypeHandling()
Return the
RDFParser.DatatypeHandling mode for the parser. |
boolean |
getPreserveBNodeIDs()
Return
true if the parser should preserve blank node IDs. |
boolean |
getStopAtFirstError()
Return
true if the parser should stop at the first error and
false if it should continue processing. |
boolean |
getVerifyData()
Return
true if the parser should verify the data. |
void |
setDatatypeHandling(org.openrdf.rio.RDFParser.DatatypeHandling datatypeHandling)
Sets the datatype handling mode (default is
RDFParser.DatatypeHandling.VERIFY ). |
void |
setPreserveBNodeIDs(boolean preserveBNodeIDs)
Set whether the parser should preserve bnode identifiers specified in the
source (default is
false ). |
void |
setStopAtFirstError(boolean stopAtFirstError)
Sets whether the parser should stop immediately if it finds an error in
the data (default value is
true ). |
void |
setVerifyData(boolean verifyData)
Sets whether the parser should verify the data it parses (default value
is
true ). |
String |
toString() |
public RDFParserOptions()
public RDFParserOptions(Properties properties)
public RDFParserOptions(boolean verifyData, boolean preserveBlankNodeIDs, boolean stopAtFirstError, org.openrdf.rio.RDFParser.DatatypeHandling datatypeHandling)
public boolean getVerifyData()
IRDFParserOptions
true
if the parser should verify the data.getVerifyData
in interface IRDFParserOptions
public boolean getStopAtFirstError()
IRDFParserOptions
true
if the parser should stop at the first error and
false
if it should continue processing.getStopAtFirstError
in interface IRDFParserOptions
public boolean getPreserveBNodeIDs()
IRDFParserOptions
true
if the parser should preserve blank node IDs.getPreserveBNodeIDs
in interface IRDFParserOptions
public org.openrdf.rio.RDFParser.DatatypeHandling getDatatypeHandling()
IRDFParserOptions
RDFParser.DatatypeHandling
mode for the parser.getDatatypeHandling
in interface IRDFParserOptions
public void setDatatypeHandling(org.openrdf.rio.RDFParser.DatatypeHandling datatypeHandling)
IRDFParserOptions
RDFParser.DatatypeHandling.VERIFY
).setDatatypeHandling
in interface IRDFParserOptions
public void setPreserveBNodeIDs(boolean preserveBNodeIDs)
IRDFParserOptions
false
).setPreserveBNodeIDs
in interface IRDFParserOptions
public void setStopAtFirstError(boolean stopAtFirstError)
IRDFParserOptions
true
).setStopAtFirstError
in interface IRDFParserOptions
public void setVerifyData(boolean verifyData)
IRDFParserOptions
true
).setVerifyData
in interface IRDFParserOptions
public void apply(org.openrdf.rio.RDFParser p)
p
- The parser.public static void apply(IRDFParserOptions opts, org.openrdf.rio.RDFParser p)
RDFParser
.opts
- The options.p
- The parser.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.