use of org.apache.jena.irix.IRIxResolver in project jena by apache.
the class TestIRIxRIOT method irix_ttl_resolver_4.
@Test
public void irix_ttl_resolver_4() {
// Resolver:: no base, allow relative IRIs, no resolving -> warning.
IRIxResolver resolver = IRIxResolver.create().noBase().resolve(false).allowRelative(true).build();
testTTL("<relative>", resolver, 0, 1);
}
use of org.apache.jena.irix.IRIxResolver in project jena by apache.
the class TestIRIxRIOT method irix_ttl_resolver_5.
@Test
public void irix_ttl_resolver_5() {
// Resolver:: no base, allow relative IRIs, no resolving -> warning.
IRIxResolver resolver = IRIxResolver.create().noBase().resolve(false).allowRelative(true).build();
testTTL("<relative>", resolver, 0, 1);
}
use of org.apache.jena.irix.IRIxResolver in project jena by apache.
the class RiotLib method profile.
/**
* Create a parser profile for the given setup
*/
private static ParserProfile profile(String baseIRI, boolean resolveIRIs, boolean checking, ErrorHandler handler) {
LabelToNode labelToNode = SyntaxLabels.createLabelToNode();
IRIx base = resolveIRIs ? IRIs.resolveIRI(baseIRI) : IRIx.create(baseIRI);
IRIxResolver resolver = IRIxResolver.create(base).resolve(resolveIRIs).allowRelative(false).build();
return RiotLib.createParserProfile(factoryRDF(labelToNode), handler, resolver, checking);
}
use of org.apache.jena.irix.IRIxResolver in project jena by apache.
the class TestIRIxRIOT method irix_ttl_resolver_1.
@Test
public void irix_ttl_resolver_1() {
// Resolver:: no base, no relative IRIs -> error.
IRIxResolver resolver = IRIxResolver.create().noBase().allowRelative(false).build();
testTTL("<relative>", resolver, 1, 0);
}
use of org.apache.jena.irix.IRIxResolver in project jena by apache.
the class TestIRIxRIOT method irix_ttl_resolver_3.
@Test
public void irix_ttl_resolver_3() {
// Resolver:: no base, allow relative IRIs -> warning.
IRIxResolver resolver = IRIxResolver.create().noBase().resolve(true).allowRelative(true).build();
testTTL("<relative>", resolver, 0, 1);
}
Aggregations