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" 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