简体   繁体   English

如何在Elasticsearch GraphDB连接器中使用逆属性?

[英]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.

相关问题 如何在 Flink 上将 BasicAuth 与 ElasticSearch Connector 结合使用 - How to use BasicAuth with ElasticSearch Connector on Flink 您如何在python中使用elasticsearch来搜索所有索引? - How do you use elasticsearch in python to search over all indices? 如何将Elasticsearch Ingest附件处理器插件与Python软件包elasticsearch-dsl结合使用 - How do you use the Elasticsearch Ingest Attachment Processor Plugin with the Python package elasticsearch-dsl 如何使用Mongo Connector和Elasticsearch进行自定义映射 - How to do custom mapping using mongo connector with elasticsearch 您如何过滤非 null 值 elasticsearch? - How do you filter on not null values elasticsearch? 如何加入 elasticsearch 索引进行排序? - How do you join elasticsearch indexes to sort? 类型错误:尝试使用 aws-elasticsearch-connector - TypeError: trying to use aws-elasticsearch-connector 您如何在Elasticsearch PHP客户端中进行字段增强? - How do you do field boosting in the Elasticsearch PHP client? 如何运行 mongo-kafka 连接器作为 kafka 的源并将其与 logstash 输入集成以使用 elasticsearch 作为接收器? - How to run the mongo-kafka connector as a source for kafka and integrate that with logstash input to use elasticsearch as a sink? 如何在Elasticsearch NEST中序列化JToken或JObject类型的属性? - How do I serialize properties of type JToken or JObject in Elasticsearch NEST?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM