Package org.jrdf.parser

Examples of org.jrdf.parser.NamespaceListener


import org.jrdf.util.boundary.RegexMatcherFactoryImpl;

public class N3ParserFactory implements LineHandlerFactory {
    public LineHandler createParser(final Graph newGraph, final MapFactory mapFactory) {
        final RegexMatcherFactory matcherFactory = new RegexMatcherFactoryImpl();
        final NamespaceListener listener = new MemNamespaceListener();
        final NamespaceAwareNodeParsersFactory parsersFactory = new NamespaceAwareNodeParsersFactoryImpl(newGraph,
            mapFactory, matcherFactory, listener);
        final NodeMaps nodeMaps = new NamespaceAwareNodeMaps(parsersFactory.getUriReferenceParser(),
            parsersFactory.getBlankNodeParser(), parsersFactory.getLiteralParser());
        final RegexTripleParser parser = new RegexTripleParserImpl(matcherFactory, newGraph.getTripleFactory(),
View Full Code Here

TOP

Related Classes of org.jrdf.parser.NamespaceListener

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.