public String[] toSPARQL() { String[] sparqlStrings = new String[kReSRuleList.size()]; int i = 0; for (KReSRule kReSRule : kReSRuleList) { sparqlStrings[i] = kReSRule.toSPARQL(); i++; } return sparqlStrings; }
@Override public String getRulesInKReSSyntax() { String kReSSyntax = ""; boolean firstLoop = true; for (KReSRule kReSRule : kReSRuleList) { if (!firstLoop) { kReSSyntax += " . "; } else { firstLoop = false; } kReSSyntax += kReSRule.toKReSSyntax(); } return kReSSyntax; }