Example 1 -- reporting schema advertised in QM service document
<?xml version="1.0" encoding="UTF-8"?>
<oslc_qm:ServiceDescriptor
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:oslc_qm="http://open-services.net/xmlns/qm/1.0/"
rdf:about="http://example.com/qm/service-descriptor.xml">
<dc:title>Project X</dc:title>
<dc:description>My Product Name's OSLC QM Service Description for Project X.</dc:description>
<dc:contributor>
<dc:title>My Company Name, My QM Product</dc:title>
<dc:identifier>com.mycompany.myproduct</dc:identifier>
<oslc_qm:icon>../icons/myprod.ico</oslc_qm:icon>
</dc:contributor>
<!-- reporting schema -->
oslc_report:schemaEnquiry>
<oslc_report:Query>
<dc:title>Service to explore schema of reporting context.</dc:title>
<oslc_report:query rdf:resource="./schema"/>
</oslc_report:Query>
</oslc_report:schemaEnquiry>*
<oslc_qm:testplans version="1.0">
<!-- Resource creation factory URL -->
<oslc_qm:factory oslc_qm:default="true">
<dc:title>Location for creation of test plans</dc:title>
<oslc_qm:url>./plan</oslc_qm:url>
</oslc_qm:factory>
<!-- Alternate resource creation factory URL -->
<oslc_qm:factory>
<dc:title>Location for creation of minimal plan</dc:title>
<oslc_qm:url>./plan?type=minimal</oslc_qm:url>
</oslc_qm:factory>
<!-- reporting schema, does it override the global setting? -->
<oslc_report:schemaEnquiry>
<oslc_report:Query>
<dc:title>Service to explore schema of reporting context.</dc:title>
<oslc_report:query rdf:resource="./schema"/>
</oslc_report:Query>
</oslc_report:schemaEnquiry>*
<!-- Simple GET-based URL-encoded query -->
<oslc_qm:simpleQuery>
<dc:title>Simple GET-based plan Query</dc:title>
<oslc_qm:url>./plansquery</oslc_cm:url>
</oslc_qm:simpleQuery>
</oslc_qm:testplans>
<oslc_qm:testcases version="1.0">
<!-- Resource creation factory URL -->
<oslc_qm:factory oslc_qm:default="true">
<dc:title>Location for creation of test cases</dc:title>
<oslc_qm:url>./case</oslc_qm:url>
</oslc_qm:factory>
<!-- reporting schema, does it override the global setting? -->
<oslc_report:schemaEnquiry>
<oslc_report:Query>
<dc:title>Service to explore schema of reporting context.</dc:title>
<oslc_report:query rdf:resource="./schema"/>
</oslc_report:Query>
</oslc_report:schemaEnquiry>*
<!-- Simple GET-based URL-encoded query -->
<oslc_qm:simpleQuery>
<dc:title>Simple GET-based case Query</dc:title>
<oslc_qm:url>./casesquery</oslc_cm:url>
</oslc_qm:simpleQuery>
</oslc_qm:testcases>
</oslc_qm:ServiceDescriptor>
Example 2 -- reporting schema advertised in a separate service document
<?xml version="1.0" encoding="UTF-8"?>
<oslc_sd:ServiceDescriptor
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:oslc_sd="http://open-services.net/xmlns/commons/servicedescription/1.0/"
xmlns:oslc_report="http://open-services.net/xmlns/reporting/1.0/"
rdf:about="http://example.com/services/rm-service-descriptor.xml">
<dc:title xml:lang="en-GB">Project foo report data</dc:title>
<dc:description xml:lang="en-GB">Provides OSLC reporting data for RQM project foo</dc:description>
<dc:contributor>
<oslc_sd:Contributor>
<dc:title>IBM Rational Quality Manager project foo</dc:title>
<dc:identifier>http://rqmserver/jazz/oslc_qm/projects/foo/</dc:identifier>
<oslc_sd:icon rdf:resource="https://rqmserver/foo.jpg"/>
<oslc_sd:home>
<oslc_sd:Home>
<dc:title>IBM Rational Quality Manager Web Console</dc:title>
<oslc_sd:application rdf:resource="https://rqmserver/jazz/web/console/foo"/>
</oslc_sd:Home>
</oslc_sd:home>
</oslc_sd:Contributor>
</dc:contributor>
<oslc_report:schemaEnquiry>
<oslc_report:Query>
<dc:title>Service to explore schema of reporting context.</dc:title>
<oslc_report:query rdf:resource="https://rqmserver/jazz/oslc_qm/projects/foo/schema"/>
</oslc_report:Query>
</oslc_report:schemaEnquiry>
<oslc_report:queryEvaluation >
<oslc_report:Query>
<dc:title>Service to evaluate test plan queries within reporting context.</dc:title>
<oslc_report:query rdf:resource="https://rqmserver/jazz/oslc_qm/projects/foo/testplan/query?something=value"/>
</oslc_report:Query>
</oslc_report:queryEvaluation >
<oslc_report:queryEvaluation >
<oslc_report:Query>
<dc:title>Service to evaluate test case queries within reporting context.</dc:title>
<oslc_report:query rdf:resource="https://rqmserver/jazz/oslc_qm/projects/foo/testcase/query?something=value"/>
</oslc_report:Query>
</oslc_report:queryEvaluation >
<oslc_report:queryEvaluation >
<oslc_report:Query>
<dc:title>Service to evaluate test script queries within reporting context.</dc:title>
<oslc_report:query rdf:resource="https://rqmserver/jazz/oslc_qm/projects/foo/testscript/query?something=value"/>
</oslc_report:Query>
</oslc_report:queryEvaluation >
<oslc_report:queryEvaluation >
<oslc_report:Query>
<dc:title>Service to evaluate test execution record queries within reporting context.</dc:title>
<oslc_report:query rdf:resource="https://rqmserver/jazz/oslc_qm/projects/foo/ter/query?something=value"/>
</oslc_report:Query>
</oslc_report:queryEvaluation >
<oslc_report:queryEvaluation >
<oslc_report:Query>
<dc:title>Service to evaluate execution result queries within reporting context.</dc:title>
<oslc_report:query rdf:resource="https://rqmserver/jazz/oslc_qm/projects/foo/executionresult/query?something=value"/>
</oslc_report:Query>
</oslc_report:queryEvaluation >
<oslc_report:queryEvaluation >
<oslc_report:Query>
<dc:title>Service to evaluate test suite queries within reporting context.</dc:title>
<oslc_report:query rdf:resource="https://rqmserver/jazz/oslc_qm/projects/foo/testsuite/query?something=value"/>
</oslc_report:Query>
</oslc_report:queryEvaluation >
<oslc_report:queryEvaluation >
<oslc_report:Query>
<dc:title>Service to evaluate test suite results queries within reporting context.</dc:title>
<oslc_report:query rdf:resource="https://rqmserver/jazz/oslc_qm/projects/foo/testsuiteresults/query?something=value"/>
</oslc_report:Query>
</oslc_report:queryEvaluation >
... etc. Basically a queryEvaluation for every type of resource
</oslc_sd:ServiceDescriptor>
Topic revision: r2 - 11 Dec 2009 - 21:15:00 -
PaulMcMahanMain.QmReportServiceDocumentExample moved from Main.QmExample on 07 Dec 2009 - 15:43 by PaulMcMahan -
put it back