001 /*
002 * To change this template, choose Tools | Templates
003 * and open the template in the editor.
004 */
005
006 package net.rootdev.javardfa.conformance;
007
008 import com.hp.hpl.jena.rdf.model.Model;
009 import java.io.IOException;
010 import java.net.URISyntaxException;
011 import java.util.Collection;
012 import java.util.Collections;
013 import net.rootdev.javardfa.jena.JenaStatementSink;
014 import net.rootdev.javardfa.ParserFactory;
015 import net.rootdev.javardfa.ParserFactory.Format;
016 import org.junit.runners.Parameterized.Parameters;
017 import org.xml.sax.SAXException;
018 import org.xml.sax.XMLReader;
019
020 /**
021 *
022 * @author pldms
023 */
024 public class HTML4 extends RDFaConformance
025 {
026 @Parameters
027 public static Collection<String[]> testFiles()
028 throws URISyntaxException, IOException {
029 if (false)
030 return Collections.EMPTY_LIST;
031 else
032 return RDFaConformance.
033 testFiles("http://rdfa.digitalbazaar.com/test-suite/test-cases/html4/html4-manifest.rdf",
034 "http://rdfa.digitalbazaar.com/test-suite/test-cases/html4/0121",
035 "http://rdfa.digitalbazaar.com/test-suite/test-cases/html4/0113"
036 );
037 }
038
039 public HTML4(String test, String title,
040 String purpose, String input, String query, String expected) {
041 super(test, title, purpose, input, query, expected);
042 }
043
044 @Override
045 public XMLReader getParser(Model model) throws SAXException {
046 return ParserFactory.createReaderForFormat(new JenaStatementSink(model), Format.HTML);
047 }
048 }