FIXED: Longest RDF prefix lookup would always return the first result.