Package com.hp.hpl.jena.sparql.serializer

Examples of com.hp.hpl.jena.sparql.serializer.SerializationContext


            throw new NullPointerException("out") ;
       
        // To get legal syntax out, the serialization context
        // has to be a bNode mapping that does ??N vars to bNodes
        if (sCxt == null)
            sCxt = new SerializationContext((Prologue)null, new NodeToLabelMapBNode());
       
        this.out = out;
        this.sCxt = sCxt;
    }
View Full Code Here


   
    // -- Convenience static methods -----------------------
   
    public static void output(UpdateRequest request, IndentedWriter out)
    {
        SerializationContext sCxt = new SerializationContext(request, new NodeToLabelMapBNode()) ;
        output(request, out, sCxt);
    }
View Full Code Here

    public static void output(IndentedWriter iWriter, Op op, PrefixMapping pMap)
    {
        if ( pMap == null )
            pMap = OpPrefixesUsed.used(op, ARQConstants.getGlobalPrefixMap()) ;
        SerializationContext sCxt = new SerializationContext(pMap) ;
        output(iWriter, op, sCxt) ;
    }
View Full Code Here

        output(iWriter, op, sCxt) ;
    }

    public static void output(IndentedWriter iWriter, Op op, Prologue prologue)
    {
        SerializationContext sCxt = new SerializationContext(prologue) ;
        output(iWriter, op, sCxt) ;
    }
View Full Code Here

    // Actual work
    public static void output(final IndentedWriter iWriter, final Op op, SerializationContext sCxt)
    {
        if ( sCxt == null )
            sCxt = new SerializationContext() ;
        final SerializationContext sCxt2 = sCxt ;
        WriterBasePrefix.Fmt fmt =
            new WriterBasePrefix.Fmt() {
                @Override
                public void format() {op.visit(new OpWriterWorker(iWriter, sCxt2)) ;}
                } ;
        WriterBasePrefix.output(iWriter, fmt, sCxt2.getPrologue()) ;
    }       
View Full Code Here

    @Override
    public String toString()
    {
        IndentedLineBuffer out = new IndentedLineBuffer() ;
       
        SerializationContext sCxt = SSE.sCxt((SSE.defaultPrefixMapWrite)) ;
       
        boolean first = true ;
        for ( Triple t : triples )
        {
            if ( !first )
View Full Code Here

    private static final int NoNL = WriterLib.NoNL ;
    private static final int NoSP = WriterLib.NoSP ;
   
    public static void write(Path path, Prologue prologue)
    {
        output(IndentedWriter.stdout, path, new SerializationContext(prologue)) ;
    }
View Full Code Here

   
    public final String asUnquotedString()
    { return asString() ; }

    public final String asQuotedString()
    { return asQuotedString(new SerializationContext()) ; }
View Full Code Here

   
    @Override
    public void output(IndentedWriter out, SerializationContext sCxt)
    {
        if ( sCxt == null )
            sCxt = new SerializationContext() ;
        FmtExpr fmt = new FmtExpr(out, sCxt) ;
        format(fmt, out) ;
    }
View Full Code Here

public class UpdateWriter
{
    public static void output(UpdateRequest request, IndentedWriter out)
    {
        output(request, out, new SerializationContext(request)) ;
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sparql.serializer.SerializationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.