Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] How to manually set rdf:about in automatically created resources

Hi Erica & Samuel,

I had the same problem using Lyo 1.1. Indeed, there is a bug Lyo (https://bugs.eclipse.org/bugs/show_bug.cgi?id=397561) but this bug is already solved. I don't know which version of Lyo you are using?. Buiding a preliminary Lyo version (in local) from the Lyo Git repository should resolve your problem. I had do the same.

Hope this will be helpful.

--
Best regards / Cordialement / Mit freundlichen Grüssen
--
Dr. Idrissa Abdoulaye DIENG
Technology Manager

Phone: +33 (0)9 83 25 77 12
Fax: +33 (0)9 83 56 77 12

Web: http://www.itemis.com
Mail: idrissa.dieng@xxxxxxxxxx
LinkedIn: http://www.linkedin.com/in/idydi

itemis France SAS
198, Avenue de Verdun
92130 Issy-Les-Moulineaux
France



2013/7/9 Samuel Padgett <spadgett@xxxxxxxxxx>
Erica,

The ResponseInfo URI comes from the HttpServletRequest. I believe per the OSLC spec it must match, so it's not something I'd suggest you change (and I don't think it's possible in Lyo).


"The subject resource URI of the oslc:ResponseInfo resource representation will be the HTTP request URI, or URI from subsequent redirects."

What request URL did you use to get that query response?

--
Samuel Padgett | IBM Rational | spadgett@xxxxxxxxxx


-----lyo-dev-bounces@xxxxxxxxxxx wrote: -----
To: lyo-dev@xxxxxxxxxxx
From: Erica Brown/Durham/IBM@IBMUS
Sent by: lyo-dev-bounces@xxxxxxxxxxx
Date: 07/09/2013 12:51PM
Subject: [lyo-dev] How to manually set rdf:about in automatically created resources


Hi,
So, I have this implementation of oslc4j working in our environment...
I am having a problem showing the proper URI in rdf:about for the returned service.. Here is an example:
If I goto the oslc interface:
http://localhost:8080/XXXX/oslc/ 
I get the output from the service provider:
rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:oslc="http://open-services.net/ns/core#">

But it is set properly for the connection being returned because I set it manually
In the code I have this set for the path.. So, I assume the about is being set to the App/{path} instead of using the URI set for the service provider..

In the web.xml I setup the servlet mapping for the OSLC interface

<servlet-mapping>
<servlet-name>OSLCServlet</servlet-name>
<url-pattern>/oslc</url-pattern>
<url-pattern>/oslc/*</url-pattern>
</servlet-mapping>

So, the user has to goto localhost:<port>/App/oslc
For the service provider
and
localhost:<port>/App/oslc/connections
For the connections and so on.

Is there a way around this by just setting the about for the response with the URI base..
Or do I need to work things in a different way.
Let me know if I need to include more information. I am not keen on all the naming of things yet,
so this explaination may seem confusing to some.
Sorry, I'm still new to OSLC.
Thanks!

_________________________________________________________
Erica Brown

DASH/Blaze Software Developer
IBM Software | Cloud & Smarter Infrastructure
919.224.1460 (phone) | 687.1460 (tie-line)

UI Services (DASH) is on SMC - Check it Out

_______________________________________________
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




--
Cordialement,
Idrissa Abdoulaye DIENG
----------------------------------------

JPEG image


Back to the top