01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.rio.n3;
07:
08: import org.openrdf.rio.RDFFormat;
09: import org.openrdf.rio.RDFParser;
10: import org.openrdf.rio.RDFParserFactory;
11: import org.openrdf.rio.turtle.TurtleParser;
12:
13: /**
14: * An {@link RDFParserFactory} for N3 parsers.
15: *
16: * @author Arjohn Kampman
17: */
18: public class N3ParserFactory implements RDFParserFactory {
19:
20: /**
21: * Returns {@link RDFFormat#N3}.
22: */
23: public RDFFormat getRDFFormat() {
24: return RDFFormat.N3;
25: }
26:
27: /**
28: * Returns a new instance of {@link TurtleParser}.
29: */
30: public RDFParser getParser() {
31: return new TurtleParser();
32: }
33: }
|