Parser
abstract class Parser
Parent class for the EasyRdf parsers
Properties
protected Graph | $graph | ||
protected | $format | The format of the document currently being parsed | |
protected | $baseUri | The base URI for the document currently being parsed | |
protected | $tripleCount |
Methods
remapBnode($name)
Create a new, unique bnode identifier from a source identifier.
resetBnodeMap()
Delete the bnode mapping - to be called at the start of a new parse
checkParseParams($graph, $data, $format, $baseUri)
Check, cleanup parameters and prepare for parsing
parse($graph, $data, $format, $baseUri)
Sub-classes must follow this protocol
addTriple($resource, $property, $value)
Add a triple to the current graph, and keep count of the number of triples
Details
at line 70
protected
remapBnode($name)
Create a new, unique bnode identifier from a source identifier.
If the source identifier has previously been seen, the same new bnode identifier is returned.
at line 82
protected
resetBnodeMap()
Delete the bnode mapping - to be called at the start of a new parse
at line 91
protected
checkParseParams($graph, $data, $format, $baseUri)
Check, cleanup parameters and prepare for parsing
at line 137
parse($graph, $data, $format, $baseUri)
Sub-classes must follow this protocol
at line 148
protected
addTriple($resource, $property, $value)
Add a triple to the current graph, and keep count of the number of triples