Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[lyo-dev] Lyo OSLC Client for Rational DOORS

Hi guys,
 
I have a problem when querying Rational DOORS for requirements with the help of the lyo sample client org.eclipse.lyo.client.oslc.samples.DoorsOauthSample (latest revision, 2014-01-16 22:00).
I am using DOORS 9.5.1 and DOORS Web Access 9.5.1.0.
 
The oauth authentication works fine, i can query for query capabilities as provided from the doors OSLC service. The URLs for the query service are correct. The project ist also found.
However, when querying for a single requirement or for a collection of requirements, the server sends any information about the requirements in the RDF response. The response is "empty".
I am using the following queries in the lyo client:
 
//query for a single requirement
queryParams = new OslcQueryParameters();
queryParams.setPrefix("dcterms=<http://purl.org/dc/terms/>");
queryParams.setWhere("dcterms:identifier=\"7914\"");
OslcQuery query = new OslcQuery(client, queryCapability, 10, queryParams);
OslcQueryResult result = query.submit();
 
//query for a collection of requirements               
queryParams = new OslcQueryParameters();
queryParams.setPrefix("dcterms=<http://purl.org/dc/terms/>");
queryParams.setWhere("dcterms:created=\"Martel\"");
query = new OslcQuery(client, queryCapability, 10, queryParams);
result = query.submit();
 
 
The response from the server looks like the following for querying a requirement collection:
 
<?xml version="1.0"?>
<rdf:RDF
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rm="http://jazz.net/ns/rm#"
    xmlns:acp="http://jazz.net/ns/acp#"
    xmlns:oslc="http://open-services.net/ns/core#"
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:oslc_rm="http://open-services.net/ns/rm#">
  <oslc_rm:ResponseInfo rdf:about="http://%HOSTNAME%:8080/dwa/rm/oslc/query/requirementCollection?oslc.paging=true&amp;oslc.pageSize=10&amp;oslc.where=dcterms:created=%22Martel%22&amp;oslc.prefix=dcterms=%3Chttp://purl.org/dc/terms/%3E">
    <dcterms:title>DOORS ERS Repository</dcterms:title>
  </oslc_rm:ResponseInfo>
</rdf:RDF>
 
Does anybody know what the cause for this problem could be? Did I forget something during the setup of both DOORS tools? Are the queries not correct? When browsing the delegated UI offered by DOORS DWA, the requirements with the ID of interest (when querying for a single requirement) and the given creator are present.
 
Thank you very much in advance for your replies!
 
Cheers,
Marcus

Back to the top