>I wanted to define an attribute Smiles:=string, where the string could contain >quite a few characters (its more or less 1 character per atom in a >molecule, and >some molecules can easily have 1000+ atoms). Is there limit to how long >such a string could be?
Yes, the Type:String code limits strings to 255. There's a warning in the factbox when you exceed this. It was discussed earlier, http://sourceforge.net/mailarchive/message.php?msg_id=36371763 ; although you could probably work around the MediaWiki limitations if you edit the PHP code and alter your database, there's a performance hit. Can you explain or link to the underlying property for "Smiles" that you're trying to represent, is it a chemical formula like NaCl? It's nice to understand what people are trying to do. >Also, would there be any problem in the string being serialised into XML? >It seems confusing that : can be used to define eg an attribute, but >is also used for namespacing XML. If you're referring to SMW's Special:ExportRDF, it's pretty careful to do the right thing. There's no problem with ':' in the attribute string as it just appears in the RDF as an XML text element. I just tried an attribute with a colon in it (Attribute:Test:Punctuation, http://ontoworld.org/index.php?title=Special:SearchTriple&attribute=Test%3APunctuation&do=Search+Attributes ) and that seemed to work OK although it's confusing. Special:ExportRDF converts punctuation in property names, including ':', to -3A to avoid issues. If you run into problems, file a bug and mention it on the mailing list. Regards, -- =S ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Semediawiki-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/semediawiki-user
