Skip to content
No description or website provided.
C Ruby Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
ext/wongi_turtle
lib
spec
.autotest
.gitignore
.rvmrc
Gemfile
LICENSE
README.md
Rakefile
wongi-rdf.gemspec

README.md

Wongi::RDF

Parses and serialises Turtle documents.

Installation

Add this line to your application's Gemfile:

gem 'wongi-rdf'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wongi-rdf

Building the gem requires the ANTLR 3.4 C runtime. Some Linux distributions, such as Ubuntu and its derivatives, only provide older versions that are not compatible.

Usage

Parsing a document

parser = Wongi::RDF::Parser.new
document1 = parser.parse_file file_name
document2 = parser.parse_string document_string

Creating a document by hand

Serialising

s = Wongi::RDF::Serializer.new document
document_string = s.serialize
s.serialize_to io
```end

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
Something went wrong with that request. Please try again.