Re: [foaf-dev] are these files valid FOAF?
Dan Brickley <[email protected]> Fri, 20 Apr 2012 16:52:52 +0200
| Newsgroups | gmane.comp.web.rdfweb |
|---|---|
| Message-ID | <CAFfrAFr-mVpHusPYKYfpEtUZNNC+Xo2MWzNeKukMxCmGXS3ACA@mail.gmail.com> |
On 20 April 2012 15:43, Christian Ledermann <[email protected]> wrote: > I try to add foaf to my organizations contact and project data base. > > can you have a look at the links: > > http://iwlearn.net/con-info/contacts/mxmcontactsorganization.20050928Z122513.155/foaf.rdf This one *seems* to parse OK as RDF/XML ... but when you look closely, it isn't quite right. It generates triples (statements/claims) that look like this: <http://iwlearn.net/con-info/contacts/mxmcontactsorganization.20050928Z122513.155/foaf.rdf#deb9c8a4e9ef8f8e24e2332d0ee5905f> <http://xmlns.com/foaf/0.1/Project> <http://iwlearn.net/iw-projects/340/@@rdf> . or <http://iwlearn.net/con-info/contacts/mxmcontactsorganization.20050928Z122513.155/foaf.rdf#deb9c8a4e9ef8f8e24e2332d0ee5905f> <http://xmlns.com/foaf/0.1/Person> <http://iwlearn.net/con-info/contacts/mxmcontactsperson.20050928Z121611.420/@@foaf.rdf> . ... indicating that Person and Project are being parsed as relationships rather than as classes/types. And looking at the markup, this is what you're doing: ... (in markup about <foaf:Organization rdf:ID="deb9c8a4e9ef8f8e24e2332d0ee5905f"> <foaf:name>United Nations Environment Programme (UNEP)</foaf:name> ... <vcard:postal-code>00100</vcard:postal-code> <vcard:country-name>Kenya</vcard:country-name> <foaf:Person rdf:resource="http://iwlearn.net/con-info/contacts/mr.-anjan-kumar-datta/@@foaf.rdf"/> ... to make it more sensible, you'd need to say "ok, what is the *relationship* between that organization and that person? I'm not sure what would be best here, formally foaf:knows is really between people, not an org and and a person - see http://xmlns.com/foaf/spec/#term_knows but you could try wrapping foaf:Person with <foaf:knows><foaf:Person rdf:resource="http://iwlearn.net/con-info/contacts/mr.-anjan-kumar-datta/@@foaf.rdf"/></foaf:knows> ... that would be closer to an understandable model, anyway. Then we can look around and replace foaf:knows with some other named relationship (or add something to FOAF maybe...) hope this helps, Dan > http://iwlearn.net/con-info/contacts/mr.-anjan-kumar-datta/@@foaf.rdf > > > and tell me if this makes sense to you? > > > -- > Best Regards, > > Christian Ledermann > > Nairobi - Kenya > Mobile : +254 702978914 > > <*)))>{ > > If you save the living environment, the biodiversity that we have left, > you will also automatically save the physical environment, too. But If > you only save the physical environment, you will ultimately lose both. > > 1) Don’t drive species to extinction > > 2) Don’t destroy a habitat that species rely on. > > 3) Don’t change the climate in ways that will result in the above. > > }<(((*> > _______________________________________________ > foaf-dev mailing list > [email protected] > http://lists.foaf-project.org/mailman/listinfo/foaf-dev _______________________________________________ foaf-dev mailing list [email protected] http://lists.foaf-project.org/mailman/listinfo/foaf-dev