wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/includes/Rdf/EntityRdfBuilder.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Wikibase\Repo\Rdf;

use Wikibase\DataModel\Entity\EntityDocument;

/**
 * Interface for an RDF mapping for wikibase entities. It's up to the implementation to decide which
 * aspects of the provided entities it will output to RDF.
 *
 * @license GPL-2.0-or-later
 * @author Daniel Kinzler
 * @author Stas Malyshev
 */
interface EntityRdfBuilder {

    /**
     * Map some aspect of an Entity to the RDF graph.
     *
     * @param EntityDocument $entity the entity to output.
     */
    public function addEntity( EntityDocument $entity );

}