Wikidata writing exercise

Step 1: describe your favourite tree

The tree of my childhood is a chestnut tree.
It was planted when I was 5 years old by a friend of my parents.
It must have had my age when it was planted, as it grew as a daughter of the mother tree in the friends' garden.
The branches are sturdy.
It lived in the center at the back of the garden.
Sometimes it felt that it was keeping an eye on the house and all human beings living in it.
Every year it gave a lot of fruits.
We would gather the fruits and eat them raw or baked in the oven.
The soil around the tree would then be scattered with prickling shells.
As I used to lay down next to tree, from September till Spring this became impossible.
At the age of 45, the tree was cut, in order to make place for more houses and a street.
This was in 2018.
I did not witness the cutting. We found out after it was done.
When I called the company to see if I could reuse the wood for a bookshelf, their answer was clear.
The wood was so useless, that it went straight to a woodchipper.
The wood must have been used to fuel a house or a factory.

Step 2: rewrite your description as House of Dust – this is a way to compact the first description

A chestnut tree 
  in the back of the garden
     near a house
        planted by a friend
           with sturdy wooden branches
              producing a lot of fruits
                died at the age of 45 in 2018
                  buried in a woodchipper machine
                serving the heating of other beings.

Step 3: encode it in Python script – this is a way to open up the compact description to different possibilities (materials, characteristics…)

https://gitlab.constantvzw.org/anais_berck/queerying-wikidata

AN ASH OF MUD
  IN A DESERTED FACTORY
    WITH STURDY BRANCHES
      PLANTED BY MY PARENTS
        DIED IN 2018 AT THE AGE OF 45 BECAUSE OF LUMBERJACK
          BENEFITING PEOPLE SPEAKING MANY LANGUAGES WEARING LITTLE OR NO CLOTHING

Step 4: find relative properties/items in Wikidata for the structure of the Python script

https://www.wikidata.org/wiki/Wikidata:List_of_properties (P-values)

https://www.wikidata.org/wiki/Help:Items (Q-values)

Query all trees (Q10884)
   is an individual of taxon (P10241), chestnut (Q22699)
   made from material (P186), plastic (Q11474)
   location (P276), province of Antwerp (Q1116)
   relative to (P2210), a human (Q5)
   has part (P527), branches (Q2923673)
   date of death (P570), 2018 (Q25291)
   cause of death (P509), lumberjack (Q1124183)  
   place of burial (P119), woodchipper (Q1621575)
   used by (P1535), humans (Q5)

Step 5: use query builder to encode in SPRQL – this might give strange results, it might be more interesting to query line by line

https://query.wikidata.org/querybuilder/