Creating OSLC resource queries

In Maximo® Asset Management, an OSLC resource can be associated with an application through the object structure. As a developer, you can create public queries that are added to the service provider as query capabilities for the resource. You can use the defined queries to access the OSLC resource. If you support multiple versions of a Maximo application that uses the same resource, you can define the resource queries for each version of the application.

Before you begin

You can add queries for the following apps:
  • Maximo Asset Auditor
  • Maximo Asset Manager
  • Maximo Cycle Counts
  • Maximo Inspector
  • Maximo Service Requestor
  • Maximo Work Supervisor
  • Maximo Work Technician
You cannot add queries for the following apps:
  • Maximo Issues and Returns
  • Maximo Transfers and Receipts

About this task

You can enable resource queries from a saved query of an application or by defining a query by using an automation script.

Procedure

  1. In the OSLC Resources application, select the OSLC resource.
  2. From the Select Action menu, select Resource Query Definition.
  3. Specify the query for the resource.
    Query Action
    For a query that is saved in the application

    Specify the application and the query or copy all public queries that are associated with the application.

    For a query that is created from an automated script

    Specify the name of the query script.

  4. Specify the unique URI name that is used by the query and save the record.
  5. In the System Properties application, specify the host name value for the mxe.oslc.webappurl property.
    The mxe.oslc.webappurl property defines the public URL to find the OSLC resources. The default URL is http://localhost/maximo/oslc/.
  6. Import the updated OSLC resource from Maximo Asset Management into Maximo Anywhere.
    The OSLC resource is imported to Resource Description Framework (RDF) files.

What to do next

Add the OSLC resource query and URI to the app.xml file for the mobile app.