class EasyRdf_Format

Class the represents an RDF file format.

For each format, the name, label, URIs and associated MIME Types are stored. A single parser and serialiser can also be registered to each format.

@package EasyRdf @copyright Copyright (c) 2009-2012 Nicholas J Humfrey @license http://www.opensource.org/licenses/bsd-license.php

Hierarchy

Expanded class hierarchy of EasyRdf_Format

1 string reference to 'EasyRdf_Format'

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php, line 50

View source

Members

Namesort descending Modifiers Type Description Overrides
EasyRdf_Format::$extensions private property
EasyRdf_Format::$formats private static property
EasyRdf_Format::$label private property
EasyRdf_Format::$mimeTypes private property
EasyRdf_Format::$name private property
EasyRdf_Format::$parserClass private property
EasyRdf_Format::$serialiserClass private property
EasyRdf_Format::$uri private property
EasyRdf_Format::formatExists public static function Check if a named graph exists
EasyRdf_Format::getDefaultExtension public function Get the default registered file extension (filename suffix) for a format object
EasyRdf_Format::getDefaultMimeType public function Get the default registered mime type for a format object
EasyRdf_Format::getExtensions public function Get all the registered file extensions (filename suffix) for a format object
EasyRdf_Format::getFormat public static function Get a EasyRdf_Format from a name, uri or mime type
EasyRdf_Format::getFormats public static function Get a list of all the registered formats
EasyRdf_Format::getHttpAcceptHeader public static function Generates an HTTP Accept header string
EasyRdf_Format::getLabel public function Get the label for a format object
EasyRdf_Format::getMimeTypes public function Get all the registered mime types for a format object
EasyRdf_Format::getName public function Get the name of a format object
EasyRdf_Format::getNames public static function Get a list of format names
EasyRdf_Format::getParserClass public function Get the name of the class to use to parse the format
EasyRdf_Format::getSerialiserClass public function Get the name of the class to use to serialise the format
EasyRdf_Format::getUri public function Get the URI for a format object
EasyRdf_Format::guessFormat public static function Attempt to guess the document format from some content.
EasyRdf_Format::newParser public function Create a new parser to parse this format
EasyRdf_Format::newSerialiser public function Create a new serialiser to parse this format
EasyRdf_Format::register public static function Register a new format
EasyRdf_Format::registerParser public static function Class method to register a parser class to a format name
EasyRdf_Format::registerSerialiser public static function Class method to register a serialiser class to a format name
EasyRdf_Format::setExtensions public function Set the file format extensions (filename suffix) for a format object
EasyRdf_Format::setLabel public function Set the label for a format object
EasyRdf_Format::setMimeTypes public function Set the MIME Types for a format object
EasyRdf_Format::setParserClass public function Set the parser to use for a format
EasyRdf_Format::setSerialiserClass public function Set the serialiser to use for a format
EasyRdf_Format::setUri public function Set the URI for a format object
EasyRdf_Format::unregister public static function Remove a format from the registry
EasyRdf_Format::__construct public function This constructor is for internal use only. To create a new format, use the register method.
EasyRdf_Format::__toString public function Magic method to return the name of the format when casted to string