| 1 |
NAME |
| 2 |
RDF::TriN3 - notation 3 extensions for RDF::Trine |
| 3 |
|
| 4 |
DESCRIPTION |
| 5 |
This module extends RDF::Trine in three ways: |
| 6 |
|
| 7 |
* Adds a Notation 3 parser. |
| 8 |
|
| 9 |
* Adds a Notation 3 serializer. |
| 10 |
|
| 11 |
* Provides a subclass of literals to represent Notation 3 formulae. |
| 12 |
|
| 13 |
In addition, a parser is provided for Notation 3 extended with |
| 14 |
ShorthandRDF notation - <http://esw.w3.org/ShorthandRDF>. |
| 15 |
|
| 16 |
BUGS AND LIMITATIONS |
| 17 |
Implementing N3 logic and the cwm built-ins is considered outside the |
| 18 |
scope of this distribution, though I am interested in doing that as part |
| 19 |
of a separate project. |
| 20 |
|
| 21 |
RDF::TriN3 currently relies entirely on RDF::Trine to provide |
| 22 |
implementations of the concept of graphs, and storage. Thus any graphs |
| 23 |
that can't be represented using RDF::Trine can't be represented in |
| 24 |
RDF::TriN3. RDF::Trine's graph model is a superset of RDF, but a subset |
| 25 |
of Notation 3's model. While this allows literal subjects, and literal |
| 26 |
and blank node predicates, these may not be supported by all storage |
| 27 |
engines; additionally top-level variables (?foo), and top-level @forSome |
| 28 |
and @forAll (i.e. not nested inside a formula) might cause problems. |
| 29 |
|
| 30 |
RDF::Trine::Store::DBI has some issues with literal subjects, and |
| 31 |
literal and blank node predicates, allowing them to be stored, but not |
| 32 |
retrieved. From version 0.128, RDF::Trine::Store::DBI offers a |
| 33 |
"clear_restrictions" method that should resolve these issues. |
| 34 |
RDF::Trine::Store::Memory is fine. Other stores are not tested. |
| 35 |
|
| 36 |
Please report any bugs to <http://rt.cpan.org/>. |
| 37 |
|
| 38 |
SEE ALSO |
| 39 |
RDF::Trine::Node::Formula, RDF::Trine::Parser::Notation3, |
| 40 |
RDF::Trine::Serializer::Notation3. |
| 41 |
|
| 42 |
RDF::Trine::Parser::ShorthandRDF, RDF::Trine::Parser::Pretdsl. |
| 43 |
|
| 44 |
RDF::Trine. |
| 45 |
|
| 46 |
<http://www.perlrdf.org/>. |
| 47 |
|
| 48 |
<http://www.w3.org/DesignIssues/Notation3>. |
| 49 |
|
| 50 |
AUTHOR |
| 51 |
Toby Inkster <[email protected]>. |
| 52 |
|
| 53 |
COPYRIGHT AND LICENCE |
| 54 |
Copyright 2010-2012 Toby Inkster |
| 55 |
|
| 56 |
This library is free software; you can redistribute it and/or modify it |
| 57 |
under the same terms as Perl itself. |
| 58 |
|
| 59 |
DISCLAIMER OF WARRANTIES |
| 60 |
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED |
| 61 |
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF |
| 62 |
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
| 63 |
|