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()
IRDFParserOptionstrue if the parser should verify the data.getVerifyData in interface IRDFParserOptionspublic boolean getStopAtFirstError()
IRDFParserOptionstrue if the parser should stop at the first error and
false if it should continue processing.getStopAtFirstError in interface IRDFParserOptionspublic boolean getPreserveBNodeIDs()
IRDFParserOptionstrue if the parser should preserve blank node IDs.getPreserveBNodeIDs in interface IRDFParserOptionspublic org.openrdf.rio.RDFParser.DatatypeHandling getDatatypeHandling()
IRDFParserOptionsRDFParser.DatatypeHandling mode for the parser.getDatatypeHandling in interface IRDFParserOptionspublic void setDatatypeHandling(org.openrdf.rio.RDFParser.DatatypeHandling datatypeHandling)
IRDFParserOptionsRDFParser.DatatypeHandling.VERIFY).setDatatypeHandling in interface IRDFParserOptionspublic void setPreserveBNodeIDs(boolean preserveBNodeIDs)
IRDFParserOptionsfalse).setPreserveBNodeIDs in interface IRDFParserOptionspublic void setStopAtFirstError(boolean stopAtFirstError)
IRDFParserOptionstrue).setStopAtFirstError in interface IRDFParserOptionspublic void setVerifyData(boolean verifyData)
IRDFParserOptionstrue).setVerifyData in interface IRDFParserOptionspublic 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.