From: S P. <in...@sk...> - 2007-12-21 23:08:45
|
Carlos Atencio wrote: > I recently updated SMW from version 0.7 to version 1.0-RC3, there's > something that I don't know how to deal, always when I used to put > this... [[Photo:= [[Image:MyImage.jpg]]| ]] , in the fact box I got the > image, What was the type of Attribute:Photo? > now I have instance a warning message > > 'Sorry URIs of the Form " <here comes the image> " are not available in > this place ' I think that error can only happen if the property has_type URL or URI. The code for URL handling splits your "URL" at the colon and doesn't like the '['s in the schema "[[Image". Clearly the MediaWiki Image: namespace is not a real URI. If you were really using Type:URL in 0.7, that was a neat trick for getting images! Maybe it happened to work in earlier versions because of the order MediaWiki and SMW parsing expands wiki text. Can you remember what you were doing, maybe it needs to be mentioned in http://semantic-mediawiki.org/index.php/Upgrading_from_SMW_0.7_to_SMW_1.0 Anyway, if you say Property:Photo [[Has type:String]], then your wiki markup text to show an image in it will work in the page body and in the fact box. See some tests at http://ontoworld.org/wiki/Sandbox There are still limitations with this: the Property:Photo page and semantic searches won't show the image, just your wiki markup text. If you have PHP coding skills, developers have proposed a dedicated Type:Image and other fixes for image handling on the mailing lists. -- =S Page |