Package org.apache.jena.riot.out

Examples of org.apache.jena.riot.out.SinkTripleOutput


        return new SerializationFactory<Triple>()
        {
            @Override
            public Sink<Triple> createSerializer(OutputStream out)
            {
                return new SinkTripleOutput(out, null, NodeToLabel.createBNodeByLabelEncoded()) ;
            }
           
            @Override
            public Iterator<Triple> createDeserializer(InputStream in)
            {
View Full Code Here


    {
        String filename = "data.ttl" ;

        // This is the heart of N-triples printing ... outoput is heavily buffered
        // so the FilterSinkRDF called flush at the end of parsing.
        Sink<Triple> output = new SinkTripleOutput(System.out, null, SyntaxLabels.createNodeToLabel()) ;
        StreamRDF filtered = new FilterSinkRDF(output, FOAF.name, FOAF.knows) ;
       
        // Call the parsing process.
        RDFDataMgr.parse(filtered, filename) ;
    }
View Full Code Here

        return new SerializationFactory<Triple>()
        {
            @Override
            public Sink<Triple> createSerializer(OutputStream out)
            {
                return new SinkTripleOutput(out, null, NodeToLabel.createBNodeByLabelEncoded()) ;
            }
           
            @Override
            public Iterator<Triple> createDeserializer(InputStream in)
            {
View Full Code Here

       
        String filename = "data.ttl" ;

        // This is the heart of N-triples printing ... outoput is heavily buffered
        // so the FilterSinkRDF called flush at the end of parsing.
        Sink<Triple> output = new SinkTripleOutput(System.out, null, SyntaxLabels.createNodeToLabel()) ;
        StreamRDF filtered = new FilterSinkRDF(output, FOAF.name, FOAF.knows) ;
       
        // Call the parsing process.
        RDFDataMgr.parse(filtered, filename) ;
    }
View Full Code Here

       
        if ( RDFLanguages.isTriples(lang) )
        {
            Sink<Triple> s = SinkNull.create() ;
            if ( ! modLangParse.toBitBucket() )
                s = new SinkTripleOutput(output, null, labels) ;
            if ( setup != null )
                s = InfFactory.infTriples(s, setup) ;
           
            SinkCounting<Triple> sink2 = new SinkCounting<Triple>(s) ;
            StreamRDF dest = StreamRDFLib.sinkTriples(sink2) ;
View Full Code Here

TOP

Related Classes of org.apache.jena.riot.out.SinkTripleOutput

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.