Bug report: Error in RDF importing and exporting
In a nutshell:
1) File export to RDF is getting a broken file (i.e. a malformed RDF) when the original reference has "quotes inside quotes"
2) The error message from Zotero when failing to import the malformed RDF was less than helpful.
Detailed explanation:
[disclaimer]
a) I'm new to this forum and don't know how to attach files so I'll try to describe the issue so you can replicate it.
b) I did try to find similar issues in the discussions, to no avail.
[/disclaimer]
1) I was trying to import a bibliography from another member of my research team via the RDF import/export feature. He exported his library to RDF and I copied via an USB drive (it had a lot of files included)
2) When trying to import via Zotero I got a message "The selected file is not a supported format." which was puzzling to me since RDF is a supported format. The desirable behavior here should be to complain about the malformed RDF, instead of the general error I've got.
3) I tried to open directly in Firefox and got the message:
"XML Parsing Error: not-well formed
Location ...."
4) Open the RDF file at the line pointed after the "Location..." part above and figured out that it had a quotation inside another quotation in the "about: " statement. Of course, this issue was replicated in many parts of the text.
5) I "manually" changed all instances of the inner quotations by "& quot ;" (without the spaces I inserted here to prevent the parser to change it) and got both Firefox to open the file and Zotero to successfully import all the references and respective attachments.
One of the offending references was:
<bib:Article rdf:about="http://www.google.pl/search?hl=pl&q="Ontology Based Knowledge Discovery in Social Networks"&lr=">
And I changed it to:
<bib:Article rdf:about="http://www.google.pl/search?hl=pl&q= (& quot ;) Ontology Based Knowledge Discovery in Social Networks (& quot ;) &lr=">
(changes are within parenthesis and with added spaces just in this example, not in the actual corrected file)
Zotero 2.0.6 (import), not sure about the version of Zotero used to export the file but can verify if needed.
Mac OS 10.6.4 - MacBook Pro 2.4Ghz (MBP51.007E.B05)
Firefox 3.6.8
Thanks and congratulations for your awesome work!
Best Regards,
Paulo Costa
GMU, Fairfax, VA
1) File export to RDF is getting a broken file (i.e. a malformed RDF) when the original reference has "quotes inside quotes"
2) The error message from Zotero when failing to import the malformed RDF was less than helpful.
Detailed explanation:
[disclaimer]
a) I'm new to this forum and don't know how to attach files so I'll try to describe the issue so you can replicate it.
b) I did try to find similar issues in the discussions, to no avail.
[/disclaimer]
1) I was trying to import a bibliography from another member of my research team via the RDF import/export feature. He exported his library to RDF and I copied via an USB drive (it had a lot of files included)
2) When trying to import via Zotero I got a message "The selected file is not a supported format." which was puzzling to me since RDF is a supported format. The desirable behavior here should be to complain about the malformed RDF, instead of the general error I've got.
3) I tried to open directly in Firefox and got the message:
"XML Parsing Error: not-well formed
Location ...."
4) Open the RDF file at the line pointed after the "Location..." part above and figured out that it had a quotation inside another quotation in the "about: " statement. Of course, this issue was replicated in many parts of the text.
5) I "manually" changed all instances of the inner quotations by "& quot ;" (without the spaces I inserted here to prevent the parser to change it) and got both Firefox to open the file and Zotero to successfully import all the references and respective attachments.
One of the offending references was:
<bib:Article rdf:about="http://www.google.pl/search?hl=pl&q="Ontology Based Knowledge Discovery in Social Networks"&lr=">
And I changed it to:
<bib:Article rdf:about="http://www.google.pl/search?hl=pl&q= (& quot ;) Ontology Based Knowledge Discovery in Social Networks (& quot ;) &lr=">
(changes are within parenthesis and with added spaces just in this example, not in the actual corrected file)
Zotero 2.0.6 (import), not sure about the version of Zotero used to export the file but can verify if needed.
Mac OS 10.6.4 - MacBook Pro 2.4Ghz (MBP51.007E.B05)
Firefox 3.6.8
Thanks and congratulations for your awesome work!
Best Regards,
Paulo Costa
GMU, Fairfax, VA
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.