Hello. I try to create a POC application using OSLC to provide sysml v2 resources from our server.
I already found a sample application by @jad (GitHub - oslc-op/sysml-oslc-server: Sample code to demonstrate how to use Lyo Designer to create an OSLC server for the SysML v2 REST API.), which seems to address my needs quite well. Unfortunately, I have some problems to get the application up and running, mostly because of 404 exception to a sparql request.
Because I wanted anyway to provide a OSLC server for my own application, I decided to build one from scratch. While doing so, I run in multiple questions and problems. Maybe someone can help me to get a better understanding.
-
Most examples, tutorials and also Lyo seem to be based on the OSLC 2.0 specification. The spec page of the website highlights only the OSLC 3.0 specification, where terms like ServiceProvider or ServiceProviderCatalaog are even not mentioned. I read on a different blog post that 3.0 is backward compatible to 2.0. Do I understand it correctly, that a ServiceProvider and a ServiceProviderCatalog is not mandatory?
-
I opened the GitHub - oslc-op/sysml-oslc-server: Sample code to demonstrate how to use Lyo Designer to create an OSLC server for the SysML v2 REST API. project in Eclipse Lyo and noticed, that one Resource can be Linked to a Service and a Web service, where a Service defines SelectionDialog and QueryCapabilities. The WebService on the other hand read-only Get methods. From reading the specs I had the understanding that the read-only function is a must on a Service where the SelectionDialog and QueryCapabilities are optional. Why are there two different services in the Lyo palette, and why is the Get capability not part of the OSLC Service?
-
the readme.md of GitHub - oslc-op/sysml-oslc-server: Sample code to demonstrate how to use Lyo Designer to create an OSLC server for the SysML v2 REST API. mentions that the Resources are created based on an EMF model. Is there a tool or script which I can execute to generate a sysmlDomainSpecification.xml based on an emf model?
-
Looking at the generated java classes of OSLC Resources, I noticed, that references to other resources are defined by a Link. This makes sense, taking the core feature of RDF in consideration, to link resources with urls. Reading the OSLC 3.0 spec I got the understanding that a client can use oslc.properties to return resources with only the requested properties (this approach seems to be similar to graphql). Is there an example based on Lyo which supports oslc.properties. How does the result look like when nested properties are defined in the request?
-
I was reading the tutorial on OSLC Primer | OSLC. It mentions that a ServiceProvider itself has a get endpoint to retrieve some metadata about it. I was looking in the Bugzilla and sysml example and noticed that neither of them seems to provide such an endpoint in their service providers. Does that mean, that they are not mandatory or that the guide is outdated?
-
Reading the specs OSLC Core Version 3.0. Part 2: Discovery i notices in Section 5 (Resource Constraints) that there are ServiceProvider and Services defined. Based on the description, I am not sure what is the difference of them. Can you maybe help me to getter understanding?
I think these are the biggest question I have at the moment. I would appreciate any help and input. Thanks already in advance.