Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Dec 16 '15, 10:46 a.m.

Question was seen: 2,606 times

Last updated: Jan 20 '16, 10:03 a.m.

Confirmation Cancel Confirm