1AtteanX::Parser::RDFXMLU(s3e)r Contributed Perl DocumentaAttitoenanX::Parser::RDFXML(3)
2
3
4

NAME

6       AtteanX::Parser::RDFXML - RDF/XML Parser
7

VERSION

9       This document describes AtteanX::Parser::RDFXML version 0.033
10

SYNOPSIS

12        use Attean;
13        my $parser = Attean->get_parser('RDFXML')->new(base => $base_iri);
14
15        use AtteanX::Parser::Turtle;
16        my $parser     = AtteanX::Parser::Turtle->new( handler => sub {...}, base => $base_iri );
17
18        # Parse data from a file-handle and handle triples in the 'handler' callback
19        $parser->parse_cb_from_io( $fh );
20
21        # Parse the given byte-string, and return an iterator of triples
22        my $iter = $parser->parse_iter_from_bytes('<rdf:RDF>...</rdf:RDF>');
23        while (my $triple = $iter->next) {
24          print $triple->as_string;
25        }
26

DESCRIPTION

28       This module implements a parser for the RDF/XML format.
29

ROLES

31       This class consumes Attean::API::Parser, Attean::API::PushParser,
32       <Attean::API::AbbreviatingParser>, and <Attean::API::TripleParser>.
33

ATTRIBUTES

35       "canonical_media_type"
36       "media_types"
37       "file_extensions"
38       "bnode_prefix"
39           A string prefix for identifiers generated for blank nodes.
40

METHODS

42       "canonical_media_type"
43           Returns the canonical media type for SPARQL XML:
44           application/sparql-results+json.
45
46       "media_types"
47           Returns a list of media types that may be parsed with the SPARQL
48           XML parser: application/sparql-results+json.
49
50       "file_extensions"
51           Returns a list of file extensions that may be parsed with the
52           parser.
53
54       parse_cb_from_io( $fh )
55           Calls the "$parser->handler" function once for each
56           Attean::API::Binding object that result from parsing the data read
57           from the IO::Handle object $fh.
58
59       parse_cb_from_bytes( $data )
60           Calls the "$parser->handler" function once for each
61           Attean::API::Binding object that result from parsing the data read
62           from the UTF-8 encoded byte string $data.
63

BUGS

65       Please report any bugs or feature requests to through the GitHub web
66       interface at <https://github.com/kasei/perlrdf/issues>.
67

AUTHOR

69       Gregory Todd Williams  "<gwilliams@cpan.org>"
70
72       Copyright (c) 2014--2022 Gregory Todd Williams. This program is free
73       software; you can redistribute it and/or modify it under the same terms
74       as Perl itself.
75
76
77
78perl v5.36.0                      2023-01-19        AtteanX::Parser::RDFXML(3)
Impressum