Skip to content

read-write-web/rdfstore.scala.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rdfstore.scala.js

This project is mapping rdfstore.js to scala.js, allowing one to use rdfstore.js but program in Scala for the browsers. The advantages of such a mapping is that it becomes much easier to program as the Scala compiler can notify one of any type errors.

Getting Started

  • Git clone this project
  • update the submodules of this project in the externals directory with
$ git submodule update --init --recursive
  • compile the scala code in sbt ~packageJS
  • You can then open up html/rdfstore-scalajs.html from your local hard drive in your browser and when you look at the console output you will see a lot of log statements showing what is working at this point.

If you want to run the code in production just run optimizeJS in the sbt console, and open the html/rdfstore-scalajs-opt.html in your browser. The code that writes to the console is in the main class src/main/scala/example/rdfstoreExample.scala. You'll find that the main method there is called from js/rdfstore.startup.js JavaScript, which is added to the build with build.sbt command.

Todo

It would be useful to be able to turn this into a library that one can publish on a maven repository so that other projects such as banana-rdf, could use this to build a rdfstore version of banana.

About

mapping of rdfstore.js to scala.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published