Package org.jrdf.parser.ntriples.parser

Examples of org.jrdf.parser.ntriples.parser.NodeMapsImpl


public class NTriplesParserFactory implements LineHandlerFactory {
    public LineHandler createParser(final Graph newGraph, final MapFactory newMapFactory) {
        final NodeParsersFactory parsersFactory = new NodeParsersFactoryImpl(newGraph, newMapFactory);
        final RegexMatcherFactory matcherFactory = new RegexMatcherFactoryImpl();
        final NodeMaps nodeMaps = new NodeMapsImpl(parsersFactory.getUriReferenceParser(),
            parsersFactory.getBlankNodeParser(), parsersFactory.getLiteralParser());
        final RegexTripleParser parser = new RegexTripleParserImpl(matcherFactory, newGraph.getTripleFactory(),
            nodeMaps);
        final TripleParser tripleParser = new TripleParserImpl(matcherFactory, parsersFactory.getBlankNodeParser(),
            parser);
View Full Code Here


        final URIReferenceParser uriReferenceParser = parsersFactory.getUriReferenceParser();
        final ParserBlankNodeFactory blankNodeFactory = new ParserBlankNodeFactoryImpl(mapFactory,
            graph.getElementFactory());
        blankNodeParser = parsersFactory.getBlankNodeParserWithFactory(blankNodeFactory);
        final LiteralParser literalParser = parsersFactory.getLiteralParser();
        final NodeMaps nodeMaps = new NodeMapsImpl(uriReferenceParser, blankNodeParser, literalParser);
        regexTripleFactory = new RegexTripleParserImpl(REGEX_MATCHER_FACTORY, graph.getTripleFactory(), nodeMaps);
    }
View Full Code Here

TOP

Related Classes of org.jrdf.parser.ntriples.parser.NodeMapsImpl

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.