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.query.resultio.sparqlxml;
07:
08: import org.openrdf.query.resultio.TupleQueryResultFormat;
09: import org.openrdf.query.resultio.TupleQueryResultParser;
10: import org.openrdf.query.resultio.TupleQueryResultParserFactory;
11:
12: /**
13: * A {@link TupleQueryResultParserFactory} for parsers of SPARQL/XML tuple query
14: * results.
15: *
16: * @author Arjohn Kampman
17: */
18: public class SPARQLResultsXMLParserFactory implements
19: TupleQueryResultParserFactory {
20:
21: /**
22: * Returns {@link TupleQueryResultFormat#SPARQL}.
23: */
24: public TupleQueryResultFormat getTupleQueryResultFormat() {
25: return TupleQueryResultFormat.SPARQL;
26: }
27:
28: /**
29: * Returns a new instance of {@link SPARQLResultsXMLParser}.
30: */
31: public TupleQueryResultParser getParser() {
32: return new SPARQLResultsXMLParser();
33: }
34: }
|