Datatype agnostic triple store & query engine API