本文整理了Java中org.vertexium.Graph.isPropertyDefined()
方法的一些代码示例,展示了Graph.isPropertyDefined()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graph.isPropertyDefined()
方法的具体详情如下:
包路径:org.vertexium.Graph
类名称:Graph
方法名:isPropertyDefined
[英]Determine if a property is already defined
[中]确定是否已定义属性
代码示例来源:origin: org.visallo/visallo-model-vertexium
@Override
protected void importOntologyAnnotationProperty(OWLOntology o, OWLAnnotationProperty annotationProperty, File inDir, Authorizations authorizations) {
super.importOntologyAnnotationProperty(o, annotationProperty, inDir, authorizations);
String about = annotationProperty.getIRI().toString();
LOGGER.debug("disabling index for annotation property: " + about);
if (!graph.isPropertyDefined(about)) {
graph.defineProperty(about).dataType(String.class)
.textIndexHint(TextIndexHint.NONE)
.define();
}
}
代码示例来源:origin: org.visallo/visallo-core
boolean sortable
) {
if (!graph.isPropertyDefined(propertyName)) {
DefinePropertyBuilder builder = graph.defineProperty(propertyName).dataType(dataType).sortable(sortable);
if (textIndexHint != null) {
内容来源于网络,如有侵权,请联系作者删除!