org.apache.jena.graph.Graph.contains()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(164)

本文整理了Java中org.apache.jena.graph.Graph.contains()方法的一些代码示例,展示了Graph.contains()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graph.contains()方法的具体详情如下:
包路径:org.apache.jena.graph.Graph
类名称:Graph
方法名:contains

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() );
  }
}

相关文章