예제 #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;
 }