Skip to content

ParserInterface: allow to specify document base URI

Choose a tag to compare

@zozlak zozlak released this 24 Apr 14:35
· 1 commit to master since this release

To properly parse blank nodes the parser has to be aware of the URI of the document being parsed.
So far there was no way to provide this information.
Not the rdfInterface\ParserInterface::parse() and rdfInterface\ParserInterface::parseStream() take optional second parameter string $baseUri allowing to specify the document URI.

See also sweetrdf/quickRdfIo#11