Relax Target Test for Bibliontology RDF
I am testing the Bibliontology RDF translator for saving metadata in the web to zotero. Sometimes it is not possible to import the metadata because the page/file is not named rdf. It might be that the page is named .xml oder uses some redirection. Nevertheless, it can include rdf and use the bibo vocabulary (which is tested in the detectImport routine).
How about relaxing the target-condition? For example something like this
target = rdf | [^\.]* | *\.[^h].*
(regular expression syntax, need to be transformed to JavaScript)
The expression should include everything which was included yet plus all url without the "." and everything not ending to .htm or html (or exclude a little more as my expression shows) as possible candidates.
[Example 1] http://someURL/isbn97811111111.rdf
[Example 2] http://anotherURL/isbn97822222222
[Example 3] http://someOtherURL/isbn97833333333.xml
What do you think?
Best,
Philipp
How about relaxing the target-condition? For example something like this
target = rdf | [^\.]* | *\.[^h].*
(regular expression syntax, need to be transformed to JavaScript)
The expression should include everything which was included yet plus all url without the "." and everything not ending to .htm or html (or exclude a little more as my expression shows) as possible candidates.
[Example 1] http://someURL/isbn97811111111.rdf
[Example 2] http://anotherURL/isbn97822222222
[Example 3] http://someOtherURL/isbn97833333333.xml
What do you think?
Best,
Philipp
Do you have some specific examples of what you're trying to do?
[1] Bibtex, RIS, and Refer, which are exclusively used as bibliographic formats can be intercepted by Zotero for Firefox when served with the right mime-type. That wouldn't make sense for such common formats as xml or rdf which are used for many purposes.
http://d-nb.info/1022402080/about/rdf
If you download the page and save it as .rdf and look at the local copy in firefox, then the Zotero-icon shows up with "Bibliontology RDF".
Why wouldn't it make sense to allow rdf format in combination with the detectImport routine that checks for a type of bibo?
Simon or Dan would have to confirm.
That particular file doesn't work, but that's because the Bibliontology RDF translator is throwing an error trying to import it.
My first idea was to use the Bibliography RDF translator, which is not working, because this is an import translator.
My second idea was to try to use a XML transformation (xsl), but this seems also not to work.
Any suggestions? I have rdf+xml of bibliographic data in the web. How can I make it possible for zotero to easily save it?
Is it also unreasonable to think about a Bibliontology RDF web-translator besides the import-translator?
http://unapi.info/