public class Abbreviated extends BaseXMLWriter implements RDFErrorHandler
NSPREFIXPROPBASE
system properties.
Use setNsPrefix
.
For best results it is necessary to set the property
"prettyTypes"
. See setProperty for information.RDFWriterF.getWriter(String)
dbg
_NotInteresting
NSPREFIXPROPBASE
Constructor and Description |
---|
Abbreviated() |
Modifier and Type | Method and Description |
---|---|
void |
error(Exception e)
report an error
|
void |
fatalError(Exception e)
report a catastrophic error.
|
void |
warning(Exception e)
report a warning
|
void |
write(Model baseModel,
Writer out,
String base)
Serialize Model
model to Writer out. |
getPrefixFor, isPredefinedEntityName, setErrorHandler, setLogger, setNsPrefix, setProperty, str2flags, write
public void write(Model baseModel, Writer out, String base)
BaseXMLWriter
model
to Writer out.
write
in interface RDFWriter
write
in class BaseXMLWriter
baseModel
- The model to be written.out
- The Writer to which the serialization should be sent.base
- the base URI for relative URI calculations. null
means use only absolute URI's.public void error(Exception e)
RDFErrorHandler
error
in interface RDFErrorHandler
e
- an exception representing the errorpublic void warning(Exception e)
RDFErrorHandler
warning
in interface RDFErrorHandler
e
- an exception representing the errorpublic void fatalError(Exception e)
RDFErrorHandler
fatalError
in interface RDFErrorHandler
e
- an exception representing the errorLicenced under the Apache License, Version 2.0