'EasyRdf', 'class' => '\Drupal\ldt\Plugins\EasyRdf', ); return $wrappers; } /** * Define data formats accepted by LDT. * * Linked Data comes in different formats. This function returns an array * of supported formats. Some formats may not be compatible with some plugins, * it is up to the implementer to know which, currently. * * Defines hook_ldt_data_formats(). * * @return array * An array of format definitions. Each definition includes: * 'name' - Human readable name. * 'accept' - an array of mime type accept headers to set for requests * 'uri' - a URI for the format definition * 'extensions' - an array of possible file extensiosn * The 'uri' and 'extensions' keys are not used by the default EasyRDF plugin * however it provides its own data here, and the information is provided for * use by other plugins. */ function hook_ldt_data_formats() { $formats = array(); $formats['rdf+xml'] = array( 'name' => 'RDF/XML', 'accept' => 'application/rdf+xml', ); return $formats; }