summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/src/Exporter/Element.php
blob: 9443f5c586db6306b4a6d6132404a4fea26d7eb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php

namespace SMW\Exporter;

/**
 * @license GNU GPL v2+
 * @since 2.2
 *
 * @author mwjames
 */
interface Element {

	/**
	 * A single resource (individual) for export, as defined by a URI.
	 */
	const TYPE_RESOURCE = 0;

	/**
	 * A single resource (individual) for export, defined by a URI for which there
	 * also is a namespace abbreviation.
	 */
	const TYPE_NSRESOURCE = 1;

	/**
	 * A single datatype literal for export. Defined by a literal value and a
	 * datatype URI.
	 */
	const TYPE_LITERAL = 2;

	/**
	 * A dataItem an export element is associated with
	 *
	 * @since 2.2
	 *
	 * @return DataItem|null
	 */
	public function getDataItem();

	/**
	 * @since 2.2
	 *
	 * @return string
	 */
	public function getHash();

}