In this example the query finds all top level resources (i.e. resources that are first
class OSLC resources with a URI in the project. The query asks for all resources whose
RDF type is <http://jazz.net/ns/dm/core#Document>
which is the Design
Management type indicating a first class resource.
This query's results are greater than the normal page size for DM, so the results are
spread out over several pages. The ResponseInfo
property includes a link to the next page
of results. This link has the server supplied parameters for page and pageToken. These
parameters must not be altered or computed by the client. They are only supplied by
the server in nextPage
links.
Request
GET https://example.com:9444/dm/oslcquery/_FrVgUo4NEeGoGr8vN4Yi5g?oslc.where=rdf%3Atype%3D%3Chttp%3A%2F%2Fjazz.net%2Fns%2Fdm%2Fcore%23Document%3E
Accept: application/rdf+xml
OSLC-Core-Version: 2.0
Response
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:oslc="http://open-services.net/ns/core#" > <rdf:Description rdf:about="https://example.com:9444/dm/oslcquery/_FrVgUo4NEeGoGr8vN4Yi5g?page=0& pageToken=_SKYaDo4YEeGnQolIOUYDWw&oslc.where=rdf%3Atype%3D%3Chttp%3A%2F%2Fjazz.net%2Fns%2Fdm%2Fcore%23Document%3E"> <oslc:nextPage rdf:resource="https://example.com:9444/dm/oslcquery/_FrVgUo4NEeGoGr8vN4Yi5g?page=1& pageToken=_SKYaDo4YEeGnQolIOUYDWw&oslc.where=rdf%3Atype%3D%3Chttp%3A%2F%2Fjazz.net%2Fns%2Fdm%2Fcore%23Document%3E"/> <oslc:totalCount rdf:datatype="http://www.w3.org/2001/XMLSchema#int">689</oslc:totalCount> <dcterms:title>OSLC AM Query Response</dcterms:title> <rdf:type rdf:resource="http://open-services.net/ns/core#ResponseInfo"/> </rdf:Description> <rdf:Description rdf:about="https://example.com:9444/dm/oslcquery/_FrVgUo4NEeGoGr8vN4Yi5g"> <rdfs:member rdf:resource="https://example.com:9444/dm/models/148"/> <rdfs:member rdf:resource="https://example.com:9444/dm/models/108"/> <rdfs:member rdf:resource="https://example.com:9444/dm/models/104"/> [members snipped for clarity] <rdfs:member rdf:resource="https://example.com:9444/dm/models/118"/> <rdfs:member rdf:resource="https://example.com:9444/dm/models/114"/> <rdfs:member rdf:resource="https://example.com:9444/dm/models/163"/> </rdf:Description> </rdf:RDF>
The next page in this result is obtained with a GET on URL in the nextPage property of the ResponseInfo
;
https://example.com:9444/dm/oslcquery/_FrVgUo4NEeGoGr8vN4Yi5g?page=1&pageToken=_SKYaDo4YEeGnQolIOUYDWw&oslc.where=rdf%3Atype%3D%3Chttp%3A%2F%2Fjazz.net%2Fns%2Fdm%2Fcore%23Document%3E