本文整理了Java中org.apache.jena.rdf.model.Model.getList()
方法的一些代码示例,展示了Model.getList()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Model.getList()
方法的具体详情如下:
包路径:org.apache.jena.rdf.model.Model
类名称:Model
方法名:getList
暂无
代码示例来源:origin: apache/jena
@Override
public SecuredRDFList getList( String uri ) throws ReadDeniedException, AuthenticationRequiredException {
checkRead();
return SecuredRDFListImpl.getInstance(holder.getSecuredItem(), holder.getBaseItem().getList(uri));
}
代码示例来源:origin: apache/jena
@Override
public SecuredRDFList getList( Resource r ) throws ReadDeniedException, AuthenticationRequiredException {
checkRead();
return SecuredRDFListImpl.getInstance(holder.getSecuredItem(), holder.getBaseItem().getList(r));
}
代码示例来源:origin: apache/jena
public void testStmtGetList()
{
Resource root = model.createResource(TestList.NS + "root");
Property p = model.createProperty(TestList.NS, "p");
Resource r = model.createResource(TestList.NS + "r");
Resource r1 = model.createResource(TestList.NS + "r1");
Resource r2 = model.createResource(TestList.NS + "r2");
RDFList list0 = model.createList(r1, r2);
model.add(r, p, list0);
Resource obj = model.listStatements(r, p, (Resource)null).next().getResource();
RDFList list1 = model.getList(obj);
boolean b = list0.sameListAs(list1);
assertTrue("Different lists: expected: "+list0+" : got: "+list1, b);
}
代码示例来源:origin: org.apache.jena/jena-core
public void testStmtGetList()
{
Resource root = model.createResource(TestList.NS + "root");
Property p = model.createProperty(TestList.NS, "p");
Resource r = model.createResource(TestList.NS + "r");
Resource r1 = model.createResource(TestList.NS + "r1");
Resource r2 = model.createResource(TestList.NS + "r2");
RDFList list0 = model.createList(r1, r2);
model.add(r, p, list0);
Resource obj = model.listStatements(r, p, (Resource)null).next().getResource();
RDFList list1 = model.getList(obj);
boolean b = list0.sameListAs(list1);
assertTrue("Different lists: expected: "+list0+" : got: "+list1, b);
}
内容来源于网络,如有侵权,请联系作者删除!