class RDFxRestWSFormatTurtle in RDF Extensions 7.2
Hierarchy
- class \RDFxRestWSBaseFormat extends \RestWSBaseFormat
- class \RDFxRestWSFormatTurtle
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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RDFxRestWSBaseFormat:: |
public | function | Read only support. | |
RDFxRestWSBaseFormat:: |
public | function | ||
RDFxRestWSBaseFormat:: |
public | function | ||
RDFxRestWSFormatTurtle:: |
public | function |