ktbs: added preliminary SPARQL support