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)
Problem: Semantic MediaWiki
- stores a hashed URL like
[[URL::http://www.w3.org/2004/02/skos/core#]]
- as http://www.w3.org/2004/02/skos/core cutting the “#” off
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:
- http://www.w3.org/2002/07/owl# (owl::…)
- http://www.w3.org/1999/02/22-rdf-syntax-ns# (rdf::…)
- http://www.w3.org/2000/01/rdf-schema# (rdfs::…)
TODO: those properties need eventually a different approach: use a synonym property page with [[Imported from::rdf:…]]
?