From: Alexandre P. <al...@pa...> - 2006-02-23 17:12:56
|
Hi, I used RAP to write a FOAF parser [1], in which I use MemModel to read my RDF files. I recently thaught about FOAF extensions, as the Relationship vocabulary [2], which defines some subproperties of foaf:knows. At the moment, with my MemModel, I use findFirstMatchingStatement($subject, FOAF::KNOWS, $null) to get all foaf:knows classes related to my subject. But, I assume, it won't work if the RDF files that use rel:worksWith instead of foaf:knows. Is that the role of OntModel to make this kind of queries work ? If so, should I have to write somewhere (in vocabulary folder) the Relationship model and its mapping with FOAF ? Thanx for any advice on this point. [1] http://gna.org/projects/phoaf [2] http://vocab.org/relationship/ |