在OSLC的WHERE子句中是否可以嵌套条件?
例如:oslc.where=(name="James" and age>25 and (operatingStatus=null or operatingStatus="Active") )
如果不是,使用这种嵌套的WHERE条件进行提取的方法是什么?我是OSLC的新手。任何帮助都是非常有用的。
发布于 2017-04-16 00:26:00
不,如果您查看语法部分下的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查询。
https://stackoverflow.com/questions/41630566
复制相似问题