Sparql Help

Dear SPARQL Developers 
I'm research about linked data. 
I need to extract Triples or Subjects from a dataset (particularly DBPedia) that their object is an IRI and this IRI refer to an external dataset (not the same dataset that triple exist in it) 
For example if in DBPedia there are triples such: 
Person1 Like http://dbpedia.org/Person2 
Person10 Like http://musicbrainz.org/Person3 

I need to extract Person10 or " Person10 Like http://musicbrainz.org/Person3" , because Person10 refers to an external IRI rather that DBPedia 
Now I need to a SPARQL command that calculate this for me. can you help me for do this? 

Best Regard 

Reza Ramezani 

MS Student in Software Engineering 
Department of Computer Engineering 
Isfahan University of Technology , Isfahan, Iran 

Email: r.ramezani@ec.iut.ac.ir 

Received on Wednesday, 18 April 2012 12:04:09 UTC