edu.stanford.smi.protegex.owl.model.classparser.compact
Class CompactParserUtil
java.lang.Object
edu.stanford.smi.protegex.owl.model.classparser.compact.CompactParserUtil
- public class CompactParserUtil
- extends Object
- Author:
- Holger Knublauch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
display
private static final CompactOWLClassDisplay display
characterMap
private static Map characterMap
CompactParserUtil
public CompactParserUtil()
setCharacterMap
public static void setCharacterMap(Map map)
setUseDefaultCharacterMap
public static void setUseDefaultCharacterMap()
getParseableString
public static String getParseableString(String str)
preprocess
public static String preprocess(OWLModel owlModel,
String text)
- Detects usages of xsd: types as expression fillers, and makes sure that
they start with xsd:. This is needed to simplify the grammar which
grew historically. Eventually this should be cleaned up.
- Parameters:
owlModel
- the OWLModeltext
- the text to preprocess
- Returns:
- the next text or the same if no xsd: types were found
preprocessFiller
public static String preprocessFiller(OWLModel owlModel,
String text)