Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] Query question

These can be difficult to debug. The one thing that stands out to me is you're using the dc prefix in the where clause instead of the usual dcterms. If you define your prefixes using oslc.prefix, does it work?

queryParams.setPrefix("dc=<http://purl.org/dc/elements/1.1/>,rtc_cm=<http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/>");

Or perhaps just change dc:type to dcterms:type in your call to setWhere().
--
Samuel Padgett | IBM Rational | spadgett@xxxxxxxxxx
Eclipse Lyo: Enabling tool integration with OSLC


Inactive hide details for Christopher D Fryett---12/17/2013 10:52:13 AM---I have taken the RTC client example and was able to sChristopher D Fryett---12/17/2013 10:52:13 AM---I have taken the RTC client example and was able to successfully query the specific RTC provider.  N


    From:

Christopher D Fryett/Billings/IBM@IBMUS

    To:

Lyo project developer discussions <lyo-dev@xxxxxxxxxxx>

    Date:

12/17/2013 10:52 AM

    Subject:

[lyo-dev] Query question

    Sent by:

lyo-dev-bounces@xxxxxxxxxxx




I have taken the RTC client example and was able to successfully query the specific RTC provider.  Now I am trying to take an existing query and get it working, but the response says unknown attribute.  Is there a better way to debug this.  The information I am trying to retrieve is a name not the ID.  Your insight is greatly appreciated.

queryParams.setWhere(
"dc:type in [\"com.ibm.rational.utl.request.type.utlrequest\",\"com.ibm.rational.utl.request.type.sdt\",\"com.ibm.rational.utl.request.type.jsrequest\",\"com.ibm.rational.utl.request.type.ttrequest\",\"com.ibm.rational.utl.request.type.em\",\"com.ibm.rational.utl.request.type.cloud_poc\",\"com.ibm.rational.utl.request.type.grt\"] and rtc_cm:com.ibm.rational.utl.request.attrib.client !=\"\" and rtc_cm:com.ibm.rational.utl.request.attrib.client !=\"TBD\" and rtc_cm:com.ibm.rational.utl.request.attrib.client !=\"NA\" and rtc_cm:com.ibm.rational.utl.request.attrib.client !=\"N/A\" and rtc_cm:com.ibm.rational.utl.request.attrib.client !=\"Enablement\" and rtc_cm:com.ibm.rational.utl.request.attrib.client !=\"Several\" and rtc_cm:com.ibm.rational.utl.request.attrib.client !=\"Internal\" and rtc_cm:resolutionDate =\"\"");
queryParams.setSelect(
"oslc_cm.properties=rtc_cm:com.ibm.rational.utl.request.attrib.client,dcterms:title,dcterms:type,dcterms:description");


<rdf:RDF
   xmlns:rdf="
http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:oslc="
http://open-services.net/ns/core#" >
 <rdf:Description rdf:nodeID="A0">
   <oslc:message>Unknown attribute id: [type]</oslc:message>
   <oslc:statusCode>400</oslc:statusCode>
   <rdf:type rdf:resource="
http://open-services.net/ns/core#Error"/>
 </rdf:Description>
</rdf:RDF>


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


GIF image

GIF image


Back to the top