added index and sparql wrapper