[openspending-dev] solr problem during installation and more

Alberto Rodriguez Peon alberto.rodriguez.peon at cern.ch
Mon Aug 12 11:26:19 UTC 2013


Hi!

Thanks for the help! The schema was not properly installed and that was the cause of my problem. Now everything is working smoothly :)

I am working right now in the API for loading datasets. I have implemented a quick and simplified version in an "ostool" way.


GET /api/new?metadata=<json_url>&csv_file=<csv_file_url>

This creates a dataset with the CSV as a source, just like the command line tool.

However, the creator of the dataset has to be declared somewhere. How it will be the correct way to authenticate the REST request for the user who is creating the dataset? (signing the request with the API key, maybe?)

Cheers,
Alberto

________________________________
From: openspending-dev-bounces at lists.okfn.org [openspending-dev-bounces at lists.okfn.org] on behalf of Tryggvi Björgvinsson [tryggvi.bjorgvinsson at okfn.org]
Sent: 08 August 2013 12:37
To: openspending-dev at lists.okfn.org
Subject: Re: [openspending-dev] solr problem during installation and more

Hi Alberto!

On mið 7.ágú 2013 12:48, Alberto Rodriguez Peon wrote:

I am Alberto Rodríguez, a summer student from CERN, right now working on the development of an API for loading datasets.

Cool. Keep us posted!


I installed Openspending following this tutorial<http://docs.openspending.org/en/latest/install.html><http://docs.openspending.org/en/latest/install.html> .  The website seems to be working, and I can create datasets but not see the graphs nor the "manage" page. The exception raised is the following:

<snip>


Anyone can help me to fix this? I really don't know why is failing.

Hmm... Shot in the dark but did you link to the openspending schema? That is did you do this:


$ ln -sf <full path to openspending>/solr/openspending_schema.xml ./solr/example/solr/collection1/conf/schema.xml


By the way, in the tutorial there is one step<http://docs.openspending.org/en/latest/install.html#test-the-install><http://docs.openspending.org/en/latest/install.html#test-the-install> that allows to import a dataset from the json metadata and the csv file.

That is exactly what we need from the CERN side to push data to Openspending. Could someone explain me how it works internally? This command, executed from an URL, can be the API we need.


This happens in openspending/command/importer.py (the command folder is what the ostool command maps to).

--

Tryggvi Björgvinsson

Technical Lead, OpenSpending

The Open Knowledge Foundation<http://okfn.org>

Empowering through Open Knowledge

http://okfn.org/ | @okfn<http://twitter.com/OKFN> | OKF on Facebook<https://facebook.com/OKFNetwork> | Blog<http://blog.okfn.org/> | Newsletter<http://okfn.org/about/newsletter>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/openspending-dev/attachments/20130812/b98ad6f6/attachment.html>


More information about the openspending-dev mailing list