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 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/summary-cards": "@dev",
                "mediawiki/whats-nearby": "@dev",
                "mediawiki/semantic-media-wiki": "@dev",
                "mediawiki/semantic-cite": "@dev",
                "mediawiki/semantic-breadcrumb-links": "@dev",
                "mediawiki/semantic-external-query-lookup": "@dev",
                "mediawiki/semantic-extra-special-properties": "@dev",
                "mediawiki/semantic-glossary": "@dev",
                "mediawiki/semantic-interlanguage-links": "@dev",
                "mediawiki/semantic-maps": "@dev",
                "mediawiki/semantic-meta-tags": "@dev",
                "mediawiki/semantic-result-formats": "@dev",
                "mediawiki/semantic-sifter": "@dev",
                "mediawiki/semantic-watchlist": "@dev",
                "phpoffice/phpexcel": "~1"
        },
        "config": {
                "preferred-install": "source",
                "optimize-autoloader": true
        }
}

LocalSettings.php

selected other extensions

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

semantic extensions

$wgSearchType = 'SMWSearch';

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

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

## Semantic Compound Queries
require "extensions/SemanticCompoundQueries/SemanticCompoundQueries.php";

## 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
// Composer
$sfg24HourTime = true;
$sfgRenameEditTabs = true;
$sfgRedLinksCheckOnlyLocalProps = true;
$sfgAutocompleteOnAllChars = true;
$sfgAutoCreateUser = 'AutoCreateBot';

## Semantic Forms Inputs
require "extensions/SemanticFormsInputs/SemanticFormsInputs.php";

## Semantic Glossary
// Composer
 
## Semantic Interlanguage Links
// Composer
 
## Semantic Maps
// 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 Rating
require "extensions/SemanticRating/SemanticRating.php";

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

## Semantic Sifter
// Composer

## Semantic Title
require "extensions/SemanticTitle/SemanticTitle.php";
$wgSemanticTitleProperties = array(
        NS_MAIN => "Has pagetitle"
        );

## Semantic Watchlist
// Composer
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.