-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python Client development #14
Comments
We definitely plan to have a client side SDK. |
Has there been progress on the reusing of models to create OSLC clients in Python? I'm looking to use Python OSLC SDK release for my work the same way that I can use the Eclipse OSLC client. Thanks for any information, |
Thanks for your interest, @mjohn6606. We do not expect to work on the client side SDK before before winter, the server SDK is still not complete and we're refactoring the APIs right now. |
Thanks for your earlier answer. My colleague @rushmie and I would like to specify our own resource definitions and vocabularies in PyOSLC. Is there information on how to do this? Do we just define our own abstract resource and vocabulary for it and it will show up in the Flask app? Any help would be greatly appreciated. Thanks! Marc |
Hello @mjohn6606, In your implementation, you might add your vocabulary in the Next, you can add your resource definition by extending the In your business implementation you can then instantiate your resources and use your vocabulary to create the responses. Regards! |
Thanks for your help. Just to clarify, we have developed an OSLC domain specification that extends the Core specification in the Eclipse Lyo environment. We are exploring using python as an alternative because our environment prefers Python over Java. It contains new classes that are specific to our data and purposes. We should be able to add those classes and properties we have defined in our Lyo specification into a new vocabulary python file correct? Then we need to define the resource structure by adding classes that extend the Resource Base class. Do those reside in pyoslc.domains files? I see that there is a Requirement class already defined in pyoslc/domains/rm.py. So we might just add all of our new classes in its own domain. Is it necessary to define all of the conversion (to rdf, to json etc) functions to our class definitions? |
Hello @rushmie, Yes, you can add your vocabulary in the The resource definition are in the package For now the methods @rushmie, @mjohn6606, can we continue this discussion in a new issue?, can you please open a new issue, since this issue is related to the OSCL Client :) Thanks! |
Hi,
Congratulations on the Python OSLC SDK release! I see it's mostly focused on developing OSLC servers in Python. Have you tried reusing the models you developed to create OSLC clients in Python? I see you already use
rdflib
andrequests
internally.Cheers from the Eclipse Lyo SDK team,
Andrew 👋
The text was updated successfully, but these errors were encountered: