Class ParserUtils
java.lang.Object
com.semedy.reasoner.parser.oologic.ParserUtils
Utility methods with parser.
Is used in debugger
Is used in debugger
- Author:
- Juergen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
loadAllClasses
(String directoryPath, Set<String> classes) Return all predicates and classes in all files in same (flat) directorystatic SymbolTable
loadAllFactsAndRulesInDirectory
(String directoryPath, Set<Rule> rules, Set<Literal> facts, int maxTermLength) load all rules and facts in files in same (flat) directorystatic void
loadAllPredicateSymbols
(String directoryPath, Set<String> predicates) Return all predicates in all files in same (flat) directory
-
Constructor Details
-
ParserUtils
public ParserUtils()
-
-
Method Details
-
loadAllFactsAndRulesInDirectory
public static SymbolTable loadAllFactsAndRulesInDirectory(String directoryPath, Set<Rule> rules, Set<Literal> facts, int maxTermLength) throws IOException, SemReasonerException load all rules and facts in files in same (flat) directory- Parameters:
directoryPath
-rules
-facts
-maxTermLength
-- Throws:
IOException
SemReasonerException
-
loadAllClasses
public static void loadAllClasses(String directoryPath, Set<String> classes) throws IOException, SymboltableException, SemReasonerException, EDBException Return all predicates and classes in all files in same (flat) directory- Parameters:
directoryPath
-classes
- , all found classes- Throws:
SimpleParseException
IOException
SymboltableException
SemReasonerException
EDBException
-
loadAllPredicateSymbols
public static void loadAllPredicateSymbols(String directoryPath, Set<String> predicates) throws IOException, SymboltableException, SemReasonerException, EDBException Return all predicates in all files in same (flat) directory- Parameters:
directoryPath
-predicates
- , the resulting predicates- Throws:
SimpleParseException
IOException
SymboltableException
SemReasonerException
EDBException
-