001 /*
002 * To change this template, choose Tools | Templates
003 * and open the template in the editor.
004 */
005
006 package net.rootdev.javardfa;
007
008 import org.openrdf.rio.RDFFormat;
009 import org.openrdf.rio.RDFParser;
010 import org.openrdf.rio.RDFParserFactory;
011 import java.nio.charset.Charset;
012 import org.kohsuke.MetaInfServices;
013
014 /**
015 *
016 * @author hjs
017 */
018 @MetaInfServices
019 public class RDFaXHtmlParserFactory implements RDFParserFactory {
020
021 public static final RDFFormat rdfa_xhtml_Format;
022 static {
023 rdfa_xhtml_Format = new RDFFormat("rdfa-xhtml", "application/xhtml+xml",
024 Charset.forName("UTF-8"), "xhtml", true, false);
025 RDFFormat.register(rdfa_xhtml_Format);
026 }
027
028 @Override
029 public RDFFormat getRDFFormat() {
030 return rdfa_xhtml_Format;
031 }
032
033 @Override
034 public RDFParser getParser() {
035 return new SesameRDFaParser.XHTMLRDFaParser();
036 }
037
038 }