[librecat-dev] Catmandu::Importer::RDF : issue when querying a SPARQL endpoint ?

Patrick Hochstenbach Patrick.Hochstenbach at UGent.be
Tue May 9 13:55:32 CEST 2017


There is a bug in using the latest versions of RDF::LDF modules. I’ve created an issue in Catmandu::RDF and will fix this.

https://github.com/LibreCat/Catmandu-RDF/issues/32

Patrick
> On 8 May 2017, at 18:03, François Pichenot <fpichenot at ville-roubaix.fr> wrote:
> 
> Hi,
> 
> I try to retrieve data from BnF SPARQL endpoint using Catmandu, but I get an issue with XML::Parser.
> It also occurs with the command-line example you give in Catmandu::Importer::RDF documentation :
> 
> $ catmandu convert RDF --url http://dbpedia.org/sparql --sparql "SELECT ?film WHERE { ?film dct:subject <http://dbpedia.org/resource/Category:French_films> } LIMIT 10"
> Oops!
> not well-formed (invalid token) at line 1, column 0, byte 0 at /usr/lib/x86_64-linux-gnu/perl5/5.20/XML/Parser.pm line 187.
> 
> The same request works very well with CURL :
> $ curl http://dbpedia.org/sparql/ --data-urlencode query='SELECT ?film WHERE { ?film dct:subject <http://dbpedia.org/resource/Category:French_films> } LIMIT 10'
> 
> Thanks !
> François

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20170509/a6655ffd/attachment.asc>


More information about the librecat-dev mailing list