[MediaWiki-commits] [Gerrit] mediawiki...WikibaseLexeme[master]: Add docs for ChangeOp serialization of language and lexical ...

2017-03-06 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/340927 )

Change subject: Add docs for ChangeOp serialization of language and lexical 
category
..


Add docs for ChangeOp serialization of language and lexical category

Bug: T155703
Change-Id: I1ac2681bd083052cc2470fb3ce1ea4f5164dc4ba
---
M docs/change-op-serialization.wiki
1 file changed, 21 insertions(+), 2 deletions(-)

Approvals:
  WMDE-leszek: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/docs/change-op-serialization.wiki 
b/docs/change-op-serialization.wiki
index 22e3302..5270ec3 100644
--- a/docs/change-op-serialization.wiki
+++ b/docs/change-op-serialization.wiki
@@ -6,7 +6,17 @@
 
 === Language ===
 
-TODO
+* A language is defined by adding a "language" key to the change request JSON 
array. The value should be a string containing the ID of an existing item. In 
order to remove it, you can set it to empty string or null. That item should be 
a about a language (for example French or Chinese), but we don't enforce that, 
and constraint reports should take care of such violations.
+
+Example of a change request setting language to "Q666" can be seen below (only 
relevant parts of the request included in the example).
+
+
+{
+   ...
+   "language": "Q666"
+   ...
+}
+
 
 === Lemmas ===
 
@@ -31,5 +41,14 @@
 
 
 === Lexical category ===
+* The lexical category is defined by adding a "lexicalCategory" key to the 
change request JSON array. The value should be a string containing the ID of an 
existing item. In order to remove it, you can set it to empty string or null. 
That item should be a about a lexical category (for example verb or noun), but 
we don't enforce that, and constraint reports should take care of such 
violations.
 
-TODO
\ No newline at end of file
+Example of a change request setting lexical category to "Q42" can be seen 
below (only relevant parts of the request included in the example).
+
+
+{
+   ...
+   "lexicalCategory": "Q42"
+   ...
+}
+

-- 
To view, visit https://gerrit.wikimedia.org/r/340927
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1ac2681bd083052cc2470fb3ce1ea4f5164dc4ba
Gerrit-PatchSet: 6
Gerrit-Project: mediawiki/extensions/WikibaseLexeme
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup 
Gerrit-Reviewer: Daniel Kinzler 
Gerrit-Reviewer: Ladsgroup 
Gerrit-Reviewer: Thiemo Mättig (WMDE) 
Gerrit-Reviewer: WMDE-leszek 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...WikibaseLexeme[master]: Add docs for ChangeOp serialization of language and lexical ...

2017-03-02 Thread Ladsgroup (Code Review)
Ladsgroup has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/340927 )

Change subject: Add docs for ChangeOp serialization of language and lexical 
category
..

Add docs for ChangeOp serialization of language and lexical category

Bug: T155703
Change-Id: I1ac2681bd083052cc2470fb3ce1ea4f5164dc4ba
---
M docs/change-op-serialization.wiki
1 file changed, 21 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseLexeme 
refs/changes/27/340927/1

diff --git a/docs/change-op-serialization.wiki 
b/docs/change-op-serialization.wiki
index 22e3302..60ed2f3 100644
--- a/docs/change-op-serialization.wiki
+++ b/docs/change-op-serialization.wiki
@@ -6,7 +6,17 @@
 
 === Language ===
 
-TODO
+* Language are defined by adding a "language" key to change request JSON 
array. Value should be a string containing an Q-id of an existing item. That 
item should be a about a language (for example French or Chinese) but we don't 
enforce that and constraint reports should take care of such violations:
+
+Example of a change request setting language to "Q666" can be seen below (only 
relevant parts of the request included in the example).
+
+
+{
+   ...
+   "language": "Q666"
+   ...
+}
+
 
 === Lemmas ===
 
@@ -31,5 +41,14 @@
 
 
 === Lexical category ===
+* Lexical categories are defined by adding a "lexical_category" key to change 
request JSON array. Value should be a string containing an Q-id of an existing 
item. That item should be a about a lexical category (for example verb or noun) 
but we don't enforce that and constraint reports should take care of such 
violations:
 
-TODO
\ No newline at end of file
+Example of a change request setting lexical category to "Q42" can be seen 
below (only relevant parts of the request included in the example).
+
+
+{
+   ...
+   "lexical_category": "Q42"
+   ...
+}
+

-- 
To view, visit https://gerrit.wikimedia.org/r/340927
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1ac2681bd083052cc2470fb3ce1ea4f5164dc4ba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseLexeme
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits