![]() |
![]()
| ![]() |
![]()
NAMERDFStore::Literal - An RDF Literal Node implementation SYNOPSISuse RDFStore::Literal; my $literal = new RDFStore::Literal('Tim Berners-Lee'); my $literal1 = new RDFStore::Literal('Today is a sunny day, again :)'); print $literal->toString." is "; print "not" unless $literal->equals($literal1); print " equal to ".$literal1->toString."\n"; DESCRIPTIONAn RDF Literal Node implementation using Storable(3). A Literal object can either contain plain (utf8) strings. Such an implementation allows to create really generic RDF statements about Perl data-structures or objects for example. Generally an RDFStore::Literal can be thought like an atomic perl scalar. XML well-formed literal values are supported simply by storing the resulting utf8 bytes into a perl scalar; none methods are being provided tomanage literals as XML (e.g. SAX2 events and stuff like that) METHODS
SEE ALSORDFStore::RDFNode(3) ABOUT RDFhttp://www.w3.org/TR/rdf-primer/ http://www.w3.org/TR/rdf-mt http://www.w3.org/TR/rdf-syntax-grammar/ http://www.w3.org/TR/rdf-schema/ http://www.w3.org/TR/1999/REC-rdf-syntax-19990222 (obsolete) BUGSThe language of the literal as recently specified by the RDF Core WG is not supported and the typed literals are not implemented; the latter is due mainly because perl is an untyped language and perhaps such data-typing abstractions should fit in a higher level application specific API. AUTHORAlberto Reggiori <areggiori@webweaving.org> POD ERRORSHey! The above document had some coding errors, which are explained below:
|