onical_media_type >>
Returns the canonical media type for SPARQL XML: application/sparql-results+json.
=cut
sub canonical_media_type { return "application/rdf+xml" }
=item C<< media_types >>
Ret
s a list of media types that may be parsed with the SPARQL XML parser:
application/sparql-results+json.
=cut
sub media_types { return [qw(application/rdf+xml application/octet-stream)]; }
=item C
$results;
} elsif ($file =~ /[.](srj|json)/) {
my $model = memory_model();
open(my $fh, '<', $file) or die $!;
my $parser = Attean->get_parser('SPARQLJSON')->new();
my $results = $parser->pa
LJSON - SPARQL Results JSON Serializer
=head1 VERSION
This document describes AtteanX::Serializer::SPARQLJSON version 0.035
=head1 SYNOPSIS
use Attean;
my $s = Attean->get_serializer('SPARQLJSON
AtteanX::Serializer::SPARQLJSON 0.035 {
use Moo;
use Types::Standard qw(Str);
use Encode qw(encode);
use Scalar::Util qw(blessed);
use Attean::ListIterator;
use JSON;
use namespace::clean;
sults+json');
=item C<< media_types >>
Returns a list of media types that identify the format produced by this serializer.
=cut
sub media_types {
return [qw(application/sparql-results+json)];
tes
bind
cast
bindings
construct
csv-tsv-res
exists
functions
grouping
json-res
negation
project-expression
property-path
subquery
));
push(@files, qw(
a
::SPARQLJSON - SPARQL JSON Parser
=head1 VERSION
This document describes AtteanX::Parser::SPARQLJSON version 0.035
=head1 SYNOPSIS
use Attean;
my $parser = Attean->get_parser('SPARQLJSON')->new(
ackage AtteanX::Parser::SPARQLJSON 0.035 {
use Attean;
use Moo;
use JSON;
use Encode qw(decode);
sub canonical_media_type { return "application/sparql-results+json" }
sub media_types {
retu
rn [qw(application/sparql-results+json)];
}
sub file_extensions { return [qw(srj)] }
with 'Attean::API::ResultOrTermParser';
with 'Attean::API::Parser';
with 'Attean::API::AtOnceParser';
=ite