org.apache.jena.rdf.model.Model.getBag()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中org.apache.jena.rdf.model.Model.getBag()方法的一些代码示例,展示了Model.getBag()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Model.getBag()方法的具体详情如下:
包路径:org.apache.jena.rdf.model.Model
类名称:Model
方法名:getBag

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));
}

相关文章

Model类方法