We want to use RDF-REST-JS in a browser with something like :
require.config({
paths: {
rdfrestjs: "../components/rdf-rest-js/browserified/rdfrestbundle"
}
});
define(["rdfrestjs"], function(rdfrestjs) {
var bc = rdfrestjs.coreFactory.getCore("http://localhost:8080/api/user/54d357ea2f6af8e974000001");
// use the Core...
}
We can keep the browserifyied version for the beginning, but need to expose factories in the AMD RequireJS way.