Package org.jrdf.parser.line

Examples of org.jrdf.parser.line.TriplesParser


        mapFactory = newMapFactory;
        namespaceListener = newNamespaceListener;
    }

    public RDFEventReader createRDFEventReader(final InputStream stream, final URI baseURI, final Graph graph) {
        final TriplesParser triplesParser = new TriplesParserImpl(init(graph));
        final PrefixParser prefixParser = new PrefixParserImpl(REGEX_MATCHER_FACTORY, namespaceListener);
        final FormatParser parser = new N3FormatParser(triplesParser, prefixParser);
        return new RDFEventReaderImpl(stream, baseURI, parser);
    }
View Full Code Here


        final FormatParser parser = new N3FormatParser(triplesParser, prefixParser);
        return new RDFEventReaderImpl(stream, baseURI, parser);
    }

    public RDFEventReader createRDFEventReader(final Reader reader, final URI baseURI, final Graph graph) {
        final TriplesParser triplesParser = new TriplesParserImpl(init(graph));
        final PrefixParser prefixParser = new PrefixParserImpl(REGEX_MATCHER_FACTORY, namespaceListener);
        final FormatParser parser = new N3FormatParser(triplesParser, prefixParser);
        return new RDFEventReaderImpl(reader, baseURI, parser);
    }
View Full Code Here

TOP

Related Classes of org.jrdf.parser.line.TriplesParser

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.