fadmaa / grefine-rdf-extension

An extension to Google Refine that enables graphical mapping of Google Refine project data to an RDF skeleton and then exporting it in RDF format
http://refine.deri.ie
Other
94 stars 55 forks source link

Base URI does not get updated in RDF preview & export #68

Open ktk opened 11 years ago

ktk commented 11 years ago

If I update the base URI in my RDF template the updates never make it into the RDF preview and RDF export, it stays on the old value.

ktk commented 11 years ago

Ok I just noticed that this works if the prefix ends with a /, not sure if this is a bug then :-)

sparkica commented 11 years ago

If I'm correct, base uri should end with a fragment identifier - either / or # (at least when using this extension). If it has no fragment identifier, base uri is stripped either to previous '/' or domain part. Examples:

  1. Base URI: http://example.com Base URI in preview: http://example.com/
  2. Base URI: http://example.com/a/b Base URI in preview: http://example.com/a/
  3. Base URI: http://example.com/a/b/ http://example.com/a/b/
  4. Base URI: http://example.com/a/b# http://example.com/a/b#

I added a warning message to the dialog, which is shown only when base URI has no fragment identifier. I also created a pull request for this.