You are here

class RDFxRestWSFormatTurtle in RDF Extensions 7.2

Hierarchy

Expanded class hierarchy of RDFxRestWSFormatTurtle

1 string reference to 'RDFxRestWSFormatTurtle'
_rdfx_serialization_formats in ./rdfx.module
Lists the RDF serializations format which will be integrated with RestWS.

File

./rdfx.restws.formats.inc, line 34

View source
class RDFxRestWSFormatTurtle extends RDFxRestWSBaseFormat {
  public function viewResource($resourceController, $id) {
    $resource = rdfx_get_rdf_model($resourceController
      ->resource(), $id);
    $serializer = ARC2::getSer('Turtle', array(
      'ns' => $resource->ns,
    ));
    return $serializer
      ->getSerializedIndex($resource->index);
  }

}

Members