You are here

public function RestWSFormatRDF::__construct in RESTful Web Services 7.2

Same name and namespace in other branches
  1. 7 restws.formats.inc \RestWSFormatRDF::__construct()

Overrides RestWSBaseFormat::__construct

File

./restws.formats.inc, line 689
RESTful web services module formats.

Class

RestWSFormatRDF
A simple formatter for RDF. Requires the RDF module for the mapping.

Code

public function __construct($name, $info) {
  parent::__construct($name, $info);
  $this->namespaces = rdf_get_namespaces();
  $this->namespaces['rdf'] = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
}