-
Notifications
You must be signed in to change notification settings - Fork 17
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
Provide a ScalaJS implementation #117
Comments
To support ScalaJS all library dependencies need to support ScalaJS as well. This is obviously not the case for Java dependencies like jgrapht, antlr4, jena or rdf4j. It should be possible to restructure / split some modules to isolate most Java dependencies but from my understanding either jena or rdf4j would still be needed to run Shaclex; at least the jena dependency is pulled into a lot of modules / tests. With the current libraryDependencies and dependsOn tree only the modules typing and srdf appear to be free of Java dependencies. As both cats and circe support ScalaJS it should be possible to cross compile those two modules to ScalaJS but I can't judge the benefit of that. |
Yes, or we can provide alternative implementations from the Javascript world. At this moment, all RDF handling from the validation is done through the srdf interfaces in order not to depend no Jena or RDF4j. And that's the core of the Shaclex library.
Of those dependencies:
Not really...this part has already been isolated so the hardest work has already been done.
Yes, I think most of the libraries that shaclex depends on already work with ScalaJs. The benefit of providing a Shaclex version in ScalaJs would be that the library could work in Javascript environments. |
Shaclex doesn't use any Java-specific feature so it should be easy to offer a ScalaJS version.
At this moment, the main difficulty is to configure sbt adding the ScalaJS option. Some projects that could inspire us are circe.
The text was updated successfully, but these errors were encountered: