Replies: 8 comments 5 replies
-
Hi May I suggest you ask these questions on the OSLC forum https://forum.open-services.net/ ? |
Beta Was this translation helpful? Give feedback.
-
Got it, thanks @Jad-elkhouy |
Beta Was this translation helpful? Give feedback.
-
And please add links to the piece of code you are referring to. So we don't have to guess what you mean. |
Beta Was this translation helpful? Give feedback.
-
I'm going to sign up on the OSLC forum... |
Beta Was this translation helpful? Give feedback.
-
Class StockQuoteController provides the OSLC server for stock quotes. That server provides OSLC delegated dialog, creation factory and query capabilities on stock quotes. Function getStockQuote is a method that returns an RDF representation of a stock quote, it is not directly related to delegated dialogs, creation factories or query capabilities. Rather it is just part of the POST, GET, PUT, DELETE HTTP methods on stock quotes that a typical OSLC server would provide. I suggest closing this issue and moving the discussion to the OSLC forum. |
Beta Was this translation helpful? Give feedback.
-
@lll4770 welcome to OSLC4Net! You are welcome to post questions here or on the forum. But please use /~https://github.com/OSLC/oslc4net/discussions in the future for the questions, if you prefer to stay on Github. Regarding your questions:
According to the OSLC Core spec, both OSLC Query Capability and the OSLC Selection Dialog endpoints should be requested via an HTTP GET request. There are now discussions in the OSLC Open Project to change this (which I don't support much, as I believe that all idempotent requests should be made using idempotent HTTP verbs, but that's another topic). So, there is no problem with the fact that the method is only designed to handle GET requests.
I specifically checked the code behavior and can say that for the time being, these attributes (annotations are called attributes in C#) are only used to build Service and Service Provider definitions (e.g., when you request Another issue is that you will need to return RDF from a query endpoint (but could be HTML if you want to provide a more rich experience), while the Selection Dialog is HTML-only. Thus, you will need to juggle between returning an All said, I suggest you define a common method (non-public and/or annotated with the Finally, thank you for bringing this up, we will add an issue to update the sample code to avoid this use of the attributes that are not backed by a matching controller action. But I think it will remain in the backlog until we develop a new sample, given that this sample uses a stock exchange information model that is quite far from the OSLC application area at the moment (engineering toolchain integration). |
Beta Was this translation helpful? Give feedback.
-
For that, I would like to recommend using the Java reference implementation to see how the dialogs work: /~https://github.com/oslc-op/refimpl/ Technically, they use HTML iframes and the postMessage Javascript protocol to exchange the data between the client page and the page (e.g., a selection dialog) embedded in an iframe. |
Beta Was this translation helpful? Give feedback.
-
@berezovskyi ! Why are we introducing Discussions under Github? I would have thought it better to consolidate all discussions under our Forum. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm a new beginner of OSLC, and I'm learning on your project.
I studied the StockQuoteSample project, I noticed we could add the "OslcDialog" and "OslcQueryCapability" on the same function(GetStockQuotes). From my understanding, this function "GetStockQuotes" is a "GET" function, why can you put the annotation "OslcDialog" on this function? In other words, what functions can we declare as "OslcDialog", and how about the "url" of "OslcDialog"?
Beta Was this translation helpful? Give feedback.
All reactions