zotero / zotero

Zotero is a free, easy-to-use tool to help you collect, organize, annotate, cite, and share your research sources.
https://www.zotero.org
Other
10.23k stars 754 forks source link

Add a way to make RDF perform case-insensitive comparisons #130

Open aurimasv opened 12 years ago

aurimasv commented 12 years ago

This would help out with EM translator. I'm thinking that we could set a flag in the Zotero.RDF.AJAW namespace. It might be quite a bit of work to track down all the places where comparisons are taking place, however. statementsMatching function is probably a good start

Edit: I'm aware that XML standard states that these are supposed to be case sensitive, but I think we can be a bit lenient with web content.

simonster commented 12 years ago

I think this would probably be slow and/or painful, since triples are indexed by key.

aurimasv commented 12 years ago

I'm not sure that this is actually that important to achieve, but I think we can do this by having additional index arrays for subjects, predicates, objects with keys always stored in lower case. Thoughts?

simonster commented 12 years ago

That seems like a possibility. If this is just for EM, since it's unlikely there will be a huge number of triples, maybe we could just build and use these objects in RDF.js when requested?