GC REST API Usage
Accepted answer
If you are using https://jazz.net/gc/doc/scenario?id=QueryConfigurations then that page describes the values you can use for rdf:type in an olsc.where
expression. If you want to only return shared streams and baseline staging streams, then the query expression should include
rdf:type in [oslc_config_ext:SharedStream, oslc_config_ext:BaselineStagingStream]
.
Remember that parameter values should be encoded, so the request URI would include
?oslc.where=rdf%3Atype%20in%20%5Boslc_config_ext%3ASharedStream%2C%20oslc_config_ext%3ABaselineStagingStream%5D
.
I hope you are using standard OSLC discovery to find the query base URI of a query capability and not constructing the URI yourself.
Comments
One other answer
If you're using this scenario Jazz API Usage Scenario: Query for global configurations using LDPCs then note the page says very clearly "... any
oslc.where
parameter in the request is ignored" - so you'll have to filter the results to find the ones you are interested in.
oslc.where=rdf:type in [oslc_config:Stream,oslc_config:Baseline]
|
* oslc_config_ext:BaselineStagingStream
* oslc_config:Configuration * oslc_config:Stream This means it's returned when you query for rdf:type=oslc_config:Stream, and also when you query for rdf:type=oslc_config:Configuration OSLC Query (the spec itself, i.e. this isn't a limitation or restriction of GCM) doesn't have a 'not in' or 'is not' so you'll have to filter the results to remove the configurations you're not interested in. |