Class SPARQLUpdateWriter

  • All Implemented Interfaces:
    org.apache.jena.rdf.model.RDFWriter

    public class SPARQLUpdateWriter
    extends org.apache.jena.n3.N3JenaWriterCommon
    Support for writing out a model in SPARQL UPDATE syntax. Essentially just the normal N3/Turle writer but with support for separate writing of prefix and body information.
    Author:
    Dave Reynolds
    • Field Summary

      • Fields inherited from class org.apache.jena.n3.N3JenaWriterCommon

        allowDecimals, allowDoubles, allowTripleQuotedStrings, alwaysAllocateBNodeLabel, bNodeCounter, bNodesMap, errorHandler, indentObject, indentProperty, minGap, minGapStr, NS_W3_log, out, prefixMap, propertyCol, reversePrefixMap, shortSubject, subjectColumn, useWellKnownPropertySymbols, wellKnownPropsMap, wellKnownPropsMapN3, wellKnownPropsMapTurtle, widePropertyLen, writerPropertyMap, WS
      • Fields inherited from interface org.apache.jena.rdf.model.RDFWriter

        NSPREFIXPROPBASE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void writeUpdateBody​(org.apache.jena.rdf.model.Model model, Writer _out)  
      static void writeUpdatePrefixes​(org.apache.jena.shared.PrefixMapping prefixes, Writer writer)  
      • Methods inherited from class org.apache.jena.n3.N3JenaWriterCommon

        absolutePropName, calcPropertyPadding, checkNameChar, checkNamePart, checkNameStartChar, checkPrefixedName, checkPrefixPart, countArcsTo, countArcsTo, countProperties, countProperties, finishWriting, formatLiteral, formatNode, formatProperty, formatResource, formatURI, getBooleanValue, getIntValue, getOutput, getPrefixes, getPropValue, getStringValue, listSubjects, localPropName, pad, prepare, preparePropertiesForSubject, processModel, rdfListIterator, setErrorHandler, setProperty, skipThisSubject, splitIdx, startWriting, string, write, write, writeHeader, writeLiteral, writeModel, writeObject, writeObjectList, writeOneGraphNode, writePrefixes, writePropertiesForSubject, writeSubject
    • Constructor Detail

      • SPARQLUpdateWriter

        public SPARQLUpdateWriter()
    • Method Detail

      • writeUpdatePrefixes

        public static void writeUpdatePrefixes​(org.apache.jena.shared.PrefixMapping prefixes,
                                               Writer writer)
                                        throws IOException
        Throws:
        IOException
      • writeUpdateBody

        public void writeUpdateBody​(org.apache.jena.rdf.model.Model model,
                                    Writer _out)
                             throws IOException
        Throws:
        IOException