Skip to content

jonasp/erlang-raptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Erlang Raptor

Erlang bindings for the Raptor RDF Parser Library http://librdf.org/raptor/

warning

This software is at a very early alpha stage. So far only very few features of the raptor library are implemented. There is only very basic error handling so far.

build

  1. install raptor2
  2. (OS X) if pkg-config raptor2 --libs gives a libcurl.pc error export PKG_CONFIG_PATH with homebrew pkgconfig environment /usr/local/Library/ENV/pkgconfig/10.8
  3. compile library ./rebar compile

usage

start and stop application as usual

application:start(raptor).
application:stop(raptor).

parsing URIs

raptor:parse_uri(Uri, Format).
raptor:parse_uri(Uri) -> raptor:parse_uri(Uri, default)

where Format can be

default      % default (RDF/XML) 
rdfxml       % RDF/XML (default)
ntriples     % N-Triples
turtle       % Turtle Terse RDF Triple Language
trig         % TriG - Turtle with Named Graphs
rss_tag_soup % RSS Tag Soup
grddl        % Gleaning Resource Descriptions from Dialects of Languages
guess        % Pick the parser to use using content type and URI
rdfa         % RDF/A via librdfa
nquads       % N-Quadsd

License

This software is licensed under the Apache License Version 2.0.
See http://www.apache.org/licenses/LICENSE-2.0 or the LICENSE file.

Copyright (C) 2013 Jonas Pollok

About

Erlang bindings for the Raptor RDF Parser Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published