Im trying to get the capital of the country from rdf using rdf4h
Right (rdf::TriplesGraph) <- parseURL (XmlParser Nothing Nothing) "http://live.dbpedia.org/data/Spain.rdf"
let c = query rdf (Just (UNode "http://live.dbpedia.org/resource/Spain")) (Just (UNode "http://live.dbpedia.org/property/capital")) Nothing
but it returns empty list
I can see that it has triple with
"ns3:string"
predicate, instead of
"http://live.dbpedia.org/property/capital"
after parsing URL,
How should I resolve this or am I missing some other method?
Edit: found this function
uniqTriplesOf :: rdf -> Triples
which does expand the namespaces, now the question is how can I query this rdf by full uris