本文整理了Java中org.apache.jena.graph.Graph.contains()
方法的一些代码示例,展示了Graph.contains()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graph.contains()
方法的具体详情如下:
包路径:org.apache.jena.graph.Graph
类名称:Graph
方法名:contains
[英]Answer true iff the graph contains a triple matching (s, p, o). s/p/o may be concrete or fluid. Equivalent to find(s,p,o).hasNext, but an implementation is expected to optimise this in easy cases.
[中]如果图形包含三重匹配(s、p、o),则回答true。s/p/o可以是混凝土或流体。相当于查找(s、p、o)。hasNext,但在简单的情况下,预计会有一个实现来优化这一点。
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.DatatypeProperty.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.TransitiveProperty.asNode() ) &&
!g.asGraph().contains( n, RDF.type.asNode(), OWL.DatatypeProperty.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.DatatypeProperty.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.InverseFunctionalProperty.asNode() ) &&
!g.asGraph().contains( n, RDF.type.asNode(), OWL.DatatypeProperty.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.SymmetricProperty.asNode() ) &&
!g.asGraph().contains( n, RDF.type.asNode(), OWL.DatatypeProperty.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.Ontology.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.Restriction.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.AllDifferent.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.Ontology.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.AllDifferent.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.InverseFunctionalProperty.asNode() );
}
}
代码示例来源:origin: org.apache.jena/jena-core
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.InverseFunctionalProperty.asNode() ) &&
!g.asGraph().contains( n, RDF.type.asNode(), OWL.DatatypeProperty.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.InverseFunctionalProperty.asNode() ) &&
!g.asGraph().contains( n, RDF.type.asNode(), OWL.DatatypeProperty.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.Restriction.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.TransitiveProperty.asNode() ) &&
!g.asGraph().contains( n, RDF.type.asNode(), OWL.DatatypeProperty.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.DatatypeProperty.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.Restriction.asNode() );
}
}
代码示例来源:origin: apache/jena
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.TransitiveProperty.asNode() ) &&
!g.asGraph().contains( n, RDF.type.asNode(), OWL.DatatypeProperty.asNode() );
}
}
代码示例来源:origin: org.apache.jena/jena-core
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.AllDifferent.asNode() );
}
}
代码示例来源:origin: org.apache.jena/jena-core
@Override
public boolean doCheck( Node n, EnhGraph g ) {
return g.asGraph().contains( n, RDF.type.asNode(), OWL.FunctionalProperty.asNode() );
}
}
内容来源于网络,如有侵权,请联系作者删除!