File: README.md

package info (click to toggle)
libatteanx-parser-jsonld-perl 0.001-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 200 kB
  • sloc: perl: 1,456; sh: 32; makefile: 2
file content (73 lines) | stat: -rw-r--r-- 1,676 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# AtteanX::Parser::JSONLD

## JSONLD RDF Parser

## VERSION

This document describes AtteanX::Parser::JSONLD version 0.001.

## SYNOPSIS

    use Attean;
    my $parser = Attean->get_parser('JSONLD')->new();
    $parser->parse_cb_from_io( $fh );

## DESCRIPTION

This module implements a JSON-LD 1.11 RDF parser for [Attean](https://metacpan.org/pod/Attean).

## ROLES

This class consumes the following roles:

* Attean::API::MixedStatementParser
* Attean::API::AbbreviatingParser
* Attean::API::PullParser

## METHODS

`canonical_media_type`

Returns the canonical media type for JSON-LD: `application/ld+json`.

`media_types`

Returns a list of media types that may be parsed with the JSON-LD
parser: `application/ld+json`.

`file_extensions`

Returns a list of file extensions that may be parsed with the
parser.

`parse_iter_from_io( $fh )`

Returns an iterator of Attean::API::Binding objects that result from
parsing the data read from the IO::Handle object `$fh`.

`parse_cb_from_bytes( $data )`

Calls the `$parser->handler` function once for each
Attean::API::Binding object that result from parsing the data read
from the UTF-8 encoded byte string $data.

## BUGS

Please report any bugs or feature requests to through the GitHub web
interface at <https://github.com/kasei/atteanx-parser-jsonld/issues>.

## SEE ALSO

* <irc://irc.perl.org/#perlrdf>
* [Attean](https://metacpan.org/pod/Attean)
* [JSONLD](https://metacpan.org/pod/JSONLD)

## AUTHOR

Gregory Todd Williams <gwilliams@cpan.org>

## COPYRIGHT

Copyright (c) 2020--2020 Gregory Todd Williams. This program is free
software; you can redistribute it and/or modify it under the same terms
as Perl itself.