Added generic function to read JSON.
Added a function to iterate over triples in a dataset.