Querying OSLC Resources in Maximo – Query Parameters
Building upon what was covered in the Getting Started section, this section will take you through examples of how you can use OSLC query parameters to control the querying of resource data. The query parameters supported in the Provider capabilities of Maximo fall into 2 categories:
- Parameters that are used when querying a single resource
oslc.properties (click here for more information about oslc.properties)
A query for a single resource could look like this:
http://localhost/maximo/oslc/os/oslcwodetail/123
where oslcwodetail is the resource and 123 is resource identifier
The response of the query will be the all the properties of the selected resource.
- Parameters that are used when querying a collection (0 or more) of resources
oslc.where (for more information on oslc.where, click these links: Part 1 and Part 2)
oslc.select (click here for more information about oslc.select)
oslc.orderBy (click here for more information about oslc.orderBy)
oslc.searchTerms
A query for a collection of resources could look like this:
http://localhost/maximo/oslc/os/oslcwodetail
The response of the query will be a collection of URIs representing each resource that matches the search criteria.