1   /*
2    * RDFpro - An extensible tool for building stream-oriented RDF processing libraries.
3    * 
4    * Written in 2014 by Francesco Corcoglioniti with support by Marco Amadori, Michele Mostarda,
5    * Alessio Palmero Aprosio and Marco Rospocher. Contact info on http://rdfpro.fbk.eu/
6    * 
7    * To the extent possible under law, the authors have dedicated all copyright and related and
8    * neighboring rights to this software to the public domain worldwide. This software is
9    * distributed without any warranty.
10   * 
11   * You should have received a copy of the CC0 Public Domain Dedication along with this software.
12   * If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
13   */
14  package eu.fbk.rdfpro.jsonld;
15  
16  import org.openrdf.rio.RDFFormat;
17  import org.openrdf.rio.RDFParser;
18  import org.openrdf.rio.RDFParserFactory;
19  
20  /**
21   * An {@link RDFParserFactory} for JSONLD parsers.
22   */
23  public class JSONLDParserFactory implements RDFParserFactory {
24  
25      /**
26       * Returns {@link RDFFormat#JSONLD}.
27       */
28      @Override
29      public RDFFormat getRDFFormat() {
30          return RDFFormat.JSONLD;
31      }
32  
33      /**
34       * Returns a new instance of {@link JSONLDParser}.
35       */
36      @Override
37      public RDFParser getParser() {
38          return new JSONLDParser();
39      }
40  
41  }