本文整理汇总了Java中de.fuberlin.wiwiss.d2rq.nodes.NodeMaker.describeSelf方法的典型用法代码示例。如果您正苦于以下问题:Java NodeMaker.describeSelf方法的具体用法?Java NodeMaker.describeSelf怎么用?Java NodeMaker.describeSelf使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类de.fuberlin.wiwiss.d2rq.nodes.NodeMaker
的用法示例。
在下文中一共展示了NodeMaker.describeSelf方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: convertIsIRI
import de.fuberlin.wiwiss.d2rq.nodes.NodeMaker; //导入方法依赖的package包/类
private void convertIsIRI(E_IsIRI expr)
{
logger.debug("convertIsIRI " + expr.toString());
expr.getArg().visit(this);
Expression arg = expression.pop();
if (arg instanceof AttributeExprEx) {
AttributeExprEx variable = (AttributeExprEx) arg;
NodeMaker nm = variable.getNodeMaker();
DetermineNodeType filter = new DetermineNodeType();
nm.describeSelf(filter);
expression.push(filter.isLimittedToURIs() ? Expression.TRUE : Expression.FALSE);
} else if (arg instanceof ConstantEx) {
ConstantEx constant = (ConstantEx) arg;
Node node = constant.getNode();
expression.push(node.isURI() ? Expression.TRUE : Expression.FALSE);
} else {
conversionFailed(expr);
}
}
示例2: convertIsBlank
import de.fuberlin.wiwiss.d2rq.nodes.NodeMaker; //导入方法依赖的package包/类
private void convertIsBlank(E_IsBlank expr)
{
logger.debug("convertIsBlank " + expr.toString());
expr.getArg().visit(this);
Expression arg = expression.pop();
if (arg instanceof AttributeExprEx) {
AttributeExprEx variable = (AttributeExprEx) arg;
NodeMaker nm = variable.getNodeMaker();
DetermineNodeType filter = new DetermineNodeType();
nm.describeSelf(filter);
expression.push(filter.isLimittedToBlankNodes() ? Expression.TRUE : Expression.FALSE);
} else if (arg instanceof ConstantEx) {
ConstantEx constant = (ConstantEx) arg;
Node node = constant.getNode();
expression.push(node.isBlank() ? Expression.TRUE : Expression.FALSE);
} else {
conversionFailed(expr);
}
}
示例3: convertIsLiteral
import de.fuberlin.wiwiss.d2rq.nodes.NodeMaker; //导入方法依赖的package包/类
private void convertIsLiteral(E_IsLiteral expr)
{
logger.debug("convertIsLiteral " + expr.toString());
expr.getArg().visit(this);
Expression arg = expression.pop();
logger.debug("arg " + arg);
if (arg instanceof AttributeExprEx) {
AttributeExprEx variable = (AttributeExprEx) arg;
NodeMaker nm = variable.getNodeMaker();
DetermineNodeType filter = new DetermineNodeType();
nm.describeSelf(filter);
expression.push(filter.isLimittedToLiterals() ? Expression.TRUE : Expression.FALSE);
} else if (arg instanceof ConstantEx) {
ConstantEx constant = (ConstantEx) arg;
Node node = constant.getNode();
expression.push(node.isLiteral() ? Expression.TRUE : Expression.FALSE);
} else {
conversionFailed(expr);
}
}
示例4: add
import de.fuberlin.wiwiss.d2rq.nodes.NodeMaker; //导入方法依赖的package包/类
public void add(Var var, NodeMaker nodeMaker, AliasMap aliases) {
if (!nodeMakers.containsKey(var)) {
nodeMakers.put(var, nodeMaker);
projections.addAll(nodeMaker.projectionSpecs());
}
if (!nodeSets.containsKey(var)) {
nodeSets.put(var, new NodeSetConstraintBuilder());
}
NodeSetFilter nodeSet = nodeSets.get(var);
nodeMaker.describeSelf(nodeSet);
if (!nodeRelationAliases.containsKey(var)) {
nodeRelationAliases.put(var, aliases);
}
}
示例5: URIMakerIdentifier
import de.fuberlin.wiwiss.d2rq.nodes.NodeMaker; //导入方法依赖的package包/类
URIMakerIdentifier(NodeMaker nodeMaker) {
nodeMaker.describeSelf(this);
}