my $resolver = Dallycot::Resolver->new( cache => CHI->new(...) );
my $promise = $resolver->get($uri);
The resolver will fetch the linked data at the provided URL and return a promise that will be fulfilled with the parsed/extracted RDF as a simple graph. Different backends will parse data from different sources.
In order of preference: - JSON-LD - RDF/XML - RDFa
To install Dallycot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dallycot
CPAN shell
perl -MCPAN -e shell install Dallycot
For more information on module installation, please visit the detailed CPAN module installation guide.