class RDFxRestWSFormatRDFJSON in RDF Extensions 7.2
Hierarchy
- class \RDFxRestWSBaseFormat extends \RestWSBaseFormat
- class \RDFxRestWSFormatRDFJSON
Expanded class hierarchy of RDFxRestWSFormatRDFJSON
1 string reference to 'RDFxRestWSFormatRDFJSON'
- _rdfx_serialization_formats in ./
rdfx.module - Lists the RDF serializations format which will be integrated with RestWS.
File
- ./
rdfx.restws.formats.inc, line 50
View source
class RDFxRestWSFormatRDFJSON extends RDFxRestWSBaseFormat {
public function viewResource($resourceController, $id) {
$resource = rdfx_get_rdf_model($resourceController
->resource(), $id);
$serializer = ARC2::getSer('RDFJSON', 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 | ||
RDFxRestWSFormatRDFJSON:: |
public | function |