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

De Semantic MediaWiki - Sandbox

(aesthetic)
Ligne 1 : Ligne 1 :
<big>'''Welcome to the sandbox of the [[semantic-mw:Help:SMW Project|SMW project]]. It allows to text features provided by [[semantic-mw:Semantic MediaWiki|Semantic MediaWiki]] as well as related semantic extensions.'''</big>
+
<big>'''Welcome to the sandbox of the [[semantic-mw:Help:SMW Project|SMW project]]. It allows to testfeatures provided by [[semantic-mw:Semantic MediaWiki|Semantic MediaWiki]] as well as related semantic extensions.'''</big>
  
 
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 [[SMW Sandbox:Computer room|update log for MediaWiki core]] on this wiki.
 
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 [[SMW Sandbox:Computer room|update log for MediaWiki core]] on this wiki.
Ligne 49 : Ligne 49 :
 
== LocalSettings.php ==
 
== LocalSettings.php ==
  
=== semantic extensions ===
+
=== Semantic extensions ===
  
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
Ligne 63 : Ligne 63 :
 
$smwgPageSpecialProperties, array(
 
$smwgPageSpecialProperties, array(
 
'_CDAT', '_NEWP', '_LEDT', '_MEDIA', '_MIME'
 
'_CDAT', '_NEWP', '_LEDT', '_MEDIA', '_MIME'
)
+
)
);
+
);
 
$smwgPropertyZeroCountDisplay = false;
 
$smwgPropertyZeroCountDisplay = false;
 
$smwgPropertyLowUsageThreshold = 3;
 
$smwgPropertyLowUsageThreshold = 3;
Ligne 71 : Ligne 71 :
 
$smwgQueryDependencyAffiliatePropertyDetectionlist = array(
 
$smwgQueryDependencyAffiliatePropertyDetectionlist = array(
 
'_DTITLE'
 
'_DTITLE'
);
+
);
 
$smwgEnabledFulltextSearch = true;
 
$smwgEnabledFulltextSearch = true;
  
Ligne 92 : Ligne 92 :
 
$smwgQuerySources = array(
 
$smwgQuerySources = array(
 
'smworg' => 'SMWExternalQueryLookup',
 
'smworg' => 'SMWExternalQueryLookup',
);
+
);
 
$seqlgExternalRepositoryEndpoints = array(
 
$seqlgExternalRepositoryEndpoints = array(
 
'smworg' => array(
 
'smworg' => array(
Ligne 98 : Ligne 98 :
 
'https://www.semantic-mediawiki.org/w/api.php',
 
'https://www.semantic-mediawiki.org/w/api.php',
 
true
 
true
)
+
)
);
+
);
  
 
## Semantic Extra Special Properties
 
## Semantic Extra Special Properties
Ligne 106 : Ligne 106 :
 
'_EUSER', '_CUSER', '_REVID', '_PAGEID', '_NREV', '_NTREV',
 
'_EUSER', '_CUSER', '_REVID', '_PAGEID', '_NREV', '_NTREV',
 
'_SUBP', '_USERREG', '_USEREDITCNT', '_EXIFDATA'
 
'_SUBP', '_USERREG', '_USEREDITCNT', '_EXIFDATA'
);
+
);
 
$sespUseAsFixedTables = true;
 
$sespUseAsFixedTables = true;
 
$wgSESPExcludeBots = true;
 
$wgSESPExcludeBots = true;
Ligne 124 : Ligne 124 :
 
'keywords' => 'Meta element keywords',
 
'keywords' => 'Meta element keywords',
 
'description' => 'Meta element description'
 
'description' => 'Meta element description'
);
+
);
 
$smtgTagsStrings = array(
 
$smtgTagsStrings = array(
 
'og:site_name' => 'Semantic MediaWiki - Sandbox',
 
'og:site_name' => 'Semantic MediaWiki - Sandbox',
Ligne 131 : Ligne 131 :
 
'og:image:width' => '142',
 
'og:image:width' => '142',
 
'og:image:height' => '142'
 
'og:image:height' => '142'
);
+
);
  
 
## Semantic Notifications
 
## Semantic Notifications
Ligne 153 : Ligne 153 :
 
$wgSemanticTitleProperties = array(
 
$wgSemanticTitleProperties = array(
 
NS_MAIN => "Has pagetitle"
 
NS_MAIN => "Has pagetitle"
);
+
);
  
 
## Semantic Watchlist
 
## Semantic Watchlist
Ligne 159 : Ligne 159 :
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== selected other extensions ===
+
=== Selected other extensions ===
  
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
Ligne 178 : Ligne 178 :
 
NS_FILE => 'SimpleSummaryCard',
 
NS_FILE => 'SimpleSummaryCard',
 
SMW_NS_PROPERTY => 'SimpleSummaryCard',
 
SMW_NS_PROPERTY => 'SimpleSummaryCard',
);
+
);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== exception and event logging ===
+
=== Exception and event logging ===
  
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
 
## Exception and event logging
 
## Exception and event logging
 
$wgDebugLogGroups  = array(
 
$wgDebugLogGroups  = array(
        'authentication' => "/var/log/mediawiki/{$wgDBname}-debug-authentication.log",
+
'authentication' => "/var/log/mediawiki/{$wgDBname}-debug-authentication.log",
        'error' => "/var/log/mediawiki/{$wgDBname}-debug-error.log",
+
'error' => "/var/log/mediawiki/{$wgDBname}-debug-error.log",
        'exception' => "/var/log/mediawiki/{$wgDBname}-debug-exception.log",
+
'exception' => "/var/log/mediawiki/{$wgDBname}-debug-exception.log",
        'resourceloader' => "/var/log/mediawiki/{$wgDBname}-debug-resourceloader.log",
+
'resourceloader' => "/var/log/mediawiki/{$wgDBname}-debug-resourceloader.log",
        'smw' => "/var/log/mediawiki/{$wgDBname}-debug-smw.log"
+
'smw' => "/var/log/mediawiki/{$wgDBname}-debug-smw.log"
        );
+
);
 
</syntaxhighlight>
 
</syntaxhighlight>

Version du 5 novembre 2016 à 07:33

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": {
                "mediawiki/chameleon-skin": "@dev",
                "mediawiki/lingo": "@dev",
                "mediawiki/maps": "@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-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;
// $smwgLinksInValues = true;
$smwgAdminRefreshStore = false;
$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;

## 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' => 'http://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 Title
require "extensions/SemanticTitle/SemanticTitle.php";
$wgSemanticTitleProperties = array(
	NS_MAIN => "Has pagetitle"
);

## Semantic Watchlist
// Composer

Selected other extensions

## 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',
);

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.