Query search parameters
The oslc.searchTerms query parameter returns resources that contain specified terms. For example, you might want to see all of the work orders that have the words database and performance in their descriptions.
To search for terms, the field that you search against must be configured for search in the OSLC Resources application.
Example: Searching for work orders that refer to database performance
The following request queries work order resources
by selecting the short title, status, and description where the description
contains the terms database and performance:
http://host:7001/maximo/oslc/os/oslcwodetail?oslc.select=oslc:shortTitle,
spi_wm:status,dcterms:description&oslc.searchTerms=database,performance
The
query returns the following information:
-
"rdfs:member": [
-
{
"oslc:shortTitle": "1001",
"rdf:about": "http://host/maximo/oslc/os/oslcwodetail/76",
"spi_wm:status": "INPRG",
"dcterms:description": "performance is key<!--RICH TEXT -->"
},
-
{
"oslc:shortTitle": "2004",
"rdf:about": "http://host/maximo/oslc/os/oslcwodetail/58",
"spi_wm:status": "INPRG",
"dcterms:description": "all the database and stuff<!--RICH TEXT -->"
},
-
{
"oslc:shortTitle": "6003",
"rdf:about": "http://host/maximo/oslc/os/oslcwodetail/8",
"spi_wm:status": "APPR"
},
-
{
"oslc:shortTitle": "1004",
"rdf:about": "http://host/maximo/oslc/os/oslcwodetail/155",
"spi_wm:status": "INPRG",
"dcterms:description": "Performance is key"
},
-
{
"oslc:shortTitle": "1006",
"rdf:about": "http://host/maximo/oslc/os/oslcwodetail/73",
"spi_wm:status": "APPR"
}
],
"rdf:about": "http://host/maximo/oslc/os/oslcwodetail"
-
"prefixes":{
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"oslc": "http://open-services.net/ns/core#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"spi_wm": "http://jazz.net/ns/ism/work/smarter_physical_infrastructure#",
"dcterms": "http://purl.org/dc/terms/"
}
}