Add support for Turtle and SPARQL

Tried adding support for [Turtle](http://www.w3.org/TR/turtle/) and [SPARQL](http://www.w3.org/TR/sparql11-overview/). Got 3 errors when running the test suite both before and after adding my changes – at least the number of errors didn't increase :)