[英]How do you use inverse properties in an Elasticsearch GraphDB connector?
例如,做这样的工作:{ “字段名”: “远处”, “propertyChain”: “ http://example.com/y/z/propertyA ”,“^ http://example.com/y/z / propertyB “]},...
In GraphDB 8.x, Connectors does not support indexing of subjects for a given object. 在GraphDB 8.x中,连接器不支持给定对象的主题索引。 The rationale behind this design decision is to keep all indexes smaller in the case of longer property paths. 此设计决策的基本原理是在较长的属性路径的情况下将所有索引保持较小。
For repositories with configured inference (ie the ruleset is not empty), I recommend declaring an owl:inverseOf
property like: 对于配置了推理的存储库(即规则集不为空),我建议声明一个owl:inverseOf
属性,例如:
:PropertyB owl:inverseOf :PropertyInverseOfB.
owl:inverseOf
will create a new implicit triple with the direction from the object to the subject, so you can put: owl:inverseOf
将创建一个新的隐式三元组,其方向是从对象到主题的方向,因此您可以输入:
{
"fieldName": "aField",
"propertyChain":
[ "http://example.com/y/z/propertyA", "http://example.com/y/z/propertyInverseOfB" ]
}
For repositories with empty ruleset, you would need to change your modelling and create a new triple in the opposite direction. 对于具有空规则集的存储库,您需要更改模型并在相反的方向上创建一个新的三元组。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.