Skip to main content

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

Hi Gabriel,
 
thanks for your reply. I already have removed the quotes around the id but unfortunately it changed anything. My query code looked like:
 
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();
 
Thank you for any helpful clue!
 
Cheers,
Marcus
 
Gesendet: Dienstag, 21. Januar 2014 um 15:23 Uhr
Von: "Gabriel Ruelas/Mexico/IBM" <gra@xxxxxxxxxxx>
An: "Lyo project developer discussions" <lyo-dev@xxxxxxxxxxx>
Cc: "Lyo project developer discussions" <lyo-dev@xxxxxxxxxxx>, lyo-dev-bounces@xxxxxxxxxxx
Betreff: Re: [lyo-dev] Lyo OSLC Client for Rational DOORS
Hi Marcus,
        For the query based on the id, try by removing the quotes around the number, like:
queryParams.setWhere("dcterms:identifier=9");

Gabriel Ruelas
 Senior Developer in Requirements Management & OSLC
 Member of IBM Academy of Tecnology
  Phone ( 33 ) 36697608  T/L 877-7608


 
From: Samuel Padgett <spadgett@xxxxxxxxxx>
To: Lyo project developer discussions <lyo-dev@xxxxxxxxxxx>,
Cc: lyo-dev-bounces@xxxxxxxxxxx
Date: 21/01/2014 07:43
Subject: Re: [lyo-dev] Lyo OSLC Client for Rational DOORS
Sent by: lyo-dev-bounces@xxxxxxxxxxx
 



Hi, Marcus. Did you mean to query for dcterms:creator instead of dcterms:created? This parameter doesn't look right:

queryParams.setWhere("dcterms:created=\"Martel\"");

--
Samuel Padgett | IBM Rational | spadgett@xxxxxxxxxx
Eclipse Lyo: Enabling tool integration with OSLC



Inactive hide details for "Marcus Engelhardt" ---01/21/2014 06:13:09 AM---Hi guys,   I have a problem when querying Rational DO"Marcus Engelhardt" ---01/21/2014 06:13:09 AM---Hi guys,   I have a problem when querying Rational DOORS for requirements with the help of the lyo s

From:

"Marcus Engelhardt" <FDSProject@xxxxxx>

To:

lyo-dev@xxxxxxxxxxx

Date:

01/21/2014 06:13 AM

Subject:

[lyo-dev] Lyo OSLC Client for Rational DOORS

Sent by:

lyo-dev-bounces@xxxxxxxxxxx
 



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
_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx

https://dev.eclipse.org/mailman/listinfo/lyo-dev

_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx

https://dev.eclipse.org/mailman/listinfo/lyo-dev


_______________________________________________ lyo-dev mailing list lyo-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/lyo-dev

Back to the top