Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-07 Thread Eric Prud'hommeaux
On Sep 4, 2015 12:18 PM, "Stian Soiland-Reyes" < soiland-re...@cs.manchester.ac.uk> wrote: > > One problem is that what many web developer likes is JSON with a > structure. We already had RDF/JSON which was a flat and verbose > "subject": { "uri": "http://example.com/; } style serialization that

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-07 Thread Martynas Jusevičius
Unless you drop the object-oriented domain model completely, and apply the constraints directly on the RDF graph. On Mon, Sep 7, 2015 at 3:51 PM, Eric Prud'hommeaux wrote: > > On Sep 4, 2015 12:18 PM, "Stian Soiland-Reyes" > wrote: >> >> One

RE: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-05 Thread Simon.Cox
Yes – double nesting – this is what GML* does. It makes instance documents trivial to transform to valid RDF, but confuses the hell out of most XSD-RDF converters. Simon Cox *Geography Markup Language. From: Timothy W. Cook [mailto:t...@mlhim.org] Sent: Friday, 4 September 2015 9:34 PM To:

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-04 Thread Stian Soiland-Reyes
One problem is that what many web developer likes is JSON with a structure. We already had RDF/JSON which was a flat and verbose "subject": { "uri": "http://example.com/; } style serialization that nobody liked. What made JSON-LD popular is the @context - being able to simplify namespaces and

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-04 Thread David Booth
On 09/04/2015 06:12 AM, Stian Soiland-Reyes wrote: [ . . . ] However, if your data is stored natively in a triple/quad store, then to produce a consistent JSON structure you would currently have to use hard-coded templates and custom code (which sounds silly, converting from RDF to RDF

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-04 Thread Melvin Carvalho
On 4 September 2015 at 12:02, Stian Soiland-Reyes < soiland-re...@cs.manchester.ac.uk> wrote: > +1 to minimize RDF/XML use! > > I do also think there is the same danger now of JSON-LD being seen as > a dialect of JSON, rather than a way to serialize RDF. > > I have seen people trying to do

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-04 Thread Timothy W. Cook
On Fri, Sep 4, 2015 at 7:02 AM, Stian Soiland-Reyes < soiland-re...@cs.manchester.ac.uk> wrote: > > > > I must admit I have even done XML Schemas for documents that just > happens to be valid RDF/XML documents - (this was before JSON-LD and > Turtle were standards) - this was pushing the envelope

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-04 Thread Stian Soiland-Reyes
+1 to minimize RDF/XML use! I do also think there is the same danger now of JSON-LD being seen as a dialect of JSON, rather than a way to serialize RDF. I have seen people trying to do "JSON-LD" with arbitrary JSON added here and there. Some even interpreted "Linked Data" as meaning "Just make

Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?

2015-09-04 Thread Frans Knibbe
Thanks everyone for the responses! It appears there are plenty of options, with something to be said for each. I think I am going to give rdf-ext (one of the recommendations) a try first. It had appeared on my radar before I posted the question, but I was put

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-04 Thread Stian Soiland-Reyes
(As it is Friday..) No, I didn't do RDF inside the XML schema (but see SAWSDL http://www.w3.org/TR/sawsdl-guide/ and similar Semantic Web Service approaches) but I for some reason made an XML schema for structuring XML documents that also happens to be RDF/XML. In all it's glory:

Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?

2015-09-04 Thread Andrea Perego
Hi, Frans. Just for sake of completeness, there's also a PHP-based option, by using the EasyRDF library (+ ML/JSON-LD for JSON-LD): https://packagist.org/packages/easyrdf/easyrdf https://packagist.org/packages/ml/json-ld An example on how to set up an API for converting an RDF serialisation

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-04 Thread Norman Gray
David and all, hello. On 3 Sep 2015, at 22:11, David Booth wrote: I can appreciate the value of RDF/XML for certain processing tasks, and I'm okay with keeping RDF/XML alive as a *processing* format. My suggestion to deprecate RDF/XML was intended to apply to its use as a *publishing*

Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?

2015-09-03 Thread Ruben Verborgh
Hi Frans, > What would be the best or easiest way to do this? Seems that RDF-Ext (https://github.com/rdf-ext/rdf-ext) is the way to go! It supports read/write for both RDX/XML and JSON-LD. Best, Ruben PS You might like the public-rd...@w3.org mailinglist, where we discuss RDF and JavaScript.

Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?

2015-09-03 Thread Jeff Mixter
Frans, Quick follow-up. The inspiration for my simple transformation script came tom the RDF Translation service that Marin Hepp created: http://rdf-translator.appspot.com Jeff On Thu, Sep 3, 2015 at 10:19 AM, Frans Knibbe wrote: > Hello, > > In a web application that

Recommendation for transformation of RDF/XML to JSON-LD in a web browser?

2015-09-03 Thread Frans Knibbe
Hello, In a web application that is working with RDF data I would like to have all data available as JSON-LD, because I believe it is the easiest RDF format to process in a web application. At the moment I am particularly looking at processing vocabulary data. I think I can assume that such data

Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?

2015-09-03 Thread Jeff Mixter
Frans, I had the same problem a few months ago and wrote a very simple server side Python script (using the rdflib and rdflib-json Python modules) to, on the fly, grab RDF/XML load it into a graph (in memory) and then re-serialize it as JSON-ld. It works very quickly and I have not run into any

Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?

2015-09-03 Thread Martynas Jusevičius
Frans, you can use an XSLT stylesheet which does exactly that: https://github.com/Graphity/graphity-client/blob/master/src/main/webapp/static/org/graphity/client/xsl/rdfxml2json-ld.xsl There's a bug but it shouldn't be hard to fix: https://github.com/Graphity/graphity-client/issues/62 You will

Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?

2015-09-03 Thread Paul Houle
I think you have the best choice of RDF tooling in the Java world. The transformation you want to do is dead easy to do with Jena, which supports RDF/XML and many other formats https://jena.apache.org/documentation/io/ there all kinds of ways to write web services in Java so this is a simple

Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?

2015-09-03 Thread Jeff Mixter
It is not yet on GitHub. There are a few clean-up, documentation and paperwork things I need to do but I should probably have it up over the next few days. I will send out the link when it is available. Jeff Mixter On Thu, Sep 3, 2015 at 12:27 PM, David Booth wrote: > Hi

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Jeff Mixter
+1 I echo the issue of laboring to read RDF/XML as well as the issue of trying to teach people about RDF. They see RDF/XML and think OK so it's just XML... My use of RDF/XML is nothing more than an import to services that convert it into more usable serializations for apps and services. Jeff

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread David Booth
Hi Martynas, If your application depends on the syntax of RDF/XML then, rather than asking all publishers to supply that format, I would suggest that you use an RDF converter as an input filter. The input filter could then read any of the standard RDF serializations and still provide your

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Sarven Capadisli
On 2015-09-03 19:03, David Booth wrote: I encourage all RDF publishers to use one of the other standard RDF formats such as Turtle or JSON-LD. All commonly used RDF tools now support Turtle, and many or most already support JSON-LD. I have grown to (or to be brutally honest; tried very hard

Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread David Booth
Side note: RDF/XML was the first RDF serialization standardized, over 15 years ago, at a time when XML was all the buzz. Since then other serializations have been standardized that are far more human friendly to read and write, and easier for programmers to use, such as Turtle and JSON-LD.

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Ruben Verborgh
> I encourage all RDF publishers to use one of the other standard RDF formats > such as Turtle or JSON-LD. +1 To be honest, even after several years in the SemWeb community, I have to admit I still cannot read RDF/XML. It's just too complicated for me and I don't see a point in learning it,

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Martynas Jusevičius
With due respect, I think it would be foolish to burn the bridges to XML. The XML standards and infrastructure are very well developed, much more so than JSON-LD's. We use XSLT extensively on RDF/XML. Martynas graphityhq.com On Thu, Sep 3, 2015 at 8:03 PM, David Booth wrote: >

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Kingsley Idehen
On 9/3/15 1:03 PM, David Booth wrote: > Side note: RDF/XML was the first RDF serialization standardized, over > 15 years ago, at a time when XML was all the buzz. Since then other > serializations have been standardized that are far more human friendly > to read and write, and easier for

Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?

2015-09-03 Thread David Booth
Hi Jeff, This certainly sounds like something that others may want to use. Is it on github? What license? Thanks! David Booth On 09/03/2015 11:05 AM, Jeff Mixter wrote: Frans, I had the same problem a few months ago and wrote a very simple server side Python script (using the rdflib and

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Melvin Carvalho
On 3 September 2015 at 19:03, David Booth wrote: > Side note: RDF/XML was the first RDF serialization standardized, over 15 > years ago, at a time when XML was all the buzz. Since then other > serializations have been standardized that are far more human friendly to > read and

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Kevin Ford
Hi David, If by 'publishing' you mean 'from a web service for consumption' then I feel the suggestion to deprecate RDF/XML is an over correction. Of course, it is not too difficult to move between RDF serializations, but if the publishing service provides a variety of serializations, it is

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Bernadette Hyland
+1 David, well said. Amazing how much the mention of JSON (in the phase JSON-LD) puts people at ease vs. RDF . JSON-LD as a Recommendation has helped lower the defenses of many who used to get their hackles up and say ‘RDF is too hard'. Perception counts for a lot, even for highly technical

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Paul Houle
Bernadette, it is not just perception, it is reality. People find JSON-LD easy to work with, and often it is a simple lossless model-driven transformation from an RDF graph to a JSON graph that people can do what they want with. Ultimately RDF is a universal data model and it

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Kevin Ford
I worry that that 'ease' is the same kind of obfuscation that RDF/XML is often criticized for. When those individuals gaze upon JSON-LD, do they see JSON or RDF? Best, Kevin On 9/3/15 4:18 PM, Bernadette Hyland wrote: +1 David, well said. Amazing how much the mention of JSON (in the phase

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Paul Houle
The discussion in the other thread has shown that RDF/XML conversion to JSON-LD or Turtle is easy in many popular languages. Often I have to export stuff as RDF/XML for use by older tools and I have not hit the corner cases in the export, although I sure have hit corner cases inside the tools

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Timothy W. Cook
It is interesting to see the XML-haters want to abandoned RDF/XML. IF you do not like it then do not use it. But remmber that there is not an RDF serialization that can fully accomplish structural integrity like XML Schema. RDF/XML gives us the ability to mix both in one structurally and

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread John Walker
Hi Martynas, Indeed abandoning XML based serialisations would be foolish IMHO. Both RDF/XML and TriX can be extremely useful in certain circumstances. John On 3 Sep 2015, at 19:53, Martynas Jusevičius wrote: > With due respect, I think it would be foolish to burn the

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Kingsley Idehen
On 9/3/15 4:23 PM, Timothy W. Cook wrote: > It is interesting to see the XML-haters want to abandoned RDF/XML. IF > you do not like it then do not use it. But remmber that there is not > an RDF serialization that can fully accomplish structural integrity > like XML Schema. RDF/XML gives us the

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Paul Houle
Maybe saying it is "pedagogical" is being charitable. Working programmers learn by book much less than they should; the strategy of "search Google, copy some code from stackoverflow, and mess around with it until it seems to work" is common and what we can do about it is to push the new syntax

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread Timothy W. Cook
Paul and others should probably realize that their use cases aren't the only ones for linked data. Some people need more structure and data quality assurance. On Thu, Sep 3, 2015 at 7:29 PM, Paul Houle wrote: > Maybe saying it is "pedagogical" is being charitable. > >

Re: Please publish Turtle or JSON-LD instead of RDF/XML [was Re: Recommendation for transformation of RDF/XML to JSON-LD in a web browser?]

2015-09-03 Thread David Booth
Hi John, I can appreciate the value of RDF/XML for certain processing tasks, and I'm okay with keeping RDF/XML alive as a *processing* format. My suggestion to deprecate RDF/XML was intended to apply to its use as a *publishing* format. Thanks, David Booth On 09/03/2015 03:52 PM, John