= '0.010';
use Moose;
use Text::CSV_XS;
use Set::Scalar;
use List::MoreUtils qw(each_array);
use JSON;
use File::Slurp;
use English;
#
# Store triples in nested hashrefs with a Set::Scalar instance
ose $fh or die "$!";
}
sub load_json {
my ( $self, $filename ) = @ARG;
my $text = read_file($filename) or die "Cannot read_file: $!";
my $data = from_json( $text, { utf8 => 1 } );
f
s a csv file in utf8 encoding.
$g->load("some/file.csv");
=head2 load_json
Loads a json file into a graph. The json file should be formated as follows:
{
"triples" : [
{ "s": "