Yes, it is possible to obtain residency in Turkey by purchasing a property in the country. According to Turkish law, foreign nationals who purchase a property in Turkey valued at at least USD 400,000 or its equivalent in Turkish lira may be eligible to apply for a residence permit.

To apply for a residence permit based on property ownership, you must provide several documents, including proof of property ownership, a valid passport, and sufficient funds to support yourself while living in Turkey. You will also need to pay a fee for the residence permit application.

It is important to note that the residence permit based on property ownership is valid for a maximum of one year and must be renewed annually. To restore the license, you must prove that you have continued to own the property and that you have sufficient funds to support yourself while living in Turkey.

Overall, obtaining residency in Turkey through property ownership can be a good option for foreign nationals interested in spending extended periods in the country. 

However, it is essential to carefully consider the requirements and process for obtaining a residence permit based on property ownership and to work with a lawyer or other professional to ensure that you meet all the necessary requirements.