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

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


Inactive hide details for "Marcus Engelhardt" ---01/22/2014 04:52:44 AM---Hi Samuel,   thanks for responding! I have tried out "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


    From:

"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



    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
[attachment "graycol.gif" deleted by Samuel Padgett/Durham/IBM] [attachment "ecblank.gif" deleted by Samuel Padgett/Durham/IBM]

GIF image

GIF image


Back to the top