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.trix;
07:
08: import org.openrdf.rio.RDFFormat;
09: import org.openrdf.rio.RDFParser;
10: import org.openrdf.rio.RDFParserFactory;
11:
12: /**
13: * An {@link RDFParserFactory} for TriX parsers.
14: *
15: * @author Arjohn Kampman
16: */
17: public class TriXParserFactory implements RDFParserFactory {
18:
19: /**
20: * Returns {@link RDFFormat#TRIX}.
21: */
22: public RDFFormat getRDFFormat() {
23: return RDFFormat.TRIX;
24: }
25:
26: /**
27: * Returns a new instance of {@link TriXParser}.
28: */
29: public RDFParser getParser() {
30: return new TriXParser();
31: }
32: }
|