Différences entre les versions de « SMW Sandbox:Setup information »

De Semantic MediaWiki - Sandbox

(→‎Semantic extensions : 2016-11-28)
Ligne 140 : Ligne 140 :
 
$smtgTagsStrings = array(
 
$smtgTagsStrings = array(
 
'og:site_name' => 'Semantic MediaWiki - Sandbox',
 
'og:site_name' => 'Semantic MediaWiki - Sandbox',
'og:image' => 'http://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png',
+
'og:image' => 'https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png',
 
'og:image:type' => 'image/png',
 
'og:image:type' => 'image/png',
 
'og:image:width' => '142',
 
'og:image:width' => '142',

Version du 29 novembre 2016 à 22:57

Welcome to the sandbox of the SMW project. It allows to testfeatures provided by Semantic MediaWiki as well as related semantic extensions.

This wiki is designed to always run on the latest release candidate or stable version of MediaWiki core as well as the installed extensions, except for most of the semantic extensions which run on master. This page shows some of the setup information. See also the update log for MediaWiki core on this wiki.

composer.local.json

{
	"require": {
		"jeroen/mediawiki-github": "@dev",
		"mediawiki/chameleon-skin": "@dev",
		"mediawiki/lingo": "@dev",
		"mediawiki/maps": "@dev",
		"mediawiki/page-forms": "@dev",
		"mediawiki/parser-hooks": "@dev",
		"mediawiki/scribunto": "@dev",
		"mediawiki/summary-cards": "@dev",
		"mediawiki/validator": "@dev",
		"mediawiki/whats-nearby": "@dev",
		"mediawiki/semantic-breadcrumb-links": "@dev",
		"mediawiki/semantic-cite": "@dev",
		"mediawiki/semantic-compound-queries": "@dev",
		"mediawiki/semantic-external-query-lookup": "@dev",
		"mediawiki/semantic-extra-special-properties": "@dev",
		"mediawiki/semantic-forms-select": "@dev",
		"mediawiki/semantic-glossary": "@dev",
		"mediawiki/semantic-interlanguage-links": "@dev",
		"mediawiki/semantic-media-wiki": "@dev",
		"mediawiki/semantic-meta-tags": "@dev",
		"mediawiki/semantic-notifications": "@dev",
		"mediawiki/semantic-result-formats": "@dev",
		"mediawiki/semantic-scribunto": "@dev",
		"mediawiki/semantic-sifter": "@dev",
		"mediawiki/semantic-watchlist": "@dev",
		"phpoffice/phpexcel": "~1"
	},
	"extra": {
		"merge-plugin": {
                 	"include": [
                 		"extensions/SyntaxHighlight_GeSHi/composer.json"
			]
		}
	},
	"config": {
                "preferred-install": "source",
                "optimize-autoloader": true
	}
}

LocalSettings.php

Semantic extensions

$wgSearchType = 'SMWSearch';

## Semantic MediaWiki
// Composer
enableSemantics( $smwSemanticName );
$smwgNamespacesWithSemanticLinks[NS_EXTRA] = true;
$smwgPageSpecialProperties = array_merge(
	$smwgPageSpecialProperties, array(
		'_CDAT',
		'_NEWP',
		'_LEDT',
		'_MEDIA',
		'_MIME'
	)
);
$smwgPropertyZeroCountDisplay = false;
$smwgPropertyLowUsageThreshold = 3;
$smwgEnabledQueryDependencyLinksStore = true;
$smwgDVFeatures = $smwgDVFeatures | SMW_DV_PVUC;
$smwgQueryDependencyAffiliatePropertyDetectionlist = array(
	'_DTITLE'
);
$smwgEnabledFulltextSearch = true;
$smwgQueryResultCacheType = CACHE_ANYTHING;

## Semantic Breadcrumb Links
// Composer
 
## Semantic Cite
// Composer

## Semantic Compound Queries
// Composer

## Semantic Drilldown
$sdgNamespaceIndex = 112;
require "extensions/SemanticDrilldown/SemanticDrilldown.php";
$sdgShowCategoriesAsTabs = true;

## Semantic External Query Lookup
// Composer
$smwgQuerySources = array(
	'smworg' => 'SMWExternalQueryLookup',
);
$seqlgExternalRepositoryEndpoints = array(
	'smworg' => array(
		'https://www.semantic-mediawiki.org/w/index.php/$1',
		'https://www.semantic-mediawiki.org/w/api.php',
		true
	)
);

## Semantic Extra Special Properties
// Composer
$sespSpecialProperties = array(
	'_EUSER',
	'_CUSER',
	'_REVID',
	'_PAGEID',
	'_NREV',
	'_NTREV',
	'_SUBP',
	'_USERREG',
	'_USEREDITCNT',
	'_EXIFDATA'
);
$sespUseAsFixedTables = true;
$wgSESPExcludeBots = true;

## Semantic Forms Select
// Composer

## Semantic Glossary
// Composer
 
## Semantic Interlanguage Links
// Composer
 
## Semantic Meta Tags
// Composer
$smtgTagsProperties = array(
	'keywords' => 'Meta element keywords',
	'description' => 'Meta element description'
);
$smtgTagsStrings = array(
	'og:site_name' => 'Semantic MediaWiki - Sandbox',
	'og:image' => 'https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png',
	'og:image:type' => 'image/png',
	'og:image:width' => '142',
	'og:image:height' => '142'
);

## Semantic Notifications
// Composer

## Semantic Rating
require "extensions/SemanticRating/SemanticRating.php";

## Semantic Result Formats
// Composer
$srfgFirstDayOfWeek = 'monday';

## Semantic Scribunto
// Composer

## Semantic Sifter
// Composer

## Semantic Watchlist
// Composer

Selected other extensions

## GitHub
// Composer
$egGitHubDefaultRepo = 'SemanticMediaWiki/SemanticMediaWiki';

## Maps
// Composer
$egMapsEnableCategory = true;

## Page Forms
wfLoadExtension( 'PageForms' );
$wgPageForms24HourTime = true;
$wgPageFormsRenameEditTabs = true;
$wgPageFormsRedLinksCheckOnlyLocalProps = true;
$wgPageFormsAutocompleteOnAllChars = true;
$wgPageFormsAutoCreateUser = 'AutoCreateBot';

## Summary Card
// Composer
$sucgBackendParserCacheType = CACHE_MEMCACHED;
$sucgEnabledNamespaceWithTemplate = array(
	NS_MAIN => 'SimpleSummaryCard',
	NS_HELP => 'SimpleSummaryCard',
	NS_FILE => 'SimpleSummaryCard',
	SMW_NS_PROPERTY => 'SimpleSummaryCard',
);

## WhatsNearby
// Composer

Exception and event logging

## Exception and event logging
$wgDebugLogGroups  = array(
	'authentication' => "/var/log/mediawiki/{$wgDBname}-debug-authentication.log",
	'error' => "/var/log/mediawiki/{$wgDBname}-debug-error.log",
	'exception' => "/var/log/mediawiki/{$wgDBname}-debug-exception.log",
	'resourceloader' => "/var/log/mediawiki/{$wgDBname}-debug-resourceloader.log",
	'smw' => "/var/log/mediawiki/{$wgDBname}-debug-smw.log"
);
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.