Le jeudi 11 décembre 2014, 11:30:04 Sergio Fernández a écrit :
> Hi,
> 
> On 11/12/14 10:40, Encolpe DEGOUTE wrote:
> > These days we are migrating our LOM metadata to MLR to store them in
> > marmotta 3.2.0 (the last war file available via the debian repository).
> 
> 3.3.0 release is being vote currently. If it passes it, you would have a
> better version to use, also as .deb. Although that part of the system
> does not come with significant improvements, I'd recommend you to
> upgrade as soon as it gets out.

Perfect, I will. :)

> > To test our conversion process we try to import data in turtle via the
> > REST
> > import interface.
> > 
> > A file that works via the HTML interface raises an RDF error in the first
> > case and seem works in the second case:
> > - https://sources.colpi.org/_admin/gists/4
> > - https://sources.colpi.org/_admin/gists/5
> > 
> > The source file:
> > https://sources.colpi.org/_admin/gists/6
> 
> The Turtle file looks syntactically correct, that's fine.
> 
> > Have you any clue to explain this difference in the two process ?
> 
> Well, as far as I see both request use the same rest web service. The
> difference is that the first one sends the file from its path, while the
> second one tries to send the file attached to the request, which I think
> is not supported (files' data must be send in the payload).
> 
>  From my experience with requests in Python (for instance in ldpy [1]),
> I always used  the parameter 'data' to send the payload [2] using the
> following construction:
> 
>    requests.post(url, data=open(path,'rb'), headers=headers)

Fine, that was the point. The import is damn fast for all our old metadata 
database.

> 
> You could find more details about the different method available to
> import data in the wiki [3].
> 
> BTW, if there is a need for our community, we could add to our roadmap
> the addition of a Python version to our Client Library [4].

Well, I'm not sure that a Python client will fit to all projets. As marmotta 
can be requested in REST, we need code examples. The ldpy project can help on 
this way. We can also propose a project for the GSoC 2015.

Thanks for your reactivity.

Is there some Marmotta workshop or tutorial scheduled in 2015 like it was in 
2014?

Best regards.
-- 
Encolpe Degoute
http://encolpe.wordpress.com
http://encolpe.degoute.free.fr
Logiciels libres, hockey sur glace et autres activités cérébrales

Reply via email to