Invalid RDF produced
| Project: | FOAF |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Error: {W108} Not an XML Name: '2'[Line = 10, Column = 32], Error: {W108} Not an XML Name: '2'[Line = 11, Column = 39], Error: {W108} Not an XML Name: '2'[Line = 17, Column = 29]
1: <rdf:RDF xmlns="http://xmlns.com/foaf/0.1"
2: xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
3: xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
4: xmlns:dc="http://purl.org/dc/elements/1.1/"
5: xmlns:admin="http://webns.net/mvcb/"
6: xmlns:bio="http://purl.org/vocab/bio/0.1/"
7: xmlns:foaf="http://xmlns.com/foaf/0.1/"
8: xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#">
9: <foaf:PersonalProfileDocument rdf:about="">
10: <foaf:maker rdf:nodeID="2" />
11: <foaf:primaryTopic rdf:nodeID="2" />
12: <dc:title>FOAF for Superted at drupal</dc:title>
13: <dc:description>Friend of a Friend description for Superted</dc:description>
14:
15: <admin:generatorAgent rdf:resource="http://www.drupal.org/" />
16: </foaf:PersonalProfileDocument>
17: <foaf:person rdf:nodeID="2">
18: <foaf:mbox_sha1sum>43d9033af50cdcb268e3172d1a1d79d9c7e9d076</foaf:mbox_sha1sum>
19: <foaf:nick>Superted</foaf:nick>
20: <foaf:weblog>http://www.freshfm.com.au/drupal/?q=blog/2</foaf:weblog>
21: </foaf:person>
22: </rdf:RDF>
(1) shouldn't it be a Person object, foaf:Person, rather than a foaf:person property
(2) integers are invalid rdf:nodeID's. Prefix it with a string or character.
Validate the output at http://www.w3.org/RDF/Validator

#1
fixed (HEAD and DRUPAL-4-5). cleaned up the nodeID's and yes, foaf:Person, not foaf:person. thanks for catching that.
#2