Skip Menu |

This queue is for tickets about the App-perlrdf-Command-Query CPAN distribution.

Report information
The Basics
Id: 86825
Status: resolved
Priority: 0/
Queue: App-perlrdf-Command-Query

People
Owner: perl [...] toby.ink
Requestors: kjetilk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.001
Fixed in: (no value)



Subject: perlrdf query iterator problems
Hi! Greetings from sunny Cercedilla and the Semantic Web Summer School! :-) I've done some neat things here with perlrdf, but query against an endpoint seems to fail: $ perlrdf query -e 'SELECT DISTINCT ?vocab WHERE { ?s <http://rdfs.org/ns/void#vocabulary> ?vocab .} ' --endpoint http://data.gov.uk/sparql Can't locate object method "next" via package "RDF::Trine::Model" at /home/kjetil/dev/perlrdf/RDF-Trine/lib/RDF/Trine/Model.pm line 228. The Trine on that path is the latest head on the master branch, I recently synched it with Greg's. Are you trying to pass a model to the iterator somewhere...?
Odd; I get an entirely different error message... Can't call method "is_graph" on an undefined value at /home/tai/.perlbrew/libs/perl-5.18.0@default/lib/perl5/App/perlrdf/Command/Query.pm line 181.
OK, it looks like http://data.gov.uk/sparql always returns HTML (and not with RDFa). http://services.data.gov.uk/reference/sparql is a better endpoint to use. I've made a few minor twidddles to RDF::Query::Client and App::perlrdf::Command::Query and this is now working: $ perlrdf query -e 'SELECT DISTINCT ?vocab WHERE { ?s <http://rdfs.org/ns/void#vocabulary> ?vocab .} ' --endpoint http://services.data.gov.uk/reference/sparql +--------------------------------------------------------+ | vocab | +--------------------------------------------------------+ | <http://rdfs.org/ns/void#> | | <http://reference.data.gov.uk/def/reference/> | | <http://www.w3.org/2004/02/skos/core#> | | <http://purl.org/dc/terms/> | | <http://reference.data.gov.uk/def/public-body/> | | <http://xmlns.com/foaf/0.1/> | | <http://www.w3.org/ns/org#> | | <http://reference.data.gov.uk/def/central-government> | | <http://reference.data.gov.uk/def/parliament/> | | <http://reference.data.gov.uk/def/central-government/> | | <http://reference.data.gov.uk/def/reference/status/> | +--------------------------------------------------------+ I'll get them released later today.
resolved in 0.002