protected function EasyRdf_Serialiser_Ntriples::serialiseResource in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/Ntriples.php \EasyRdf_Serialiser_Ntriples::serialiseResource()
@ignore
2 calls to EasyRdf_Serialiser_Ntriples::serialiseResource()
- EasyRdf_Serialiser_Ntriples::serialise in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Serialiser/ Ntriples.php - Serialise an EasyRdf_Graph into N-Triples
- EasyRdf_Serialiser_Ntriples::serialiseValue in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Serialiser/ Ntriples.php - Serialise an RDF value into N-Triples
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Serialiser/ Ntriples.php, line 144
Class
- EasyRdf_Serialiser_Ntriples
- Class to serialise an EasyRdf_Graph to N-Triples with no external dependancies.
Code
protected function serialiseResource($res) {
$escaped = $this
->escapeString($res);
if (substr($res, 0, 2) == '_:') {
return $escaped;
}
else {
return "<{$escaped}>";
}
}