[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [lyo-dev] Lyo OSLC Client for Rational DOORS
|
Hi Samuel,
thanks for responding! I have tried out several properties. Even the following query does not return any requirement although there are multiple requirements where the system properties "Created by" is set to "Martel".
queryParams = new OslcQueryParameters();
queryParams.setPrefix("dcterms=<http://purl.org/dc/terms/>");
queryParams.setWhere("dcterms:creator=\"Martel\"");
query = new OslcQuery(client, queryCapability, 10, queryParams);
result = query.submit();
Thanks again!
Best,
Marcus
Gesendet: Dienstag, 21. Januar 2014 um 14:42 Uhr
Von: "Samuel Padgett" <spadgett@xxxxxxxxxx>
An: "Lyo project developer discussions" <lyo-dev@xxxxxxxxxxx>
Cc: lyo-dev-bounces@xxxxxxxxxxx
Betreff: Re: [lyo-dev] Lyo OSLC Client for Rational DOORS
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
"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
|
![]()
"Marcus Engelhardt" <FDSProject@xxxxxx> |
|
![]()
lyo-dev@xxxxxxxxxxx |
|
![]()
01/21/2014 06:13 AM |
|
![]()
[lyo-dev] Lyo OSLC Client for Rational DOORS |
|
![]()
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&oslc.pageSize=10&oslc.where=dcterms:created=%22Martel%22&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
Attachment:
graycol.gif
Description: GIF image
Attachment:
ecblank.gif
Description: GIF image