I'm trying to query dbpedia about some country, and I successfully get all it's triples, including this one for example:
"http://live.dbpedia.org/resource/Spain",
"ns8:capital",
"http://live.dbpedia.org/resource/Madrid"
then I want to get data about it's capital. How can I match the meaning of capital to "ns8:capital" string
I assume that this part
xmlns:ns8="http://live.dbpedia.org/property/"
points to this one
"http://live.dbpedia.org/property/capital"
but how can I distinguish it vice versa?