I'm aware of JSON-LD, but it is hardly relevant here. Not to start a flame, but I see it as another RDF syntax, no more.
RDF processing can happen on the server as well as on the browser. SPARQL processor is still a SPARQL processor, no matter where you place it. And I will at all costs avoid coding an algorithm in JS for something that can be achieved declaratively, e.g. with SPARQL or XSLT. On Fri, May 15, 2020 at 1:07 PM Silvio Domingos <silvio.d.card...@gmail.com> wrote: > > Dear Martynas, > > I think that Jena is more focused on back-end process, may i'm wrong :/... > Perhaps would be better to focus more on JSON-LD that is an improved JSON > (+-) lol. > > They already have some javascript implementations for that: > For example: > https://github.com/digitalbazaar/jsonld.js/ > > For me, the use of RDF and its derivatives on application side (Sites, > exposing APIs ...) should stop now we have jsonld. > > Reasons: > > 1 ) Json is more friendly for web developers! > 2 ) Many semantic web tools, like Jena, already supports it ;) > 3) JSON is faster and uses fewer resources than its XML counterpart > https://www.cs.montana.edu/izurieta/pubs/IzurietaCAINE2009.pdf > 4) Very easily to boost your SEO. See integration for google > https://developers.google.com/search/docs/guides/intro-structured-data > > Finally, if they manage to integrate json/jsonld and openapi all together, > RDF will be really dead for me. > > You can check more what is going on with jsonld here: > https://github.com/json-ld > > Best > Silvio > > On 2020/05/15 10:39:07, Martynas Jusevičius <marty...@atomgraph.com> wrote: > > Hi, > > > > RDF JavaScript frameworks are still ~20 years behind Java. So this had > > me thinking for a while -- instead of reinventing the wheel, would it > > be possible to transpile Jena to TypeScript or JavaScript? > > > > ARQ would probably be my number #1 target, but RIOT would also be useful. > > > > From what I've found, J2CL seems to be the framework that should be > > able to do it: > > "Java to Closure JavaScript transpiler" > > https://github.com/google/j2cl > > > > I haven't tried myself yet, but I know that Saxon-CE (which is now > > deprecated in favor of the native Saxon-JS) was first ported using > > GWT, the predecessor of J2CL. > > http://www.saxonica.com/ce/index.xml > > > > Has anyone had similar ideas or done some experiments? Is this realistic at > > all? > > > > Martynas > >