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

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


{
    // ---- PrintSerializable
    public static String toString(PrintSerializable item, PrefixMapping pmap)
    {
        IndentedLineBuffer buff = new IndentedLineBuffer() ;
        SerializationContext sCxt = new SerializationContext(pmap) ;
        item.output(buff, sCxt) ;
        return buff.toString() ;
    }
View Full Code Here


        QueryEngineFactory f = QueryEngineRegistry.findFactory(query, qe.getDataset().asDatasetGraph(), ARQ.getContext()) ;
        if ( f == null )
            System.err.println("printPlan: Unknown engine type: "+Utils.className(qe)) ;
       
        Plan plan = f.create(query, qe.getDataset().asDatasetGraph(), BindingRoot.create(), ARQ.getContext()) ;
        SerializationContext sCxt = new SerializationContext(query) ;
        IndentedWriter out = IndentedWriter.stdout ;
   
        plan.output(out, sCxt) ;
        out.flush();
    }
View Full Code Here

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

    private static SerializationContext sCxt(Prologue prologue)
    {
//        return new SerializationContext(prologue) ;
        // Pragmatic.
        if ( false && prologue.explicitlySetBaseURI() )
            return new SerializationContext(prologue) ;
        else
            return new SerializationContext(prologue.getPrefixMapping()) ;
    }
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

        return sCxt(ARQConstants.getGlobalPrefixMap()) ;
    }
   
    public static SerializationContext sCxt(PrefixMapping pmap)
    {
        return new SerializationContext(pmap) ;
    }
View Full Code Here

   
    static public void resetBNodeLabels() { bNodeMap = new NodeToLabelMapBNode("b", false) ; }
   
    private static SerializationContext newSerializationContext(PrefixMapping prefixMapping)
    {
        return new SerializationContext(prefixMapping, bNodeMap) ;
    }
View Full Code Here

        return new SerializationContext(prefixMapping, bNodeMap) ;
    }
   
    private static SerializationContext newSerializationContext(Prologue prologue)
    {
        return new SerializationContext(prologue, bNodeMap) ;
    }
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

    }

    @Override
    public void output(IndentedWriter out)
    {
        SerializationContext sCxt = new SerializationContext(ARQConstants.getGlobalPrefixMap()) ;
        output(out, sCxt) ;
    }
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.