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