OSLC 的 where 子句中的嵌套条件

Nested conditions in where clause of OSLC

OSLC 的 WHERE 子句中是否可以嵌套条件?

例如: oslc.where=(name="James" and age>25 and (operatingStatus=null or operatingStatus="Active") )

如果不是,使用这种嵌套WHERE条件提取的方法是什么? 我是 OSLC 的新手。任何帮助都将非常有用。

不,如果您查看语法部分下的 https://open-services.net/bin/view/Main/OSLCCoreSpecQuery#oslc_where

oslc_where    ::= "oslc.where=" compound_term
compound_term ::= simple_term (space? boolean_op space? simple_term)*
simple_term   ::= term | scoped_term

如您所见,compound_term 不允许进一步的复合词。对于像您这样的更高级的场景,您应该使用 SPARQL 查询。