Skip to content

bduggan/p6-rdf-turtle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RDF::Turtle

Build Status

Description

This is a parser for the Terse RDF Triple Language.

See https://www.w3.org/TeamSubmission/turtle/.

Sample usage of RDF::Turtle:

my $parsed = parse-turtle('file.ttl'.IO.slurp);
my $triples = $parsed.made;
for @$triples -> ($subject, $predicate, $object) {
    say "$subject $predicate $object .";
}

Also included is a sample command line parser, eg/parse.p6.

Sample usage:

Parse a TTL file:

./eg/parse.p6 input.ttl

Convert to N-triples format:

./eg/parse.p6 input.ttl --triples

The spec tests are included in t/tests. As of this writing, all of the good tests are parsed, and some of the correct outputs are generated.

About

RDF Turtle parser

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Other 100.0%