|
4 | 4 | [Data Model](https://meta.wikimedia.org/wiki/Wikidata/Data_model)
|
5 | 5 | at the heart of the [Wikibase software](http://wikiba.se/).
|
6 | 6 |
|
| 7 | + |
| 8 | +https://commons.wikimedia.org/wiki/File:Wikibase_JavaScript_Data_Model_1.0.svg |
| 9 | + |
7 | 10 | ## Release notes
|
8 | 11 |
|
9 |
| -### 0.4 (dev) |
| 12 | +### 1.0 (dev) |
10 | 13 |
|
| 14 | +#### Breaking changes |
11 | 15 | * Removed wikibase.datamodel.Reference.setSnaks(). Generate new Reference objects when interacting with the API to reflect hash changes performed in the back-end.
|
12 | 16 | * Removed wikibase.datamodel.Entity.equals().
|
13 | 17 | * Removed wikibase.datamodel.Reference.setSnaks().
|
14 | 18 | * wikibase.datamodel.Reference constructor does not accept Snak object(s) any more.
|
| 19 | +* An entity cannot be constructed by passing internal object representation to Entity constructor anymore; Use entity specific constructors instead. |
| 20 | +* Removed useless Entity.isNew(), Entity.newEmpty(). |
| 21 | +* Removed Entity.getLabel(), Entity.getLabels(), Entity.getDescription(), Entity.getDescription(), Entity.getAliases(), Entity.getAllAliases(); Acquire data via Entity.getFingerprint() instead. |
| 22 | +* Removed Entity.getClaims(); Acquire claims/statements via Entity specific implementation. |
| 23 | +* Item.getSiteLinks() returns a SiteLinkSet object instead of an array of SiteLink objects. |
| 24 | +* Renamed Property.getDataType() to Property.getDataTypeId(). |
| 25 | +* Removed all toJSON(), newFromJSON(), toMap() and newFromMap() functions; Use serializers and unserializers of wikibase.serialization instead. |
| 26 | +* Statement does not accept a plain array of references anymore; Supply a ReferenceList instead. |
| 27 | +* Remove Claim.TYPE and Statement.TYPE attributes. |
| 28 | +* Instead of inheriting from Claim, Statement now features a Claim instance that needs to be passed to the Statement constructor. |
| 29 | +* Reference constructor does not accept a plain list of Snak objects anymore; Supply a proper SnakList object instead. |
| 30 | +* SnakList constructor only accepts arrays of Snak objects. |
| 31 | + |
| 32 | +#### Enhancements |
| 33 | +* Added ClaimGroup. |
| 34 | +* Added ClaimGroupSet. |
| 35 | +* Added ClaimList. |
| 36 | +* Added Fingerprint. |
| 37 | +* Added Group. |
| 38 | +* Added GroupableCollection. |
| 39 | +* Added List. |
| 40 | +* Added Map. |
| 41 | +* Added MultiTerm. |
| 42 | +* Added MultiTermMap. |
| 43 | +* Added ReferenceList. |
| 44 | +* Added SiteLinkSet. |
| 45 | +* Added StatementGroup. |
| 46 | +* Added StatementGroupSet. |
| 47 | +* Added StatementList. |
| 48 | +* Added Term. |
| 49 | +* Added TermMap. |
| 50 | +* Added Set. |
| 51 | +* Added individual constructors for Item and Property. |
| 52 | +* Added Entity.getFingerprint(), Entity.setFingerprint(). |
| 53 | +* Added SiteLink and Statement specific functionality to Item. |
| 54 | +* Added Statement specific functionality to Property. |
| 55 | +* Added isEmpty() and equals() functions to Item and Property. |
15 | 56 |
|
16 | 57 | ### 0.3.2 (2014-08-19)
|
17 | 58 |
|
|
0 commit comments