A similarity measure for approximate querying over RDF data