If using the Nepomuk ontology, It is possible to query for the "nie:url" of those elements in place. Other ontologies might have similar concepts.