modules/rdf/parser.zzm

rdf-0.0.3 documentation

NAME

rdf/parser - shared RDF parser trait.

SYNOPSIS

  from rdf/parser import RdfParser;

DESCRIPTION

RdfParser provides the common parser entry points used by the RDF parser classes. Classes compose the trait and implement parse_string.

EXPORTS

Traits

  • RdfParser
    • parse_string(String text, ... options)

      Placeholder parser method. Classes using this trait should override it.

    • parse_file(path, ... options)

      Reads UTF-8 from path and parses it.

    • parse_lines(Array lines, ... options)

      Parses concatenated line chunks.

    • parse_chunks(Array chunks, ... options)

      Parses concatenated string or nested-array chunks.

COPYRIGHT AND LICENCE

rdf/parser is copyright Toby Inkster.

It is free software; you may redistribute it and/or modify it under the terms of either the Artistic License 1.0 or the GNU General Public License version 2.