logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

libraptor2 - Raptor RDF syntax library 2.0

Api Changes

       See  the  Raptor  API  docs  changes  section at http://librdf.org/raptor/api/raptor-changes.html and the
       upgrading information when converting from libraptor(1) code at http://librdf.org/raptor/UPGRADING.html

Api Reference

       See the HTML API docs that may be installed system wide at /usr/share/gtk-doc/html/raptor2/ or on the web
       at http://librdf.org/raptor/api/

Author

       Dave Beckett - http://www.dajobe.org/

                                                   2010-08-16                                      libraptor2(3)

Conforming To

RDF/XMLSyntax(Revised),  Dave  Beckett  (ed.)   W3C  Recommendation,  http://www.w3.org/TR/rdf-syntax-
       grammar/

       N-Triples,   in   RDFTestCases,   Jan   Grant   and   Dave   Beckett  (eds.)   W3C  Recommendation,
       http://www.w3.org/TR/rdf-testcases/#ntriples

       Turtle-TerseRDFTripleLanguage, Dave Beckett, http://www.dajobe.org/2004/01/turtle/RSS0.91specrevision3, Dan Libby, Netscape, http://my.netscape.com/publish/formats/rss-spec-0.91.htmlRDFSiteSummary(RSS)1.0, http://purl.org/rss/1.0/specAtom1.0syndicationformat, RFC 4287, http://www.ietf.org/rfc/rfc4287.txtGleaningResourceDescriptionsfromDialectsofLanguages(GRDDL),   Dan   Connolly   (ed.),   W3C
       Recommendation, 2007-09-11, http://www.w3.org/TR/2007/REC-grddl-20070911/RDFainXHTML:SyntaxandProcessing, Ben Adida, Mark Birbeck, Shane McCarron, Steven Pemberton (eds.)
        W3C Recommendation, 2008-10-14, http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014/

Description

       The  Raptor  library  provides  a  high-level interface to a set of parsers and serializers that generate
       Resource Description Framework (RDF) triples by parsing syntaxes or serialize the triples into syntaxes.

       The supported parsing syntaxes include RDF/XML, N-Triples, Turtle, TRiG, RSS tag soup (including all  RSS
       and Atoms), GRDDL, RDF/JSON, RDFa and the serializing syntaxes include RDF/XML (3 varieties), N-Quads, N-
       Triples,  Turtle,  RSS 1.0, Atom 1.0, GraphViz DOT and RDF/JSON.  The RDF/XML parser can use either expat
       or libxml XML parsers for providing the SAX event stream.  The  library  functions  are  arranged  in  an
       object-oriented style with constructors, destructors and method calls.  The statements and error messages
       are delivered via callback functions.

       Raptor also contains classes to support the RDF graph triples: a statement object containing term objects
       and support for RDF URI-References for both parsing them and resolving / retrieval of URIs.

       It  some utility classes such as an I/O Stream abstraction for supporting reading and writing to and from
       a variety of locations, AVL Trees, String buffers and Sequences.

       Raptor uses Unicode strings for RDF literals and URIs and preserves them throughout the library.  It uses
       the UTF-8 encoding of Unicode at the API for passing in or returning Unicode  strings.   It  is  intended
       that the preservation of Unicode for URIs supports Internationalized Resource Identifiers (IRIs).

Name

       libraptor2 - Raptor RDF syntax library 2.0

See Also

rapper(1)

Synopsis

#include<raptor2.h>world=raptor_new_world();raptor_parser*p=raptor_new_parser(world,rdfxml);raptor_set_statement_handler(p,NULL,print_triples);raptor_uri*file_uri=raptor_new_uri(world,http://example.org/);raptor_parser_parse_file(p,file_uri,base_uri);raptor_parser_parse_uri(p,uri,NULL);raptor_free_parser(p);raptor_free_uri(file_uri);raptor_free_world(world);ccprog.c-oprog`pkg-configraptor2--cflags``pkg-configraptor2--libs`

See Also