wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
A
45 mins
Test Coverage
<?php

namespace Wikibase\Repo\Rdf;

use Wikibase\DataModel\Snak\PropertyValueSnak;
use Wikimedia\Purtle\RdfWriter;

/**
 * Interface for RDF mapping for wikibase data values.
 *
 * @license GPL-2.0-or-later
 * @author Daniel Kinzler
 * @author Stas Malyshev
 */
interface ValueSnakRdfBuilder {

    /**
     * Adds specific value
     *
     * @param RdfWriter $writer
     * @param string $propertyValueNamespace Property value relation namespace
     * @param string $propertyValueLName Property value relation name
     * @param string $dataType Property data type
     * @param string $snakNamespace
     * @param PropertyValueSnak $snak
     */
    public function addValue(
        RdfWriter $writer,
        $propertyValueNamespace,
        $propertyValueLName,
        $dataType,
        $snakNamespace,
        PropertyValueSnak $snak
    );

}