Class TriXParser

Description

Temporary implementation of a TriX-Parser (Usable only with PHP > V5) Currently, it doesn't support any namespaces and has problems with typed literals.

So this parser only works with TRIX documents where the default namespace is the TRIX namespace.

  • access: public
  • author: Daniel Westphal (http://www.d-westphal.de)
  • version: $Id: TriXParser.html,v 1.10 2006/06/26 12:34:19 tgauss Exp $

Located in /syntax/TriXParser.php (line 17)


	
			
Variable Summary
GraphSet $graphSet
Method Summary
TriXParser TriXParser (mixed &$graphSet)
void parseFile (mixed $pathToFile)
void parseString (mixed $string)
void _element2Resource (mixed $tag, object simpleXMLNode $value)
void _populateGraphSet ( &$xmlModel, object simpleXMLModel $xmlModel)
Variables
GraphSet $graphSet (line 25)

Reference to the graphSet

  • access: private
Methods
Constructor TriXParser (line 34)

Constructor Needs a reference to a graphSet

  • access: public
TriXParser TriXParser (mixed &$graphSet)
parseFile (line 56)

Parse from a file

  • access: public
void parseFile (mixed $pathToFile)
parseString (line 45)

Parse an XML string

  • access: public
void parseString (mixed $string)
_element2Resource (line 108)

return a mathing resource tyoe

  • access: private
void _element2Resource (mixed $tag, object simpleXMLNode $value)
  • object simpleXMLNode $value
_populateGraphSet (line 67)

Populates the graphSet with namedGraphs and triples.

  • access: private
void _populateGraphSet ( &$xmlModel, object simpleXMLModel $xmlModel)
  • object simpleXMLModel $xmlModel
  • &$xmlModel

Documentation generated on Mon, 26 Jun 2006 14:26:26 +0200 by phpDocumentor 1.3.0RC6