[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [lyo-dev] Lyo OSLC Client for Rational DOORS
|
Hi Marcus,
In the DWA GUI, lower right-hand corner
under Attributes, the URL property value is usually displayed. You can
copy the URL of the selected requirement from there and temporarily hard-code
it in a GET request to get the RDF representation of that requirement.
Sincerely,
|
|
Clyde
Icuspit
|
|
____________________________________________________________
|
|
|
From:
"Marcus Engelhardt"
<FDSProject@xxxxxx>
To:
"Lyo project developer
discussions" <lyo-dev@xxxxxxxxxxx>,
Date:
01/22/2014 10:37 AM
Subject:
Re: [lyo-dev]
Lyo OSLC Client for Rational DOORS
Sent by:
lyo-dev-bounces@xxxxxxxxxxx
Hello Samuel,
no, I am getting no result in case of leaving
the where clause empty or not setting any where clause with setWhere().
How to get the RDF for a single requirement
if I can not query for a requirement? Is there a way to get to know the
URI for a requirement within Doors DWA?
Samuel, thank you very much for your help!
Best,
Marcus
Gesendet: Mittwoch, 22. Januar 2014
um 14:45 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
Marcus,
If you leave the where clause out entirely, do you get a result? This will
at least tell us the problem is with the where clause and not something
else.
Typically the value for dcterms:creator is a URI, not a string. It's possible
DOORS uses strings, however. I don't have a server to test. If you can
include the RDF for a single requirement, I might be able to help you create
a query for it.
--
Samuel Padgett | IBM Rational | spadgett@xxxxxxxxxx
Eclipse Lyo: Enabling tool integration with OSLC
"Marcus
Engelhardt" ---01/22/2014 04:52:44 AM---Hi Samuel, thanks for
responding! I have tried out several properties. Even the following query
do
| 
"Marcus Engelhardt" <FDSProject@xxxxxx>
|
To:

"Lyo project developer discussions" <lyo-dev@xxxxxxxxxxx>
|
Date:

01/22/2014 04:52 AM
|
Subject:

Re: [lyo-dev] Lyo OSLC Client for Rational DOORS
|
Sent by:

lyo-dev-bounces@xxxxxxxxxxx | | | | |
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>
|
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&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_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/lyo-dev
[attachment "graycol.gif"
deleted by Samuel Padgett/Durham/IBM] [attachment "ecblank.gif"
deleted by Samuel Padgett/Durham/IBM]
_______________________________________________ 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"
deleted by Clyde D Icuspit/Cambridge/IBM] [attachment "ecblank.gif"
deleted by Clyde D Icuspit/Cambridge/IBM]