An RDF paser.
This class reads RDF data from files or URIs and generates models out of it. All valid RDF XML syntaxes defined by the W3C in RDF/XML Syntax Specification (Revised)
- W3C Working Draft 10 October 2003
(http://www.w3.org/TR/2003/WD-rdf-syntax-grammar-20031010/) are supported. The parser is based on the PHP version of repat (http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_rdf_parser.html) by Luis Argerich (lrargerich@yahoo.com).
History:
- 12-06-2004 : improved namespace handling added (tobias.gauss@web.de)
- 08-13-2004 : Bug in rdf:resource="" fixed
- 08-10-2004 : function for converting strings to its unicode NFC form added. Benjamin Nowack <bnowack@appmosphere.com>
- 06-01-2004 : Bug in xml:lang fixed, some bugs in the handling of collections fixed
- 05-03-2004 : generateModel(): added optional parameter $rdfBaseURI to set the rdf base URI manually for strings when there''s
no xml:base stated <mail@d-westphal.de>.
- 11-18-2003 : Made compliant with the latest RDF Specification (10. October 2003) <radol@gmx.de>.
Support for several aspects of the RDF Specification
was added or fixed, among others:
bugs in handling of xml:base and resolving relative URIs fixed,
support for parseType="Literal" (XMLLiterals) added,
support for parseType="Collection" added,
handling of xml:lang improved,
handling of containers improved,
handling of empty property elements improved,
handling of RDF vocabulary improved,
some cases of reification fixed,
Several methods have been changed, unused variables and
parameters removed (see CVS for details).
new private methods: _is_forbidden_rdf_property_attribute(),
_is_forbidden_rdf_property_element ($local_name),
_is_rdf_node_element(),
_is_forbidded_node_element(),
_report_error(),
_handle_collection_element(),
_handle_xml_start_element(),
_handle_xml_end_element(),
_join_name_and_declare_prefix(),
_end_collection(),
_start_ns_declaration_handler(),
removed private methods: _delete_elements(),
_end_empty_resource_property(),
rdf_resolve_uri()
BUGS WHICH HAVE NOT BEED FIXED:
- correct handling of non US-ASCII characters
- 07-27-2003 : Functions addapted to the new class tree (MemModel extends Model)
- 04-23-2003 : Bug concerning bnode recognition fixed.
- 04-03-2003 : Bug concerning bnode identifier generation fixed.
- 01-10-2003 : Support for rdf:datatype and rdf:nodeID added.
- 01-05-2003 : Support for rdf:seeAlso added.
- 11-07-2002 : Possibility to pass RDF code directly to the method generateModel() added.
- 10-25-2002 : Bug concerning 1 character long literals fixed.
- 09-24-2002 : Recognition of blank nodes improved.
- 09-10-2002 : First version of this class.
Located in /syntax/RdfParser.php (line 79)
Object
|
--RdfParser