Skip to main content



      Home
Home » Eclipse Projects » Vorto » Java library for accessing Vorto repository
Java library for accessing Vorto repository [message #1713668] Thu, 05 November 2015 15:44 Go to next message
Eclipse UserFriend
Hi,

Do you have a Java library for accessing Vorto repository?

Something that could be used to browse the repo and downloading the data contained there? For example:

VortoRepository repo = VortoRepository.publicRepo();
List<VortoEntry> models = repo.find().type(Type.InformationModel).name("MyDevice*").query();
URI linkToDsl = models.get(0).dslUri();

Would you be interested in this kind of API? Smile

Cheers!
Re: Java library for accessing Vorto repository [message #1713669 is a reply to message #1713668] Thu, 05 November 2015 15:49 Go to previous messageGo to next message
Eclipse UserFriend
As I understand Vorto repo is based on ModeShape. Can any JCR-compatible repository be used to host Vorto data?

Cheers!
Re: Java library for accessing Vorto repository [message #1713763 is a reply to message #1713669] Fri, 06 November 2015 08:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi Henryk,

Of course other types of repositories can be used to manage and share Vorto models. The advantage of the Vorto repo is that it is a very specific one which makes it easy and comfortable to browse the available device descriptions, to preview them and to analyze their dependencies.
Additionally the repo is integrated with the IoT toolset via REST which is also a big advantage.

Regarding the API that you describe we only have the mentioned integration with our toolset: https://github.com/eclipse/vorto/tree/development/bundles/org.eclipse.vorto.repository

However I think you're thinking about a JAR that can be used in other applications to easily integrate with the repo, right?

This is definitely interesting for us because it leverages the acceptance of the repo. Do you have a specific use-case in mind?

Cheers,

Olaf
Re: Java library for accessing Vorto repository [message #1725470 is a reply to message #1713763] Thu, 03 March 2016 11:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi Henryk,
Just to add a related point here. There has been a new feature added recently, thereby some integration services are exposed as REST Api. Please visit REST Api documentation at http://vorto.eclipse.org/repo/#/api. Yes. Its still doesn't answer fully to your initial question of accessing as a java library. But you can use the services via REST implementation code. I think with the help of swagger its easy to write client code which could easily integrate. Hope this helps to some extent.

Regards
Vijay
Re: Java library for accessing Vorto repository [message #1729388 is a reply to message #1713668] Wed, 13 April 2016 11:37 Go to previous message
Eclipse UserFriend
Hi Henryk,
your suggestion of having a client lib would be quite cool, for example for languages like java, c# or go Smile
We actually have a golang based CLI tool accessing the repo already. Will be contributing that code the next days. You can have a look at it.

Anyway, I created an issue for your idea: https://github.com/eclipse/vorto/issues/144

Cheers, Alex

PS: Might you be interested in contributing such a client lib Smile ?

Previous Topic:Configurable Vorto Generators?
Next Topic:Generate several files
Goto Forum:
  


Current Time: Mon Sep 22 19:34:46 EDT 2025

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

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

Back to the top