Wikibase/Suite/tr

Giriş
Bir Wikibase kurulumu genellikle aşağıdaki unsurlardan oluşur:


 * Bir RDBMS (MariaDB/MySQL veya SQLite) [gerekli]
 * MediaWiki [gerekli]
 * Wikibase uzantısı [gerekli]
 * Diğer ilgili uzantılar [isteğe bağlı]
 * Vikiveri sorgulama hizmeti (WDQS) [isteğe bağlı]
 * WDQS proxy'si
 * WDQS ön ucu
 * QuickStatements [isteğe bağlı]
 * Elasticsearch [isteğe bağlı]

Docker kurulumu tüm bu bileşenleri içerir ve tek bir  komutuyla başlatılabilir. Bu kurulum, birçok Wikibase kullanıcısının, özellikle de yeni başlayanların ihtiyaçlarını karşılar.

Ancak, Docker'ı çalıştırmak istemeyenler için (ilave yönetim yükü, üretimdeki ölçekleme sorunları veya bileşenleri daha iyi anlama arzusu nedeniyle), her bir bileşeni elle nasıl kuracağınız aşağıda açıklanmıştır.

Ağ yapılandırması
Ağ açıklamasına ve şemasına bakın: https://www.mediawiki.org/wiki/Wikibase/Maintaining#Architecture_overview

Dalmadan önce
Wikibase teknik belge sitesinde okunacak ve yararlanılacak çok sayıda teknik belge var.

Bu süreçte başarılı bir şekilde gezinmek için muhtemelen şunlara sahip olmalısınız:


 * Linux ve web sunucusu yazılımlarına aşinalık
 * Yazılım yükleme izniniz olan bir veya daha fazla sunucu

Notlar

 * MediaWiki, bu belgede özetlenen bir veritabanı yapısı oluşturur: MediaWiki veritabanı düzeni
 * Wikibase'in veritabanı şeması burada açıklanmıştır: Wikibase veritabanı şeması

Talimatlar
Bir sonraki adımda bağlanan MediaWiki kurulumu, hâlihazırda oluşturulmuş bir veritabanı ve kullanıcı ile çalışan bir RDBMS'ye dayanır.

MariaDB'yi kullanmanızı öneririz ve tam bir kurulum kılavuzu bu belgenin kapsamı dışında olsa da, bu mükemmel belge koleksiyonu ve bu eğitimi ile başlayın.


 * Veritabanı oluşturun
 * Kullanıcı hesap yönetimi

Notlar

 * Note that while the vanilla install of MediaWiki (correctly) notes PostgreSQL as a working option, Wikibase does not work with PostgreSQL.
 * For this install of MediaWiki, we recommend using nginx with php-fpm.
 * This configuration assumes you have php-fpm running on the same host; to use a network port use.
 * You will need the following PHP extensions (install doc):

Talimatlar
Working MediaWiki nginx config

Notlar
Install  and   for Composer to work correctly.

The Wikibase data model is described in these documents:



Optional sidebar
If you'd like to add some Wikibase-related links to your main page sidebar, you can add these configuration stanzas to your LocalSettings.php.

Uzantılar
There are many extensions often used with Wikibase. Only some require special install instructions for a Wikibase context; the list below includes information about all extensions included in our Docker images.

OAuth
Wikibase needs the OAuth extension for the Wikidata query service, as you'll see below.

Kurulum
The OAuth install instructions are comprehensive. Note that you'll benefit from a working understanding of to finish this install.

Diğer uzantılar
These extensions can be installed simply using their own installation instructions.


 * Extension:ConfirmEdit
 * Extension:Nuke
 * Extension:EntitySchema
 * Extension:UniversalLanguageSelector
 * Extension:CLDR
 * Extension:VisualEditor
 * Extension:Scribunto
 * Extension:Babel
 * Extension:WikibaseManifest
 * Extension:Wikibase_Local_Media

Native and non-native data types
Extending Wikibase's functionality beyond its native data types may require the installation of additional extensions.

Native data types

 * commonsMedia = "string"
 * entity-schema = "string"
 * external-id = "string"
 * geo-shape = "string"
 * globe-coordinate = "globecoordinate"
 * monolingualtext = "monolingualtext"
 * quantity = "quantity"
 * string = "string"
 * tabular-data = "string"
 * time = "time"
 * url = "string"
 * wikibase-item = "wikibase-entityid"
 * wikibase-property = "wikibase-entityid"

Non-native data types
Many other data types exist and are implemented in some instances of Wikibase, such as Wikidata. Because these other instances are frequently highly customized, below is a list of officially supported data types and the extensions they require:


 * mathematical expression ("string") -- requires Extension:Math
 * musical notation ("string") -- requires Extension:Score
 * lexeme ("wikibase-entityid") -- requires Extension:WikibaseLexeme
 * local media ("string") -- requires Extension:Wikibase_Local_Media

Wikidata Sorgu Servisi
The Wikidata Query Service (WDQS), which consists of the Blazegraph SPARQL query backend and its updater, can be and often is used in conjunction with Wikibase.

Talimatlar
While intrepid users may wish to compile their own instance of WDQS, we recommend using the precompiled version.


 * Download the desired version from Archiva.
 * 0.3.42 is the recommended version as of September 2020. However, expect this information to be updated with the impending MediaWiki release.
 * You can see the changes in each version in the WDQS code repository browser.
 * To configure the query service, consult both the Wikitech WDQS guide and the WDQS user manual.
 * In particular, configure RWstore.properties as noted here:.

Genel bakış
Elasticsearch is a Lucene-based search engine. To get it working with MediaWiki/Wikibase, you'll need the following software:


 * Elasticsearch 6.5.4
 * OpenJDK


 * Three MediaWiki extensions:
 * Two Elasticsearch plugins:
 * search-extra
 * search-highlighter
 * Two Elasticsearch plugins:
 * search-extra
 * search-highlighter

Talimatlar

 * Install Elasticsearch 6.5.4 (refer to its install instructions ).
 * ES's install process will prompt you to install OpenJDK.
 * Install the aforementioned extensions on your MediaWiki instance:
 * Add the following lines to :
 * Add the following lines to :
 * Add the following lines to :
 * Add the following lines to :
 * Install the aforementioned Elasticsearch plugins using these commands:
 * Modify  as needed:
 * Name your cluster with the  directive.
 * Make a single-node cluster:
 * Set  as needed
 * Modify  as needed (above all, set   and   based on the amount of memory available to your host)
 * Note the "flood stage" settings for your disk size.
 * You can either ensure that at least 5% of the disk is available at all times, or you can alter the  setting. For more information, consult this StackOverflow article.
 * Run  for CirrusSearch:
 * Start jobs running in the background:
 * Run :

Talimatlar

 * Using Git, clone the two repositories into your web root (hereafter ):
 * QuickStatements.
 * MagnusTools.
 * In, run.
 * For the files that follow, determine the appropriate values in your installation for the following environment variables, and set them. They can also be easily substituted in place using envsubst.
 * For the files that follow, determine the appropriate values in your installation for the following environment variables, and set them. They can also be easily substituted in place using envsubst.
 * Create the following files with the contents specified.
 * Set these environment variables according to your installation:
 * : MediaWiki username with administrator rights
 * : External IP of your query service instance
 * With the variables set, create an OAuth consumer by executing the following php script on your MediaWiki installation where OAuth is installed:
 * A successful response will have the "created" flag set to "true", as in this example:

For more information, consult the Docker image README.

Reference

 * Wikibase Docker repo on GitHub
 * Docker install instructions