本文整理汇总了Java中com.hp.hpl.jena.rdf.model.Property.equals方法的典型用法代码示例。如果您正苦于以下问题:Java Property.equals方法的具体用法?Java Property.equals怎么用?Java Property.equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.hp.hpl.jena.rdf.model.Property
的用法示例。
在下文中一共展示了Property.equals方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visitComponentProperty
import com.hp.hpl.jena.rdf.model.Property; //导入方法依赖的package包/类
@Override
public void visitComponentProperty(Property property, Resource resource,
ComponentType... types) {
if (resource == null) return;
if (property == null) {
out.printResourceStart(resource);
super.visitComponentProperty(property, resource, types);
out.printResourceEnd();
} else if (resource.isAnon()) {
boolean isRefObjectMap = property.equals(RR.objectMap) &&
mapping.referencingObjectMaps().has(resource);
out.printPropertyStart(property,
COMPACT_PROPERTIES.contains(property) && !isRefObjectMap);
super.visitComponentProperty(property, resource, types);
out.printPropertyEnd();
} else {
out.printProperty(property, resource);
}
}
示例2: hasPrimarySpec
import com.hp.hpl.jena.rdf.model.Property; //导入方法依赖的package包/类
private boolean hasPrimarySpec(ResourceMap map, Property property) {
if (property.equals(D2RQ.bNodeIdColumns)) return !map.getBNodeIdColumnsParsed().isEmpty();
if (property.equals(D2RQ.uriColumn)) return map.getURIColumn() != null;
if (property.equals(D2RQ.uriPattern)) return map.getURIPattern() != null;
if (property.equals(D2RQ.uriSqlExpression)) return map.getUriSQLExpression() != null;
if (property.equals(D2RQ.column)) return ((PropertyBridge) map).getColumn() != null;
if (property.equals(D2RQ.pattern)) return ((PropertyBridge) map).getPattern() != null;
if (property.equals(D2RQ.sqlExpression)) return ((PropertyBridge) map).getSQLExpression() != null;
if (property.equals(D2RQ.refersToClassMap)) return ((PropertyBridge) map).getRefersToClassMap() != null;
if (property.equals(D2RQ.constantValue)) return map.getConstantValue() != null;
throw new IllegalArgumentException("Not a primary spec: " + property);
}
示例3: hasPrimarySpec
import com.hp.hpl.jena.rdf.model.Property; //导入方法依赖的package包/类
private boolean hasPrimarySpec(Property property) {
if (property.equals(D2RQ.bNodeIdColumns)) return this.bNodeIdColumns != null;
if (property.equals(D2RQ.uriColumn)) return this.uriColumn != null;
if (property.equals(D2RQ.uriPattern)) return this.uriPattern != null;
if (property.equals(D2RQ.column)) return this.column != null;
if (property.equals(D2RQ.pattern)) return this.pattern != null;
if (property.equals(D2RQ.sqlExpression)) return this.sqlExpression != null;
if (property.equals(D2RQ.uriSqlExpression)) return this.uriSqlExpression != null;
if (property.equals(D2RQ.refersToClassMap)) return this.refersToClassMap != null;
if (property.equals(D2RQ.constantValue)) return this.constantValue != null;
throw new D2RQException("No primary spec: " + property);
}