繁体   English   中英

在 Orion-LD Context Broker 中使用正则表达式执行查询

[英]Perform a query with regular expressions in Orion-LD Context Broker

这是我的要求:

http://localhost:1026/ngsi-ld/v1/entities?q=measurementVariable~=*temperature

这是答案:

{
    "type": "https://uri.etsi.org/ngsi-ld/errors/BadRequestData",
    "title": "ngsi-ld query language: after match operator must come a RegExp",
    "detail": "Variable"
}

我尝试了几个正则表达式,每次都得到相同的错误。 我究竟做错了什么?

就像是:

curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/?q=name~=.*'

应该管用。 *本身不是有效的正则表达式。

Orion-LD 在 REGEX 处理中有一个错误。 就在几周前修复了它。 我的猜测是你实际上有一个更新版本的经纪人。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM