SMW Sandbox:Setup information
De Semantic MediaWiki - Sandbox
Welcome to the sandbox of the SMW project. It allows to text features provided by Semantic MediaWiki as well as related semantic extensions.
This wiki is designed to always run on the latest stable version of MediaWiki core as well as the installed extensions. Note that it is required to create and account as well as confirm your e-mail to use this wiki.
composer.local.json[modifier le wikicode]
{
"require": {
"mediawiki/semantic-media-wiki": "~2",
"mediawiki/semantic-breadcrumb-links": "~1",
"mediawiki/semantic-extra-special-properties": "~1",
"mediawiki/semantic-forms": "~3",
"mediawiki/semantic-forms-select": "~1",
"mediawiki/semantic-glossary": "~1",
"mediawiki/semantic-interlanguage-links": "~1",
"mediawiki/semantic-maps": "~3",
"mediawiki/semantic-meta-tags": "~1",
"mediawiki/semantic-result-formats": "~2",
"mediawiki/semantic-sifter": "@dev",
"mediawiki/semantic-watchlist": "~1",
"phpoffice/phpexcel": "~1"
}
}
LocalSettings.php[modifier le wikicode]
- Semantic extensions only
## Semantic MediaWiki
// Composer
enableSemantics( $smwSemanticName );
$smwgAdminRefreshStore = false;
$smwgPageSpecialProperties = array_merge(
$smwgPageSpecialProperties, array(
'_CDAT', '_NEWP', '_LEDT', '_MEDIA', '_MIME'
)
);
## Semantic Compound Queries
require "extensions/SemanticCompoundQueries/SemanticCompoundQueries.php";
## Semantic Drilldown
$sdgNamespaceIndex = 112;
require "extensions/SemanticDrilldown/SemanticDrilldown.php";
$sdgShowCategoriesAsTabs = true;
## Semantic Extra Special Properties
// Composer
$sespSpecialProperties = array(
'_EUSER', '_CUSER', '_REVID', '_PAGEID', '_VIEWS', '_NREV',
'_NTREV', '_SUBP', '_USERREG', '_USEREDITCNT', '_EXIFDATA'
);
$sespUseAsFixedTables = true;
$wgSESPExcludeBots = true;
## Semantic Forms
// Composer
$sfg24HourTime = true;
$sfgRenameEditTabs = true;
$sfgRedLinksCheckOnlyLocalProps = true;
$sfgAutocompleteOnAllChars = true;
## Semantic Forms Inputs
require "extensions/SemanticFormsInputs/SemanticFormsInputs.php";
## Semantic Maps
// Composer
## Semantic Meta Tags
// Composer
$smtgTagsProperties = array(
'keywords' => 'Meta-element keywords',
'description' => 'Meta-element description'
);
## Semantic Rating
require "extensions/SemanticRating/SemanticRating.php";
## Semantic Result Formats
// Composer
$srfgFirstDayOfWeek = 'monday';