Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » Querying modifications(Querying/accessing modifications independantly)
Querying modifications [message #1763804] Sat, 20 May 2017 00:28 Go to next message
Matt Stone is currently offline Matt StoneFriend
Messages: 46
Registered: August 2014
Member
Can someone provide an example of querying an OSLC resource for a list of all its modifications? What I'd like is a response of all the resource modifications uri's. That way I can access a specific modification independently. All I need is a sample URI.

Thanks in advance!
Re: Querying modifications [message #1763874 is a reply to message #1763804] Mon, 22 May 2017 11:39 Go to previous messageGo to next message
Jim Amsden is currently offline Jim AmsdenFriend
Messages: 13
Registered: July 2009
Junior Member
OSLC does not define a specific query or method for getting modifications. There are a couple of approaches you could use. You could do a GET and retain the eTag. Then periodically poll with HEAD to see if the eTag changes, then do another GET and reflect on the properties to see which ones changed. Another approach would be to implement a TRS consumer and have the server (it would have to be a TRS provider) provide the changes in a TRS change log.
Re: Querying modifications [message #1763904 is a reply to message #1763874] Mon, 22 May 2017 18:24 Go to previous message
Matt Stone is currently offline Matt StoneFriend
Messages: 46
Registered: August 2014
Member
Thanks for that information. I was trying something related. Shouldn't the following Query return all the modifications for a given object?

OslcQueryParameters queryParams = new OslcQueryParameters();
queryParams.setPrefix("rdf=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>,dc=<http://purl.org/dc/terms/>");
queryParams.setSelect("dc:title,dc:modified");
queryParams.setWhere("rdf:type=<http://open-services.net/ns/rm#Requirement>");
queryParams.setWhere("dc:identifier=238 and dc:modified>1971-01-1T00:00:00");				

DNG is only returning the latest modification. I tried it this way as well with the same results...

queryParams.setSelect("*");

Should this query be producing what I expect or am I missing something?

Thanks in advance.
Previous Topic:Finding a resource parent
Next Topic:How to link an DNG artifact to Bugzilla resource?
Goto Forum:
  


Current Time: Tue Apr 23 13:28:16 GMT 2024

Powered by FUDForum. Page generated in 0.02678 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top