Why am I getting Exception while executing OSLC properties query on DNG?
When I try to execute oslc.properties query with a dcterm and a custom value, I am getting the below error
com.ibm.oslc.query.parser.select.ParseException: Invalid prefix definition: j.0
The query would be like - https://localhost:9090/testserver/resources?oslc.properties=j.0:sample,dcterms:title&oslc.prefix=j.0=<http://localhost:9090/testserver/>,dcterms=<http://purl.org/dc/terms/>
Please let me know how this can be fixed ASAP.
2 answers
Are you URL encoding the values for the oslc.properties and oslc.prefix parameters?
URL encoding is required for these because they typically contain characters such as ":", "<", ">" etc.
You might try oslc.select instead of oslc.properties. As explained in OSLC Query 3.0 oslc.properties selects properties of the query result container itself, whereas oslc.select selects properties of each member of that container found by the query. For OSLC queries, you almost always want to use oslc.select. While most server implementations that implement OSLC query support oslc.select, many might not support oslc.properties.
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Dec 04 '20, 7:08 a.m.G C
Dec 07 '20, 12:37 a.m.Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Dec 07 '20, 7:32 a.m.Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Dec 07 '20, 8:59 a.m.