org.openrdf.model.Graph.addAll()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(126)

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

Graph.addAll介绍

暂无

代码示例

代码示例来源:origin: it.unibz.inf.ontop/ontop-obdalib-r2rml

/**
 * call this method if you need the RDF Graph
 * that represents the R2RML mappings
 * @return an RDF Graph
 */
@Deprecated
public Graph getGraph() {
  OBDAMappingTransformer transformer = new OBDAMappingTransformer();
  transformer.setOntology(ontology);
  List<Statement> statements = new ArrayList<Statement>();
  for (OBDAMappingAxiom axiom: this.mappings) {
    List<Statement> statements2 = transformer.getStatements(axiom,prefixmng);
    statements.addAll(statements2);
  }
  @SuppressWarnings("deprecation")
  Graph g = new GraphImpl();
  g.addAll(statements);
  return g;
}

代码示例来源:origin: blazegraph/database

g.addAll(rdfHandler.getStatements());

代码示例来源:origin: blazegraph/database

g.addAll(x);

代码示例来源:origin: com.blazegraph/bigdata-core

g.addAll(x);

代码示例来源:origin: blazegraph/database

g.addAll(rdfHandler.getStatements());

相关文章