Template:Bugfix SMW hased URI

From TDWG Terms Wiki
Revision as of 23:59, 7 September 2016 by Andreas Plank (Talk | contribs) (usage not recommended because of not proper resulting RDF)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Deprecated. Usage not recommended because it creates but correct property values but not proper RDF values

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
  • an URL value like http://www.w3.org/2004/02/skos/core# will not appear in the RDF

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 the property but not in the RDF it is unfortunately still http://www.w3.org/2004/02/skos/core#%20. 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:…]] ?
  • or empty MediaWiki:Smw uri blacklist might be a work around