Michele Pasin / Quotes

Restful urls

In keeping with the principle of universal access to information, /programmes was designed to be RESTful. Not RESTful as in a RESTful API and some other separate website thing somewhere else. But RESTful as in some resources and some representations where one of those representations just happens to be HTML. But could be JSON or YAML or XML or RDF-XML or ICS or RSS or XSPF. And which representation you get back depends on what you choose to accept.

Or at least that was the case when /programmes still supported content negotiation. These days you have to request a specific representation by adding an extension to the URL (except for HTML which comes back as default (obviously)). So adding .json brings back JSON, .xml returns vanilla XML, .rdf gets you RDF-XML, .ics added to schedule views gets you ICS files and adding /segments.xspf to an episode page with a tracklist will bring back an XSPF playlist. Obviously not all URLs support all representations and some are more specialised than others.

Saved 10 October 2014 / smethur.st ↗

#JSON #XML #representation #URL #content-negotiation

Full text search via a triplestore

By utilizing the built-in Lucene full-text search index in OWLIM (indexing instance string literals and labels), the Stuff API combines full text search terms…

An Example Of Ontology Driven Software Engineering #API #JSON

URLs stopped being identifiers and became labels

A few years back I always used to say a good URL should be three things: - Persistent - Readable - Hackable And the greatest of these was persistent. Three is…

Yet Another Post About Google (not Really) Removing The Url Bar From Chrome | Smethurst #URL #things #bits #resources

Content negotiation for RDF and HTML

Web clients and servers use the HTTP protocol [RFC2616] to request representations of Web documents and send back the responses. HTTP has a powerful mechanism…

Cool Uris For The Semantic Web #web-documents #content-negotiation #server #format #documents

The Web is intended to be an information space that may be used by humans as well as by machines

HTTP URIs should be dereferenceable, i. e. HTTP clients can look up the URI using the HTTP protocol and retrieve a description of the resource that is…

Making Uris Dereferenceable | Ontogenealogy #content-negotiation #URI #server #header #machine

Describing collections in RDF/XML

RDF/XML provides a special notation to make it easy to describe collections using graphs of this form. In RDF/XML, a collection can be described by a property…

Rdf Primer #RDF/XML #XML #collection #RDF

XML governs syntax, not semantics

XML has no formal mechanism to support the declaration of semantic integrity constraints, and XML processors have no means of validating object semantics even…

Xml And Semantic Transparency #XML #semantics