[humanities-dev] TEXTUS import questions

Tom Oinn tom.oinn at okfn.org
Mon Jun 18 13:23:29 UTC 2012


On 15 June 2012 19:48, David Chiles <dwalterc at gmail.com> wrote:
> Hi
>
> I've been having a little trouble importing the json files I've created
> which folllow json_import_format spec. What is working is I'm able through
> the web interface upload a plain text file and then read and annotate it,
> that all works fine. When I try using the importData function (from
> dataStore-elastic.js) on a JSON file I don't get any errors back and I do
> get an id returned. The problem is then when I go to look at the text and
> annotations in the web interface there are no texts listed.
>
> I'm guessing there's something simple I'm missing. Any help would be
> appreciated.

Simple, yes. Obvious, maybe not!

The 'list texts' page is not actually listing uploaded texts, it's
listing structure nodes with depth 0. The wikisource import script
will create such a node and populate it with the name and description
of the text, this is what you see in the list. In the (near) future
this list will display fragments of bibJSON associated with each node
but to get things working just copy the form used by the
import-wikisource.js script in the src/tools directory.

That should work, let me know if it doesn't!

Tom

-- 
Tom Oinn
+44 (0) 20 8123 5142 or Skype ID 'tomoinn'
http://www.crypticsquid.com




More information about the humanities-dev mailing list