Dear Hideaki, the reasone is that we require the last part to be a possible local name for a QName (as defined in http://www.w3.org/TR/REC-xml-names/#ns-qualnames). This is necessary in order to use properties defined within the wiki in the RDF-export.
In order to get back to the original name, you have two options: * The derived name is still inverse functional to the original name, so you could reimplement the part of the code that does the translation (or, if using PHP, just take the code) * You can use the rdfs:label property, where we export the original name of the article. I'd strongly suggest the second approach. I hope this helps and explains why we did that. All the best, denny Hideaki Takeda schrieb: > Dear everyone, > > I am using Semantic MediaWiki 0.7 for a student project. > We use Japanese basically. > Normally URL including Japanese is encoded like this. > > http://bs1.race.u-tokyo.ac.jp/wiki/index.php/%E6%AD%A6%E7%94%B0%E4%BF%A1%E7%8E%84 > > It is a normal behavior as Web. > But RDF exported by Semantic MediaWiki is something different like this. > > - <smw:Thing > rdf:about="http://bs1.race.u-tokyo.ac.jp/wiki/index.php/Special:URIResolver/-E6-AD-A6-E7-94-B0-E4-BF-A1-E7-8E-84"> > <rdfs:label>武田信玄</rdfs:label> > <smw:hasArticle > rdf:resource="http://bs1.race.u-tokyo.ac.jp/wiki/index.php/%E6%AD%A6%E7%94%B0%E4%BF%A1%E7%8E%84" > /> > <rdfs:isDefinedBy > rdf:resource="http://bs1.race.u-tokyo.ac.jp/wiki/index.php/Special:ExportRDF/%E6%AD%A6%E7%94%B0%E4%BF%A1%E7%8E%84" > /> > <wiki:Relation-3A-E7-88-B6 > rdf:resource="http://bs1.race.u-tokyo.ac.jp/wiki/index.php/Special:URIResolver/-E6-AD-A6-E7-94-B0-E4-BF-A1-E8-99-8E" > /> > </smw:Thing> > > See > http://bs1.race.u-tokyo.ac.jp/wiki/index.php/Special:ExportRDF/%E6%AD%A6%E7%94%B0%E4%BF%A1%E7%8E%84 > > "%" is replaced by "-". > > Are there any reasons to do that? > Such translation makes it impossible to decode the string to the > original string. > > -------------------------------------------------------------------- > Hideaki Takeda, Dr. Eng. > National Institute of Informatics http://www-kasm.nii.ac.jp/~takeda/ > RACE, The University of Tokyo http://www.race.u-tokyo.ac.jp/~takeda/ > -------------------------------------------------------------------- > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Semediawiki-user mailing list > Semediawiki-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/semediawiki-user ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Semediawiki-user mailing list Semediawiki-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-user