本文整理了Java中org.openrdf.model.Graph.addAll()
方法的一些代码示例,展示了Graph.addAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graph.addAll()
方法的具体详情如下:
包路径:org.openrdf.model.Graph
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!