本文整理汇总了Java中com.hp.hpl.jena.n3.IRIResolver类的典型用法代码示例。如果您正苦于以下问题:Java IRIResolver类的具体用法?Java IRIResolver怎么用?Java IRIResolver使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IRIResolver类属于com.hp.hpl.jena.n3包,在下文中一共展示了IRIResolver类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TranslationTableParser
import com.hp.hpl.jena.n3.IRIResolver; //导入依赖的package包/类
public TranslationTableParser(String url) {
try {
this.url = new IRIResolver().resolve(url);;
this.reader = new BufferedReader(new FileReader(new File(new URI(this.url))));
} catch (FileNotFoundException fnfex) {
throw new D2RQException("File not found at URL: " + this.url);
} catch (URISyntaxException usynex) {
throw new D2RQException("Malformed URI: " + this.url);
}
}
示例2: setBaseURI
import com.hp.hpl.jena.n3.IRIResolver; //导入依赖的package包/类
public void setBaseURI(String u)
{
resolver = new IRIResolver(u) ;
}