Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPARQL examples don't work anymore #32

Closed
phochste opened this issue May 9, 2017 · 1 comment
Closed

SPARQL examples don't work anymore #32

phochste opened this issue May 9, 2017 · 1 comment

Comments

@phochste
Copy link
Member

phochste commented May 9, 2017

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

@phochste
Copy link
Member Author

phochste commented May 9, 2017

RDF::Trine keeps a global useragent that can change its state when loading LDF an SPARQL functionality.

An upgrade to RDF::LDF 0.23 will solve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant