use of org.apache.jena.sparql.junit.EarlReport in project jena by apache.
the class rdflangtest method oneManifestEarl.
static void oneManifestEarl(String testManifest) {
EarlReport report = new EarlReport(systemURI, name, version, homepage);
FactoryTestRiot.report = report;
TestSuite suite = FactoryTestRiot.make(testManifest, null, null);
SimpleTestRunner.runSilent(suite);
Model model = report.getModel();
model.setNsPrefix("rdft", VocabLangRDF.getURI());
model.setNsPrefix("turtletest", "http://www.w3.org/2013/TurtleTests/manifest.ttl#");
insertMetaOld(report);
RDFDataMgr.write(System.out, model, Lang.TURTLE);
}
use of org.apache.jena.sparql.junit.EarlReport in project jena by apache.
the class qtest method oneManifestEarl.
static void oneManifestEarl(String testManifest) {
String name = "ARQ";
String releaseName = "ARQ";
String version = "2.9.1";
String homepage = "http://jena.apache.org/";
// Null for bNode.
String systemURI = "http://jena.apache.org/#arq";
// Include information later.
EarlReport report = new EarlReport(systemURI, name, version, homepage);
ScriptTestSuiteFactory.results = report;
Model model = report.getModel();
model.setNsPrefix("dawg", TestManifest.getURI());
// Update the EARL report.
Resource jena = model.createResource().addProperty(FOAF.homepage, model.createResource("http://jena.apache.org/"));
// ARQ is part fo Jena.
Resource arq = report.getSystem().addProperty(DCTerms.isPartOf, jena);
// Andy wrote the test software (updates the thing being tested as well as they are the same).
Resource who = model.createResource(FOAF.Person).addProperty(FOAF.name, "Andy Seaborne").addProperty(FOAF.homepage, model.createResource("http://people.apache.org/~andy"));
Resource reporter = report.getReporter();
reporter.addProperty(DC.creator, who);
model.setNsPrefix("doap", DOAP.getURI());
model.setNsPrefix("xsd", XSD.getURI());
// DAWG specific stuff.
Resource system = report.getSystem();
system.addProperty(RDF.type, DOAP.Project);
system.addProperty(DOAP.name, name);
system.addProperty(DOAP.homepage, homepage);
system.addProperty(DOAP.maintainer, who);
Resource release = model.createResource(DOAP.Version);
system.addProperty(DOAP.release, release);
Node today_node = NodeFactoryExtra.todayAsDate();
Literal today = model.createTypedLiteral(today_node.getLiteralLexicalForm(), today_node.getLiteralDatatype());
release.addProperty(DOAP.created, today);
// Again
release.addProperty(DOAP.name, releaseName);
TestSuite suite = ScriptTestSuiteFactory.make(testManifest);
SimpleTestRunner.runSilent(suite);
ScriptTestSuiteFactory.results.getModel().write(System.out, "TTL");
}
use of org.apache.jena.sparql.junit.EarlReport in project jena by apache.
the class sdbtest method execOneManifestEarl.
static void execOneManifestEarl(String testManifest) {
// Include information later.
EarlReport report = new EarlReport("http://jena.apache.org/#sdb", "SDB", SDB.VERSION, "http://jena.apahe.org/");
ScriptTestSuiteFactory.results = report;
Model model = report.getModel();
// Update the EARL report.
Resource jena = model.createResource().addProperty(FOAF.homepage, model.createResource("http://jena.apahe.org/"));
// SDB is part of Jena.
Resource arq = report.getSystem().addProperty(DCTerms.isPartOf, jena);
// Andy wrote the test software (updates the thing being tested as well as they are the same).
Resource who = model.createResource(FOAF.Person).addProperty(FOAF.name, "Andy Seaborne").addProperty(FOAF.homepage, model.createResource("http://people.apache.org/~andy"));
Resource reporter = report.getReporter();
reporter.addProperty(DC.creator, who);
TestSuite suite = ScriptTestSuiteFactory.make(testManifest);
SimpleTestRunner.runSilent(suite);
ScriptTestSuiteFactory.results.getModel().write(System.out, "TTL");
}
Aggregations