|
From: Michele P. <mic...@gm...> - 2008-04-23 14:58:38
|
Hey everybody, I solved the issue so I thought someone else could have benefited from this. The problem was that every time I was referencing to a resource, this was created using the RDF:ID construct. Which is ok, as far as the resource is not mentioned anymore using the same RDF:iD construct. Which for some reasons was not happening .......The W3c RDF specs say: "So for example if rdf:ID="name", that would be equivalent to rdf:about="#name". rdf:ID provides an additional check since the same *name*can only appear once in the scope of an xml:base value (or document, if none is given) [...]" My knowledge of RAP is limited, but for some reasons when the namespace was set, it kept creating RDF:ID references irrespectively of whether it wasnt the first time the resource is mentioned. And subsequently the RDF validator was throwing an error......After a few trials I realized that the source of the error was the BASEURI declaration at the beginning: $Model->setBaseURI(COHERE_NS); once I got rid of that and started using full uris when creating new Resources, the output was using RDF:ABOUT and thus it validates too. rdf:About = rdf:about="http://cohere.......website_13710..................." instead of the previous rdf:ID="website_13710........" does it make sense to anybody? mik On Wed, Apr 2, 2008 at 2:01 PM, Michele Pasin <mic...@gm...> wrote: > Hey Tom, > > sorry about the 'node' class, i'm so used to it I don't find it confusing > anymore. So here's a simplified example in PHP, which you can easily run by > yourself. Basically all I'm trying to write is 3 triples as follows: > > ($ID ---> rdf:TYPE -----> "http://cohereweb.net/ontology/cohere.owl#node") > ($authorID ---> rdf:TYPE -----> " > http://cohereweb.net/ontology/cohere.owl#cohere_user") > ($ID ---> ""http://cohereweb.net/ontology/cohere.owl#has_creator" -----> > $name) > > > And here's the code: > ........................................ > .................... > |