You are here

protected function EasyRdf_Serialiser::addPrefix in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser.php \EasyRdf_Serialiser::addPrefix()

Keep track of the prefixes used while serialising @ignore

2 calls to EasyRdf_Serialiser::addPrefix()
EasyRdf_Serialiser_RdfXml::rdfxmlResource in vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/RdfXml.php
Protected method to serialise a whole resource and its properties @ignore
EasyRdf_Serialiser_Turtle::serialiseResource in vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/Turtle.php
Given a an EasyRdf_Resource or URI, convert it into a string, suitable to be written to a Turtle document. URIs will be shortened into CURIES where possible.

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser.php, line 57

Class

EasyRdf_Serialiser
Parent class for the EasyRdf serialiser

Code

protected function addPrefix($qname) {
  list($prefix) = explode(':', $qname);
  $this->prefixes[$prefix] = true;
}