On Apr 20, 11:02 am, Aurimas Vinckevicius <
aurimas....@gmail.com>
wrote:
> Could we update the RDFParser?
>
> The current version of the parser cannot properly handlehttp://
www.w3.org/2002/07/owl#sameAspredicate:
>
> 1) The aliases are not merged, so the RDF translator ends up producing
> multiple items.
>
> 2) It does try to associate related items, but it fails to update subject
> references to the new URI, so matching with a new alias fails.
>
> The current version of tabulator RDF Parser addresses (2) and (1) is
> disabled for tabulator, but can be re-enabled by uncommenting one line. I
> tweaked the identity.js file to work with the current code in Zotero and it
> performs quite well for my test cases, but perhaps updating other files is
> also a good idea. There are quite a few changes made to the parser, so
> maybe altering Zotero code to work with the new structure of the parser
> would be a better idea.
This sounds good to me in theory, particularly since we'd gain
Tabulator's RDFa implementation (which I think is finished now?).
However, as I recall our RDF/XML serializer contains some significant
modifications from the Tabulator serializer. Some of these were to
create RDF that could be parsed by Mozilla's RDF engine, which we used
in Zotero 1.0. I think it's fine if new Zotero RDF can't be imported
by Zotero 1.0, so we could drop those. But I also think I modified the
parser in a few other ways to make the output more readable and easier
to parse with normal XML tools. It would probably be best to compare
the output generated by both for the same data and then go from there.
Simon