本文整理了Java中org.openrdf.query.algebra.Extension.setArg()
方法的一些代码示例,展示了Extension.setArg()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Extension.setArg()
方法的具体详情如下:
包路径:org.openrdf.query.algebra.Extension
类名称:Extension
方法名:setArg
暂无
代码示例来源:origin: Quetzal-RDF/quetzal
ex.setArg(body);
newExpression = ex;
} else {
代码示例来源:origin: org.openrdf.sesame/sesame-queryparser-sparql
@Override
public TupleExpr visit(ASTDescribe node, Object data)
throws VisitorException
{
TupleExpr tupleExpr = (TupleExpr)data;
if (tupleExpr == null) {
tupleExpr = new SingletonSet();
}
Extension e = new Extension();
ProjectionElemList projectionElements = new ProjectionElemList();
for (int i = 0; i < node.jjtGetNumChildren(); i++) {
ValueExpr resource = (ValueExpr)node.jjtGetChild(i).jjtAccept(this, null);
if (resource instanceof Var) {
projectionElements.addElement(new ProjectionElem(((Var)resource).getName()));
}
else {
String alias = "_describe_" + UUID.randomUUID().toString().replaceAll("-", "_");
ExtensionElem elem = new ExtensionElem(resource, alias);
e.addElement(elem);
projectionElements.addElement(new ProjectionElem(alias));
}
}
if (!e.getElements().isEmpty()) {
e.setArg(tupleExpr);
tupleExpr = e;
}
Projection p = new Projection(tupleExpr, projectionElements);
return new DescribeOperator(p);
}
代码示例来源:origin: org.openrdf.sesame/sesame-queryparser-sparql
extension.setArg(((Filter)arg).getArg());
((Filter)arg).setArg(extension);
extension.setArg(arg);
result = extension;
代码示例来源:origin: org.openrdf.sesame/sesame-queryparser-serql
extension.setArg(result);
result = extension;
代码示例来源:origin: org.openrdf.sesame/sesame-queryparser-sparql
extension.setArg(arg);
group.setArg(extension);
代码示例来源:origin: org.openrdf.sesame/sesame-queryparser-sparql
extension.setArg(group);
anonymousExtension.addElement(new ExtensionElem(operator, anonVar.getName()));
anonymousExtension.setArg(result);
result = anonymousExtension;
group.addGroupElement(new GroupElem(anonVar.getName(), operator));
extension.setArg(arg);
orderClause.setArg(extension);
result = orderClause;
extension.setArg(result);
result = extension;
代码示例来源:origin: org.openrdf.sesame/sesame-queryparser-sparql
group.addGroupElement(ge);
extension.setArg(tupleExpr);
tupleExpr = extension;
代码示例来源:origin: org.openrdf.sesame/sesame-queryparser-sparql
extension.setArg(group);
tupleExpr = new Filter(extension, expr);
内容来源于网络,如有侵权,请联系作者删除!