Template:Bugfix SMW hased URI

From TDWG Terms Wiki
Revision as of 14:01, 7 September 2016 by Andreas Plank (Talk | contribs) (Technical Issues: +section)

Jump to: navigation, search

Problem: Semantic MediaWiki

So this template checks if the final character is a # and adds “%20” to it (a blank character urlencoded). This fixes somehow the storage of # URLs. In addition

Usage

{{Bugfix SMW hased URI|uri=http://www.w3.org/2004/02/skos/core#|property=vann:preferredNamespaceUri}}


Parameters

1=
uri=
(mandatory) uri value
property= (mandatory) the property to set

Technical Issues

TODO Warning messages like:

“URIs of the form http://www.w3.org/2000/01/rdf-schema# are not allowed”

Some URLs are not allowed at all, because they are evaluated and translated some how in SemanticMediaWiki (./includes/export/SMW_Exporter.php) and these are:

TODO: those properties need eventually a different approach: use a synonym property page with [[Imported from::rdf:…]] ?