Let's say you have a document that mentions "Turkey" and "Istanbul" and you want to extract those keywords and match it to a Wikipedia article. But for "turkey" it could mean for instance either Turkey the country or turkey the bird. Is it then possible to use the second keyword, Istanbul, to measure the "distance" between that and the right "Turkey". So:
Istanbul -> Turkey the country -> close.
Istanbul -> turkey the bird -> distant.
To explain what I mean with distance further: as I understand SPARQL can traverse graphs and DBPedia is a type of (knowledge) graph so the distance I am looking for could probably be in the graph.