Пример #1
0
 @Override
 public void addKReSRule(KReSRule kReSRule) {
   if (kReSRuleList == null) {
     kReSRuleList = new KReSRuleList();
   }
   kReSRuleList.add(kReSRule);
 }
Пример #2
0
 public String[] toSPARQL() {
   String[] sparqlStrings = new String[kReSRuleList.size()];
   int i = 0;
   for (KReSRule kReSRule : kReSRuleList) {
     sparqlStrings[i] = kReSRule.toSPARQL();
     i++;
   }
   return sparqlStrings;
 }