summaryrefslogtreecommitdiffstats
path: root/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php')
-rw-r--r--core/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php b/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php
index 632f932..2fd22da 100644
--- a/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php
+++ b/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php
@@ -5,7 +5,7 @@
*
* LICENSE
*
- * Copyright (c) 2012 Nicholas J Humfrey. All rights reserved.
+ * Copyright (c) 2012-2013 Nicholas J Humfrey. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -31,9 +31,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* @package EasyRdf
- * @copyright Copyright (c) 2009-2012 Nicholas J Humfrey
+ * @copyright Copyright (c) 2009-2013 Nicholas J Humfrey
* @license http://www.opensource.org/licenses/bsd-license.php
- * @version $Id$
*/
/**
@@ -44,7 +43,7 @@
* See http://www.graphviz.org/ for more information.
*
* @package EasyRdf
- * @copyright Copyright (c) 2012 Nicholas J Humfrey
+ * @copyright Copyright (c) 2012-2013 Nicholas J Humfrey
* @license http://www.opensource.org/licenses/bsd-license.php
*/
class EasyRdf_Serialiser_GraphViz extends EasyRdf_Serialiser
@@ -185,7 +184,7 @@ class EasyRdf_Serialiser_GraphViz extends EasyRdf_Serialiser
protected function nodeName($entity)
{
if ($entity instanceof EasyRdf_Resource) {
- if ($entity->isBnode()) {
+ if ($entity->isBNode()) {
return "B".$entity->getUri();
} else {
return "R".$entity->getUri();
@@ -367,11 +366,13 @@ class EasyRdf_Serialiser_GraphViz extends EasyRdf_Serialiser
*
* Supported output format names: dot, gif, png, svg
*
- * @param string $graph An EasyRdf_Graph object.
- * @param string $format The name of the format to convert to.
+ * @param EasyRdf_Graph $graph An EasyRdf_Graph object.
+ * @param string $format The name of the format to convert to.
+ * @param array $options
+ * @throws EasyRdf_Exception
* @return string The RDF in the new desired format.
*/
- public function serialise($graph, $format)
+ public function serialise($graph, $format, array $options = array())
{
parent::checkSerialiseParams($graph, $format);