Matcher mt = pt.matcher(val.toString());
if(mt.matches()){
String text = mt.group(1);
String src = mt.group(2);
Definition d = new Definition(text);
d.setSource(new Source(src));
deflist.add(d);
}
}
}
IProperty adef_p = ont.getProperty("ALT_DEFINITION");
if(adef_p != null){
for(Object val : cls.getPropertyValues(adef_p)){
Pattern pt = Pattern.compile(".*<.*:def-definition>(.*)</.*:def-definition><.*:def-source>(.*)</.*:def-source>.*");
Matcher mt = pt.matcher(val.toString());
if(mt.matches()){
String text = mt.group(1);
String src = mt.group(2);
Definition d = new Definition(text);
d.setSource(new Source(src));
deflist.add(d);
}
}
}