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

De Semantic MediaWiki - Sandbox

(2016-07-06)
(→‎semantic extensions : + $smwgEnabledFulltextSearch = true;)
Ligne 73 : Ligne 73 :
 
'_DTITLE'
 
'_DTITLE'
 
);
 
);
 +
$smwgEnabledFulltextSearch = true;
  
 
## Semantic Breadcrumb Links
 
## Semantic Breadcrumb Links

Version du 8 août 2016 à 10:56

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[modifier le wikicode]

{
        "require": {
                "mediawiki/chameleon-skin": "@dev",
                "mediawiki/lingo": "@dev",
                "mediawiki/maps": "@dev",
                "mediawiki/scribunto": "@dev",
                "mediawiki/summary-cards": "@dev",
                "mediawiki/whats-nearby": "@dev",
                "mediawiki/semantic-media-wiki": "@dev",
                "mediawiki/semantic-cite": "@dev",
                "mediawiki/semantic-compound-queries": "@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-notifications": "@dev",
                "mediawiki/semantic-result-formats": "@dev",
                "mediawiki/semantic-scribunto": "@dev",
                "mediawiki/semantic-sifter": "@dev",
                "mediawiki/semantic-watchlist": "@dev",
                "phpoffice/phpexcel": "~1"
        },
        "config": {
                "preferred-install": "source",
                "optimize-autoloader": true
        }
}

LocalSettings.php[modifier le wikicode]

selected other extensions[modifier le wikicode]

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

semantic extensions[modifier le wikicode]

$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'
	);
$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
require 'extensions/SemanticForms/SemanticForms.php';
$sfg24HourTime = true;
$sfgRenameEditTabs = true;
$sfgRedLinksCheckOnlyLocalProps = true;
$sfgAutocompleteOnAllChars = true;
$sfgAutoCreateUser = 'AutoCreateBot';

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

// ## Semantic Forms Select
// Composer

## 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 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

exception and event logging[modifier le wikicode]

## Exception and event logging
$wgDebugLogGroups  = array(
	'authentication' => "/var/log/mediawiki/{$wgDBname}-debug-authentication.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.