Class Abbreviated

  • All Implemented Interfaces:
    RDFErrorHandler, RDFWriterI, RDFXMLWriterI

    public class Abbreviated
    extends BaseXMLWriter
    implements RDFErrorHandler
    Writes out RDF in the abbreviated syntax, for human consumption not only machine readable. It is not normal to call the constructor directly, but to use the method RDFWriterF.getWriter("RDF/XML-ABBREV"). Does not support the NSPREFIXPROPBASE system properties. Use setNsPrefix. For best results it is necessary to set the property "prettyTypes". See setProperty for information.
    See Also:
    RDFWriterF.getWriter(String)
    • Constructor Detail

      • Abbreviated

        public Abbreviated()
    • Method Detail

      • error

        public void error​(java.lang.Exception e)
        Description copied from interface: RDFErrorHandler
        report an error
        Specified by:
        error in interface RDFErrorHandler
        Parameters:
        e - an exception representing the error
      • warning

        public void warning​(java.lang.Exception e)
        Description copied from interface: RDFErrorHandler
        report a warning
        Specified by:
        warning in interface RDFErrorHandler
        Parameters:
        e - an exception representing the error
      • fatalError

        public void fatalError​(java.lang.Exception e)
        Description copied from interface: RDFErrorHandler
        report a catastrophic error. Must not return.
        Specified by:
        fatalError in interface RDFErrorHandler
        Parameters:
        e - an exception representing the error