| 1 | |
| 2 | == Perl modules concerning RDF serialization == |
| 3 | |
| 4 | I (yy) tried the following modules. |
| 5 | |
| 6 | * [http://search.cpan.org/~mthurn/RDF-Simple-0.415/ RDF::Simple] |
| 7 | * [http://search.cpan.org/~gwilliams/RDF-Trine-0.117/ RDF::Trine] |
| 8 | * [http://search.cpan.org/~djbeckett/Redland-1.0.5.4/ REF::Redland] |
| 9 | |
| 10 | RDF::Simple is literally "simple", so IMO it is useful only for understanding how serialization works, but not for a practical use. |
| 11 | As the module page says, id doesn't care the node type. |
| 12 | You cannot declare whether a node is a URI or literal. |
| 13 | |
| 14 | RDF::Trine doesn't provide a sufficient document, and I have difficulty in making a code. |
| 15 | |
| 16 | RDF::Redland uses a compilation (i.e., not a pure Perl module), and may have troubles on some plat homes / environments. |
| 17 | In my case the cpan command didn't work because of the "make test" failure. |
| 18 | The reason is that the test script assumes that libraries generated by swig are in the shared library paths. |
| 19 | After taking care of it, no problem occurred. |
| 20 | To make the test script work, the following paths need to be added to LD_LIBRARY_PATH. |
| 21 | {{{ |
| 22 | Redland-1.0.5.4/redland/rasqal/src/.libs |
| 23 | Redland-1.0.5.4/redland/raptor/src/.libs |
| 24 | }}} |