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