kjetilk / RDF-Generator-Void

Void generator in Perl
1 stars 1 forks source link

URIs aren't classed as such #3

Open kjetilk opened 10 years ago

kjetilk commented 10 years ago

I had this:

$ perlrdf void -Q fyor.db http://localhost:5000/
A new member value for _vocabularies does not pass its type constraint because: Validation failed for 'URI' with value "http://vocab.ddialliance.org/discovery#" at native delegation method RDF::Generator::Void::add_vocabularies (push) of attribute _vocabularies (defined at /home/kjetil/dev/RDF-Generator-Void/lib/RDF/Generator/Void.pm line 128) line 6
        RDF::Generator::Void::add_vocabularies('RDF::Generator::Void=HASH(0x44a2210)', 'http://vocab.ddialliance.org/discovery#', 'http://www.w3.org/2003/01/geo/wgs84_pos#', 'http://example.org/hypermedia#', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#') called at /home/kjetil/dev/RDF-Generator-Void/lib/RDF/Generator/Void.pm line 391
        RDF::Generator::Void::_generate_most_common_vocabs('RDF::Generator::Void=HASH(0x44a2210)', 'RDF::Generator::Void::Stats=HASH(0x4e6b810)') called at /home/kjetil/dev/RDF-Generator-Void/lib/RDF/Generator/Void.pm line 314
        RDF::Generator::Void::generate('RDF::Generator::Void=HASH(0x44a2210)') called at /home/kjetil/dev/RDF-Generator-Void/lib/App/perlrdf/Command/Void.pm line 128
        App::perlrdf::Command::Void::execute('App::perlrdf::Command::Void=HASH(0x44a2558)', 'Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x45aa358)', 'ARRAY(0xa203e8)') called at /usr/share/perl5/App/Cmd.pm line 243
        App::Cmd::execute_command('App::perlrdf=HASH(0x73c350)', 'App::perlrdf::Command::Void=HASH(0x44a2558)', 'Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x45aa358)', 'http://localhost:5000/') called at /usr/share/perl5/App/Cmd.pm line 171
        App::Cmd::run('App::perlrdf') called at /usr/bin/perlrdf line 4

Seems like a bug, so I just paste it so that it isn't forgotten.

kjetilk commented 8 years ago

Once #5 is done, we should probably look at Types::URI.