added feat-create api call example to create and edit wikidata
Description
introduced a new Markdown file, api-call-examples.md, containing practical examples of using the Wikibase REST API to create and edit author and work items in Wikidata. These examples are intended to serve as a reference for implementing API calls in the Paulina project using Python’s requests module.
Details of Changes
Create an Author Item
Demonstrates how to create a new author item with:
-
Label and description
-
Statements:
-
instance of (P31): human being (Q5)
-
sex or gender (P21): female (Q6581072)
-
occupation (P106): writer (Q36180)
Create a Work Item
Demonstrates how to create a new work item with:
-
Label and description
-
Statements:
-
instance of (P31): literary work (Q7725634)
-
form of creative work (P7937): novel (Q8261)
Add a Statement to an Existing Author Item
-
Example API call to add the statement:
-
country of citizenship (P27): Uruguay (Q77)
Modify an Existing Statement
-
Example API call to update the statement:
-
Change country of citizenship (P27): Uruguay (Q77) to country of citizenship (P27): Bolivia (Q750)
Documentation References
Wikidata REST API Overview
Wikibase REST API Documentation
Related issue: T405635