1libraptor2(3)              Library Functions Manual              libraptor2(3)
2
3
4

NAME

6       libraptor2 - Raptor RDF syntax library 2.0
7

SYNOPSIS

9       #include <raptor2.h>
10
11       world=raptor_new_world();
12       raptor_parser *p=raptor_new_parser(world,rdfxml);
13       raptor_set_statement_handler(p,NULL,print_triples);
14       raptor_uri *file_uri=raptor_new_uri(world,http://example.org/);
15       raptor_parser_parse_file(p,file_uri,base_uri);
16       raptor_parser_parse_uri(p,uri,NULL);
17       raptor_free_parser(p);
18       raptor_free_uri(file_uri);
19       raptor_free_world(world);
20
21       cc prog.c -o prog `pkg-config raptor2 --cflags` `pkg-config raptor2 --libs`
22

DESCRIPTION

24       The  Raptor library provides a high-level interface to a set of parsers
25       and serializers that  generate  Resource  Description  Framework  (RDF)
26       triples by parsing syntaxes or serialize the triples into syntaxes.
27
28       The  supported  parsing  syntaxes  include  RDF/XML, N-Triples, Turtle,
29       TRiG, RSS tag soup (including all RSS and Atoms), GRDDL, RDF/JSON, RDFa
30       and the serializing syntaxes include RDF/XML (3 varieties), N-Quads, N-
31       Triples, Turtle, RSS 1.0, Atom 1.0, GraphViz  DOT  and  RDF/JSON.   The
32       RDF/XML parser can use either expat or libxml XML parsers for providing
33       the SAX event stream.  The library functions are arranged in an object-
34       oriented  style  with  constructors, destructors and method calls.  The
35       statements and error messages are delivered via callback functions.
36
37       Raptor also contains classes to support the RDF graph triples: a state‐
38       ment  object containing term objects and support for RDF URI-References
39       for both parsing them and resolving / retrieval of URIs.
40
41       It some utility classes such as an I/O Stream abstraction for  support‐
42       ing  reading and writing to and from a variety of locations, AVL Trees,
43       String buffers and Sequences.
44
45       Raptor uses Unicode strings for RDF literals  and  URIs  and  preserves
46       them  throughout the library.  It uses the UTF-8 encoding of Unicode at
47       the API for passing in or returning Unicode strings.   It  is  intended
48       that  the  preservation  of Unicode for URIs supports Internationalized
49       Resource Identifiers (IRIs).
50

API REFERENCE

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

API CHANGES

57       See     the     Raptor     API     docs     changes     section      at
58       http://librdf.org/raptor/api/raptor-changes.html
59http://librdf.org/raptor/api/raptor-changes.html⟩  and  the  upgrading
60       information    when    converting    from    libraptor(1)    code    at
61       http://librdf.org/raptor/UPGRADING.html
62http://librdf.org/raptor/UPGRADING.html
63

CONFORMING TO

65       RDF/XML  Syntax  (Revised),  Dave  Beckett  (ed.)   W3C Recommendation,
66       http://www.w3.org/TR/rdf-syntax-grammar/http://www.w3.org/TR/rdf-
67       syntax-grammar/⟩
68
69       N-Triples,  in  RDF  Test Cases, Jan Grant and Dave Beckett (eds.)  W3C
70       Recommendation,            http://www.w3.org/TR/rdf-testcases/#ntriples
71http://www.w3.org/TR/rdf-testcases/#ntriples⟩
72
73       Turtle     -    Terse    RDF    Triple    Language,    Dave    Beckett,
74       http://www.dajobe.org/2004/01/turtle/
75http://www.dajobe.org/2004/01/turtle/
76
77       RSS     0.91     spec     revision     3,    Dan    Libby,    Netscape,
78       http://my.netscape.com/publish/formats/rss-spec-0.91.html
79http://my.netscape.com/publish/formats/rss-spec-0.91.html
80
81       RDF    Site    Summary    (RSS)    1.0,    http://purl.org/rss/1.0/spec
82http://purl.org/rss/1.0/spec
83
84       Atom       1.0       syndication        format,        RFC        4287,
85       http://www.ietf.org/rfc/rfc4287.txt
86http://www.ietf.org/rfc/rfc4287.txt
87
88       Gleaning Resource Descriptions from Dialects of Languages (GRDDL),  Dan
89       Connolly       (ed.),       W3C       Recommendation,       2007-09-11,
90       http://www.w3.org/TR/2007/REC-grddl-20070911/
91http://www.w3.org/TR/2007/REC-grddl-20070911/
92
93       RDFa  in  XHTML:  Syntax and Processing, Ben Adida, Mark Birbeck, Shane
94       McCarron, Steven Pemberton (eds.)
95        W3C  Recommendation,  2008-10-14,  http://www.w3.org/TR/2008/REC-rdfa-
96       syntax-20081014/ ⟨http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014/
97
98

SEE ALSO

100       rapper(1)
101

AUTHOR

103       Dave Beckett - http://www.dajobe.org/http://www.dajobe.org/
104
105
106
107                                  2010-08-16                     libraptor2(3)
Impressum