It's all about the answers!

Ask a question

oslc query j.0 unsupported predicate


Sin Ly (2157) | asked Dec 16 '15, 10:46 a.m.
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



permanent link
ian green (17814) | answered Dec 19 '15, 12:30 p.m.
JAZZ DEVELOPER
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


permanent link
Sin Ly (2157) | answered Jan 20 '16, 10:03 a.m.
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


Register or to post 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.