edu.stanford.smi.protegex.owl.compactparser
Class OWLCompactParserUtil

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.compactparser.OWLCompactParserUtil

public class OWLCompactParserUtil
extends Object

Author:
Holger Knublauch

Constructor Summary
OWLCompactParserUtil()
           
 
Method Summary
static String preprocess(OWLModel owlModel, String text)
          Detects usages of xsd: types as expression fillers, and makes sure that they start with xsd:.
static String preprocessFiller(OWLModel owlModel, String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLCompactParserUtil

public OWLCompactParserUtil()
Method Detail

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 OWLModel
text - 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)