Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] A Method That Cleans Text

Nick Khamis symack at
Thu Jul 2 05:31:12 PDT 2009

Hello Everyone,

 Is there a method in the Protegex OWL-API that cleans the text normalizing
it to a format that will play nice when creating individuals or concepts
etc... avoiding rudimentary methods that look something like something like

protected static String ConvertAsciiToText(String pValue)
        if (pValue != null)
    pValue = pValue.replace("@", "-");
    pValue = pValue.replace("!", " ");
    pValue = pValue.replace("$", "-");
    pValue = pValue.replace("%", " Percent ");
    pValue = pValue.replace("(","-");
    pValue = pValue.replace(")","-");
    pValue = pValue.replace("*", "-");
    pValue = pValue.replace("<","-");
    pValue = pValue.replace(">", "-");
    pValue = pValue.replace("@", "-at-");
    pValue = pValue.replace("^", "_");
    pValue = pValue.replace("`", " ");

Thanks in Advanced,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the protege-discussion mailing list