本文整理了Java中com.hp.hpl.jena.sparql.core.Var.isBlankNodeVar()
方法的一些代码示例,展示了Var.isBlankNodeVar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Var.isBlankNodeVar()
方法的具体详情如下:
包路径:com.hp.hpl.jena.sparql.core.Var
类名称:Var
方法名:isBlankNodeVar
暂无
代码示例来源:origin: com.hp.hpl.jena/arq
public static boolean nodeIso(Node n1, Node n2, NodeIsomorphismMap isoMap)
{
if ( isoMap != null && Var.isBlankNodeVar(n1) && Var.isBlankNodeVar(n2) )
return isoMap.makeIsomorhpic(n1, n2) ;
return n1.equals(n2) ;
}
}
代码示例来源:origin: com.hp.hpl.jena/arq
@Override
public String asString(Node n)
{
// Map blank nodes and non-distingusihed variables.
if ( ! n.isBlank() && !Var.isBlankNodeVar(n) )
return null ;
return mapNode(n) ;
}
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
@Override
public String asString(Node n)
{
// Map blank nodes and non-distinguished variables.
if ( ! n.isBlank() && !Var.isBlankNodeVar(n) )
return null ;
return mapNode(n) ;
}
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
public static boolean nodeIso(Node n1, Node n2, NodeIsomorphismMap isoMap)
{
if ( isoMap != null ) {
if ( n1.isBlank() && n2.isBlank() )
return isoMap.makeIsomorphic(n1, n2) ;
if ( Var.isBlankNodeVar(n1) && Var.isBlankNodeVar(n2) )
return isoMap.makeIsomorphic(n1, n2) ;
}
return n1.equals(n2) ;
}
}
代码示例来源:origin: com.hp.hpl.jena/arq
/** Substitute into a triple, with rewriting of bNodes */
public static Triple subst(Triple triple, Binding b, Map<Node, Node> bNodeMap)
{
Node s = triple.getSubject() ;
Node p = triple.getPredicate() ;
Node o = triple.getObject() ;
Node s1 = s ;
Node p1 = p ;
Node o1 = o ;
if ( s1.isBlank() || Var.isBlankNodeVar(s1) )
s1 = newBlank(s1, bNodeMap) ;
if ( p1.isBlank() || Var.isBlankNodeVar(p1) )
p1 = newBlank(p1, bNodeMap) ;
if ( o1.isBlank() || Var.isBlankNodeVar(o1) )
o1 = newBlank(o1, bNodeMap) ;
Triple t = triple ;
if ( s1 != s || p1 != p || o1 != o )
t = new Triple(s1, p1, o1) ;
Triple t2 = Substitute.substitute(t, b) ;
return t2 ;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
/** Substitute into a triple, with rewriting of bNodes */
public static Triple subst(Triple triple, Binding b, Map<Node, Node> bNodeMap)
{
Node s = triple.getSubject() ;
Node p = triple.getPredicate() ;
Node o = triple.getObject() ;
Node s1 = s ;
Node p1 = p ;
Node o1 = o ;
if ( s1.isBlank() || Var.isBlankNodeVar(s1) )
s1 = newBlank(s1, bNodeMap) ;
if ( p1.isBlank() || Var.isBlankNodeVar(p1) )
p1 = newBlank(p1, bNodeMap) ;
if ( o1.isBlank() || Var.isBlankNodeVar(o1) )
o1 = newBlank(o1, bNodeMap) ;
Triple t = triple ;
if ( s1 != s || p1 != p || o1 != o )
t = new Triple(s1, p1, o1) ;
Triple t2 = Substitute.substitute(t, b) ;
return t2 ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
if ( g1.isBlank() || Var.isBlankNodeVar(g1) )
g1 = newBlank(g1, bNodeMap) ;
if ( s1.isBlank() || Var.isBlankNodeVar(s1) )
s1 = newBlank(s1, bNodeMap) ;
if ( p1.isBlank() || Var.isBlankNodeVar(p1) )
p1 = newBlank(p1, bNodeMap) ;
if ( o1.isBlank() || Var.isBlankNodeVar(o1) )
o1 = newBlank(o1, bNodeMap) ;
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
if ( g1.isBlank() || Var.isBlankNodeVar(g1) )
g1 = newBlank(g1, bNodeMap) ;
if ( s1.isBlank() || Var.isBlankNodeVar(s1) )
s1 = newBlank(s1, bNodeMap) ;
if ( p1.isBlank() || Var.isBlankNodeVar(p1) )
p1 = newBlank(p1, bNodeMap) ;
if ( o1.isBlank() || Var.isBlankNodeVar(o1) )
o1 = newBlank(o1, bNodeMap) ;
代码示例来源:origin: com.github.ansell.pellet/pellet-query
else if( Var.isBlankNodeVar( node )
&& (o = getObject( node, OWL.complementOf.asNode() )) != null ) {
ATermAppl complement = node2term( o );
内容来源于网络,如有侵权,请联系作者删除!