ru.oogis.dro
Class DrlParser
java.lang.Object
ru.oogis.dro.DrlParser
public class DrlParser
- extends java.lang.Object
Constructor Summary |
DrlParser(edu.stanford.smi.protege.model.KnowledgeBase kb)
|
DrlParser(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.model.Instance packInst)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIALECT
public static final java.lang.String DIALECT
- See Also:
- Constant Field Values
DATE_EFFECTIVE
public static final java.lang.String DATE_EFFECTIVE
- See Also:
- Constant Field Values
DATE_EXPIRES
public static final java.lang.String DATE_EXPIRES
- See Also:
- Constant Field Values
ACTIVATION_GROUP
public static final java.lang.String ACTIVATION_GROUP
- See Also:
- Constant Field Values
AGENDA_GROUP
public static final java.lang.String AGENDA_GROUP
- See Also:
- Constant Field Values
AUTO_FOCUS
public static final java.lang.String AUTO_FOCUS
- See Also:
- Constant Field Values
DURATION
public static final java.lang.String DURATION
- See Also:
- Constant Field Values
END
public static final java.lang.String END
- See Also:
- Constant Field Values
EXPANDER
public static final java.lang.String EXPANDER
- See Also:
- Constant Field Values
FUNCTION
public static final java.lang.String FUNCTION
- See Also:
- Constant Field Values
GLOBAL
public static final java.lang.String GLOBAL
- See Also:
- Constant Field Values
IMPORT
public static final java.lang.String IMPORT
- See Also:
- Constant Field Values
NO_LOOP
public static final java.lang.String NO_LOOP
- See Also:
- Constant Field Values
PACKAGE
public static final java.lang.String PACKAGE
- See Also:
- Constant Field Values
RULE
public static final java.lang.String RULE
- See Also:
- Constant Field Values
SALIENCE
public static final java.lang.String SALIENCE
- See Also:
- Constant Field Values
THEN
public static final java.lang.String THEN
- See Also:
- Constant Field Values
WHEN
public static final java.lang.String WHEN
- See Also:
- Constant Field Values
DrlParser
public DrlParser(edu.stanford.smi.protege.model.KnowledgeBase kb)
DrlParser
public DrlParser(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.model.Instance packInst)
getPackInst
public edu.stanford.smi.protege.model.Instance getPackInst()
parse
public void parse(java.io.Reader reader)
throws java.lang.Exception
- Throws:
java.lang.Exception
parse
public void parse(java.lang.String path)
throws java.lang.Exception
- Throws:
java.lang.Exception
createRule
public void createRule(ru.oogis.dro.DrlParser.LexReader lr)
throws java.io.IOException
- Throws:
java.io.IOException
createFunction
public void createFunction(ru.oogis.dro.DrlParser.LexReader lr)
throws java.io.IOException
- Throws:
java.io.IOException
createPackage
public void createPackage(java.lang.String lex)
throws java.io.IOException
- Throws:
java.io.IOException
createExpander
public void createExpander(java.lang.String lex)
throws java.io.IOException
- Throws:
java.io.IOException
createImport
public void createImport(java.lang.String lex)
throws java.io.IOException
- Throws:
java.io.IOException
createGlobal
public void createGlobal(java.lang.String clazz,
java.lang.String identifier)
throws java.io.IOException
- Throws:
java.io.IOException
addRuleInstance
public void addRuleInstance(ru.oogis.dro.DrlParser.Rule rule)
getErrors
public java.util.Collection<java.lang.String> getErrors()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception