Skip to content

Commit

Permalink
0.6 release
Browse files Browse the repository at this point in the history
  • Loading branch information
addshore committed Dec 11, 2015
1 parent c94ba0a commit 5508331
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Use one of the below methods:

{
"require": {
"addwiki/wikibase-api": "~0.2.0"
"addwiki/wikibase-api": "~0.6.0"
}
}

Expand Down Expand Up @@ -63,12 +63,12 @@ $entityRevision = $getter->getFromId( 'Q87' );
$entityRevision->getContent()->getData()->setDescription( 'en', 'I am A description' );
$saver->save( $entityRevision );

// Create a new string claim on item Q777 if a claim for the property doesn't already exist
// Create a new string statement on item Q777 if a statement for the property doesn't already exist
$revision = $services->newRevisionGetter()->getFromId( 'Q777' );
$item = $revision->getContent()->getData();
$claims = new Claims( $item->getClaims() );
if( $claims->getClaimsForProperty( PropertyId::newFromNumber( 1320 ) )->isEmpty() ) {
$services->newClaimCreator()->create(
$statementList = $item->getStatements();
if( $statementList->getByPropertyId( PropertyId::newFromNumber( 1320 ) )->isEmpty() ) {
$services->newStatementCreator()->create(
new PropertyValueSnak(
PropertyId::newFromNumber( 1320 ),
new StringValue( 'New String Value' )
Expand Down
6 changes: 2 additions & 4 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
These are the release notes for the [wikibase-api](README.md).

## Version 0.6
## Version 0.6 (2015-12-11)

* Requires "wikibase/data-model-services": "~3.0"
* Requires "wikibase/data-model-serialization": "~2.0"
* Requires "wikibase/data-model": "~4.2"
* All deprecated Claim class and method aliases have been removed

## Version 0.5.1

* RevisionSaver now always sets the 'clear' param. Meaning elements can be removed from an entity.

## Version 0.5 (2015-06-29)
Expand Down

0 comments on commit 5508331

Please sign in to comment.