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

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

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

Model.isReified介绍

[英]Determine if this Statement has been reified in this Model.
[中]确定此声明是否已在此模型中具体化。

代码示例

代码示例来源:origin: vivo-project/Vitro

@Override
public boolean isReified(Statement s) {
  return inner.isReified(s);
}

代码示例来源:origin: apache/jena

public void testIsReified()
{
  final ReifiedStatement rs = model.createReifiedStatement(
      AbstractTestReifiedStatements.aURI, SPO);
  final Resource BS = model
      .createResource(AbstractTestReifiedStatements.anchor + "BS");
  final Property BP = model
      .createProperty(AbstractTestReifiedStatements.anchor + "BP");
  final RDFNode BO = model
      .createProperty(AbstractTestReifiedStatements.anchor + "BO");
  model.add(rs, P, O);
  Assert.assertTrue("st should be reified now", SPO.isReified());
  Assert.assertTrue("m should have st reified now", model.isReified(SPO));
  Assert.assertFalse("this new statement should not be reified", model
      .createStatement(BS, BP, BO).isReified());
}

代码示例来源:origin: apache/jena

public void testIsReified()
{
  final ReifiedStatement rs = model.createReifiedStatement(
      TestReifiedStatements.aURI, SPO);
  final Resource BS = model.createResource(TestReifiedStatements.anchor
      + "BS");
  final Property BP = model.createProperty(TestReifiedStatements.anchor
      + "BP");
  final RDFNode BO = model.createProperty(TestReifiedStatements.anchor
      + "BO");
  model.add(rs, P, O);
  Assert.assertTrue("st should be reified now", SPO.isReified());
  Assert.assertTrue("model should have st reified now",
      model.isReified(SPO));
  Assert.assertFalse("this new statement should not be reified", model
      .createStatement(BS, BP, BO).isReified());
}

代码示例来源:origin: org.apache.jena/jena-core

public void testIsReified()
{
  final ReifiedStatement rs = model.createReifiedStatement(
      AbstractTestReifiedStatements.aURI, SPO);
  final Resource BS = model
      .createResource(AbstractTestReifiedStatements.anchor + "BS");
  final Property BP = model
      .createProperty(AbstractTestReifiedStatements.anchor + "BP");
  final RDFNode BO = model
      .createProperty(AbstractTestReifiedStatements.anchor + "BO");
  model.add(rs, P, O);
  Assert.assertTrue("st should be reified now", SPO.isReified());
  Assert.assertTrue("m should have st reified now", model.isReified(SPO));
  Assert.assertFalse("this new statement should not be reified", model
      .createStatement(BS, BP, BO).isReified());
}

代码示例来源:origin: org.apache.jena/jena-core

public void testIsReified()
{
  final ReifiedStatement rs = model.createReifiedStatement(
      TestReifiedStatements.aURI, SPO);
  final Resource BS = model.createResource(TestReifiedStatements.anchor
      + "BS");
  final Property BP = model.createProperty(TestReifiedStatements.anchor
      + "BP");
  final RDFNode BO = model.createProperty(TestReifiedStatements.anchor
      + "BO");
  model.add(rs, P, O);
  Assert.assertTrue("st should be reified now", SPO.isReified());
  Assert.assertTrue("model should have st reified now",
      model.isReified(SPO));
  Assert.assertFalse("this new statement should not be reified", model
      .createStatement(BS, BP, BO).isReified());
}

相关文章

Model类方法