Import of exported "Zotero RDF" note misses an item note

Exporting item via context menu to "Zotero RDF" including notes, not files.

Importing the item again into same or different zotero instance skips one note (that with "... Chapter 1...").

Test files: http://jsteeb.de/download/ZoteroRDFImport.zip


  • import ZoteroRDF7a.rdf, note is missing => NOT OK

  • import ZoteroRDF7a1.rdf, note is included => OK

(ZoteroRDF.rdf is the original item before stripping down, importing it is also NOT OK)

The .zip also includes the respective zotero log files - in the failure case, the note is just not mentioned, no error indication so far.

Using zotero 3.0.11 or 3.0.14 in Firefox 19.0 under Linux. Import also fails on Firefox 10 (?) ESR on Windows.

  • No comment so far - sorry, what did I wrong?

    Is this not the place for bug reports - sorry, where is it? From looking around some time on the site, I did not find another way. Would it be on Google?

    The name "Zotero RDF" implies to me that export/import should work without data loss - sorry, is this a misunderstanding?

    Do you not accept test files from other servers - sorry, what is the policy?

    Is the description not clear - sorry, here is what I did: I created a "book" item with several child notes on my private Linux PC (Firefox 19.0.2, zotero 3.0.14), exported to "Zotero RDF", with the "Translator settings" to export notes, but not to export files. I sent the RDF file via email to my job PC (Windows Firefox 10 ESR), imported it, and one of the child notes was missing. I reproduced this also on the private PC. Then I removed some text from that child note until it was successfully imported. Finally by adding/removing one line from the child note, the exported "Zotero RDF" would import or not. I put these two versions of the RDF into a zip file, as mentioned above "ZoteroRDF7a.rdf" and "ZoteroRDF7a1.rdf". The difference of one line is obvious with a simple text diff. I enabled zotero logging to get a hint why the note would be ignored, but got no info.

    So I present two "Zotero RDF" files, differing in one line, the one imports, the other fails:

    unzip ZoteroRDFImport.zip
    diff ZoteroRDF7a.rdf ZoteroRDF7a1.rdf

    <li>C-style structs can be held invariant across compilers</li>

    No comment?
  • sorry about that. we must have missed this post somehow. I'll get back to you probably tomorrow.
  • (I actually did see this. I can confirm the problem - it's the first bullet point from that note that makes the difference, but changing the content of that bullet point doesn't make a difference - but I cannot make sense of what's going on)
  • Seems related to the length, not that line in particular.
  • You're right Dan. This appears to be a bug in rdflib.js. I submitted a bug report at https://github.com/linkeddata/rdflib.js/issues/14

    I'll try to figure out how to fix it in the RDFParser code, but it's quite magical (i.e. it's poorly documented, obscurely coded, and I don't fully understand it). Thankfully it's not too large, so I can probably figure it out in an hour or so.
  • aurimas: If you don't want to spend time on this, it'd be trivial to call Document.normalize() before passing the RDF to rdflib, which should merge adjacent text nodes.
  • I'll check it out. that sounds like a good solution to me. Thanks Simon.

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.