本文整理了Java中org.apache.jena.rdf.model.Model.getBag()
方法的一些代码示例,展示了Model.getBag()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Model.getBag()
方法的具体详情如下:
包路径:org.apache.jena.rdf.model.Model
类名称:Model
方法名:getBag
暂无
代码示例来源:origin: vivo-project/Vitro
@Override
public Bag getBag(Resource r) {
return inner.getBag(r);
}
代码示例来源:origin: vivo-project/Vitro
@Override
public Bag getBag(String uri) {
return inner.getBag(uri);
}
代码示例来源:origin: apache/jena
@Override
public SecuredBag getBag(final String uri) throws ReadDeniedException, AuthenticationRequiredException {
checkRead();
checkRead(new Triple(NodeFactory.createURI(uri), RDF.type.asNode(), RDF.Bag.asNode()));
return SecuredBagImpl.getInstance(holder.getSecuredItem(), holder.getBaseItem().getBag(uri));
}
代码示例来源:origin: apache/jena
@Override
public SecuredBag getBag(final Resource r) throws ReadDeniedException, AuthenticationRequiredException {
checkRead();
checkRead(new Triple(r.asNode(), RDF.type.asNode(), RDF.Bag.asNode()));
return SecuredBagImpl.getInstance(holder.getSecuredItem(), holder.getBaseItem().getBag(r));
}
代码示例来源:origin: apache/jena
@Override
@Before
public void setup() {
super.setup();
final Bag bag = baseModel.getBag("http://example.com/testContainer");
bag.add("SomeDummyItem");
setSecuredRDFNode(SecuredBagImpl.getInstance(securedModel, bag), bag);
}
代码示例来源:origin: apache/jena
public void testGetBag()
{
final String uri = "http://aldabaran.hpl.hp.com/rdf/test4/" + 150;
model.createBag(uri);
final Bag b = model.getBag(uri);
Assert.assertEquals(uri, b.getURI());
Assert.assertTrue(model.contains(b, RDF.type, RDF.Bag));
}
代码示例来源:origin: apache/jena
@Override
@Before
public void setup() {
super.setup();
final Container container = baseModel.getBag("http://example.com/testContainer");
container.add("SomeDummyItem");
setSecuredRDFNode(SecuredContainerImpl.getInstance(securedModel, container), container);
}
代码示例来源:origin: org.apache.jena/jena-core
public void testGetBag()
{
final String uri = "http://aldabaran.hpl.hp.com/rdf/test4/" + 150;
model.createBag(uri);
final Bag b = model.getBag(uri);
Assert.assertEquals(uri, b.getURI());
Assert.assertTrue(model.contains(b, RDF.type, RDF.Bag));
}
内容来源于网络,如有侵权,请联系作者删除!