oslc query j.0 unsupported predicate
![]()
for oslc I can query everything except this property: j.0:some_attribute.
When I try to use oslc.where=j.0:some_attribute
I get this error:
<oslc:message>The query parser encountered an unsupported predicate - qualifier [j0], predicate [some predicate].</oslc:message>
Can anybody tell me why this happens?
|
2 answers
![]()
Hello Sin Ly
The "j.0" is an XML namespace prefix. The attribute "some_attribute" is defined in that namespace. When you want to build an OSLC Simple Query you have to use either well-known prefixes (such as oslc_rm) or use namespaces which are explicitly declared as part of the query. The parameter "oslc.prefix" is for this purpose. For example, ....oslc.prefix=j.0=http://example.com/my_namespace&oslc.where=j.0:some_attribute... You can read the spec at http://open-services.net/bin/view/Main/OslcCoreSpecification, where oslc.prefix is defined. cheers -ian |
![]()
The j.0 was caused by a space in the value of an enum attribute:
" <----space"
This was almost impossible to find, and there was no help or warning at all anywhere.
After the space was removed in DOORS, it behaved normally and put the correct namespace infront: rm_property etc etc.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.