Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 034884da47
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (45 sloc) 1.457 kb
<?php
/**
* @copyright CONTENT CONTROL GmbH, http://www.contentcontrol-berlin.de
* @author David Buchmann <david@liip.ch>
* @license Dual licensed under the MIT (MIT-LICENSE.txt) and LGPL (LGPL-LICENSE.txt) licenses.
* @package Midgard.CreatePHP
*/
namespace Midgard\CreatePHP\Metadata;
use Midgard\CreatePHP\RdfMapperInterface;
/**
* Rdf information driver for createphp
*
* @package Midgard.CreatePHP
*/
interface RdfDriverInterface
{
const DEFAULT_VOCABULARY_URI = 'http://openpsa2.org/createphp/';
const DEFAULT_VOCABULARY_PREFIX = 'createphp';
/**
* Return the type for the specified name
*
* @param string $name
* @param RdfMapperInterface $mapper
* @param RdfTypeFactory $typeFactory used to pass into collections
*
* @return \Midgard\CreatePHP\Type\TypeInterface the type if found
*
* @throws \Midgard\CreatePHP\Metadata\TypeNotFoundException
*/
public function loadType($name, RdfMapperInterface $mapper, RdfTypeFactory $typeFactory);
/**
* Get the name of an object
*
* @param object $object
*
* @return string the canonical name of this object
*/
public function objectToName($object, RdfMapperInterface $mapper);
/**
* Gets a map of rdf types to names with all types known to this driver.
*
* @return array of RDF type => name of all types known to this driver.
*/
public function getAllNames();
}
Jump to Line
Something went wrong with that request. Please try again.