Package org.jrdf.parser.ntriples.parser

Examples of org.jrdf.parser.ntriples.parser.RegexNodeParser


        predicateGroupMatches.remove(BLANK_NODE_GROUP);
        predicateGroupMatches.remove(LITERAL_GROUP);
    }

    private void standardMatches() {
        groupMatches.put(URI_GROUP, new RegexNodeParser() {
            public Node parse(final String line) throws ParseException {
                return uriReferenceParser.parseURIReference(line);
            }
        });
        groupMatches.put(NS_LOCAL_NAME_GROUP, new RegexNodeParser() {
            public Node parse(final String line) throws ParseException {
                return uriReferenceParser.parseURIReferenceWithNamespace(line);
            }
        });
        groupMatches.put(BLANK_NODE_GROUP, new RegexNodeParser() {
            public Node parse(final String line) throws ParseException {
                return blankNodeParser.parseBlankNode(line);
            }
        });
        groupMatches.put(LITERAL_GROUP, new RegexNodeParser() {
            public Node parse(final String line) throws ParseException {
                return literalNodeParser.parseLiteral(line);
            }
        });
    }
View Full Code Here

TOP

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

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.