@NotNull public static OWLClassExpression fromManchester(String expr, AbstractReasonerComponent reasoner, OWLDataFactory dataFactory) { ManchesterOWLSyntaxClassExpressionParser parser = new ManchesterOWLSyntaxClassExpressionParser(dataFactory, new SimpleOWLEntityChecker(reasoner)); return parser.parse(expr); }
new ManchesterOWLSyntaxClassExpressionParser(dataFactory, checker); for (String tableName : tables.keySet()) { int idColumn = idColumns.get(tableName);
String sub = template.substring(2).trim().replaceAll("%", content); try { lastExpression = parser.parse(sub); } catch (ParserException e) { throw new Exception(
@NotNull public static OWLClassExpression fromManchester(String expr, AbstractReasonerComponent reasoner, OWLDataFactory dataFactory, boolean shortForm) { SimpleOWLEntityChecker oec = new SimpleOWLEntityChecker(reasoner); oec.setAllowShortForm(shortForm); ManchesterOWLSyntaxClassExpressionParser parser = new ManchesterOWLSyntaxClassExpressionParser(dataFactory, oec); return parser.parse(expr); }