News for hackers. Stuff that matters.
Re:SPARQL Protocol for RDF by hcarvalhoalves on Tuesday June 20, 2017 @10:13PM (#14600150)
Comparing SPARQL to REST doesn't make sense. RDF is a different beast.
Re:SPARQL Protocol for RDF by rspeer on Tuesday June 20, 2017 @10:20PM (#14600192)
The linked article is describing a world where you encode SPARQL in HTTP query parameters and get back RDF+XML. It really is attempting to be an API for querying everything, but querying nothing well.

You can write reasonable REST APIs for RDF. You can even formalize it with JSON-LD if you care to.

Re:SPARQL Protocol for RDF by mindcrime on Tuesday June 20, 2017 @11:00PM (#14600338)
You can write reasonable REST APIs for RDF. You can even formalize it with JSON-LD if you care to.

True. It's unfortunate that many people have such a strong mental association with RDF and RDF+XML. The Semantic Web community largely moved on from emphasizing use of RDF+XML something like 10+ years ago, in favor of N3 or Turtle, and - more recently - JSON-LD.

But people still hear "Semantic Web" and think "oh, that's that heavy weight XML bloated thing..."

Re:SPARQL Protocol for RDF by zmonx on Wednesday June 21, 2017 @05:34AM (#14602305)
When I hear "Semantic Web", I think:

That's the heavy weight XML bloated thing that has, something like 10+ years ago, moved towards N3 or Turtle, more recently to JSON-LD, and will, in due time, hopefully arrive at Prolog syntax as a very natural and convenient representation that is at the same time amenable for direct processing in a programming language that is eminently well suited for the domain of knowledge representation.

Which, I admit, may raise the question why Prolog syntax was not chosen all along, given that its syntax was invented and even standardized decades ago. By the way: A few members of the consortium were well aware that Prolog syntax would have been an excellent choice for RDF. Only a few though.

Re:SPARQL Protocol for RDF by mindcrime on Wednesday June 21, 2017 @11:11AM (#14604468)
Which, I admit, may raise the question why Prolog syntax was not chosen all along, given that its syntax was invented and even standardized decades ago. By the way: A few members of the consortium were well aware that Prolog syntax would have been an excellent choice for RDF. Only a few though.

Good point.

Re:SPARQL Protocol for RDF by dragonwriter on Wednesday June 21, 2017 @01:21AM (#14600860)
> You can write reasonable REST APIs for RDF.

The specification for SPARQL over HTTP is a reasonable REST API for RDF. (Though it highlights the need for a safe HTTP method like GET but with a request body, and overloads POST for queries for that purpose in addition to the god-awful query-string GET encoding.)

It's not JSON-for-all-the-things, but JSON is a stupid way of encoding a general-purpose query language. It does support JSON (among other encodings) for responses, though.