Status: | effective |
Progress: | 100% |
Version: | 3.0.1+ |
$smwgURITypeSchemeList
Configuration parameter details: | |
Name | $smwgURITypeSchemeList |
Description | Sets the permissive URI schemes for data values to properties of datatype URL and Annotation URI |
Default setting | See below |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Basic settings · Installation |
Keyword | url · uri · uri schema |
__NOBREADCRUMBLINKS__
$smwgURITypeSchemeList
is a configuration parameter that sets the permissive URI schemes for data values to properties of datatype "URL"Holds URIs, URNs and URLs and datatype "Annotation URI"Holds URIs, but has some technical differences during export compared to the "URL" type to allow for better validation. The configuration parameter was introduced in Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki1 and extended by "git", "irc", "ircs", "sftp" and "ssh" in Semantic MediaWiki 3.0.1Released on an unknown date unknown versions of MediaWiki.2
Default setting
$smwgURITypeSchemeList = [
'http', 'https', 'mailto', 'tel', 'ftp', 'sftp', 'news', 'file', 'urn',
'telnet', 'ldap', 'gopher', 'ssh', 'git', 'irc', 'ircs'
];
This means that data values containing the URI schemes listed may be added to properties of datatype "URL"Holds URIs, URNs and URLs and datatype "Annotation URI"Holds URIs, but has some technical differences during export compared to the "URL" type.
Changing the default setting
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics()
call:
- Extend the list by "xmpp" for Jabber links
$smwgURITypeSchemeList = array_merge(
$smwgURITypeSchemeList, [
'xmpp'
]
);
- Only allow "http", "https", "mailto" and "tel"
$smwgURITypeSchemeList = [
'http', 'https', 'mailto', 'tel'
];
See also
- Help page on datatype "URL"Holds URIs, URNs and URLs
- Help page on datatype "Annotation URI"Holds URIs, but has some technical differences during export compared to the "URL" type
- www.iana.org: Uniform Resource Identifier (URI) Schemes
- www.w3.org: UriSchemes