Skip to content

Commit

Permalink
Hopefully temporary fix for loading SADL "described by Whatever with …
Browse files Browse the repository at this point in the history
…values of type { A or B } was returning property with range "", A, and B. The "" messed up the ontology.
  • Loading branch information
Paul Cuddihy committed May 26, 2021
1 parent 8c59c59 commit 0787f0e
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,25 @@ public void loadProperties(String classList[], String propertyList[], String ran

// loop through and make the property, pull class...
for(int i = 0; i < classList.length; i += 1){

//////////////// new bug 5/2021 needs looking at properties query ////////////////////
// skip rows with empty range if there's another identical one with range
// seems to be caused by sadl "with values of type { A or B } "
boolean skipRow = false;
if (rangeList[i].isEmpty()) {
for (int j=0; j < classList.length; j++) {
if (classList[j].equals(classList[i]) && propertyList[j].equals(propertyList[i]) && !rangeList[j].isEmpty()) {
skipRow = true;
break;
}
}
}
if (skipRow) {
continue;
}

////////////////////////////////////

OntologyProperty prop = null;

// get prop from propertyHash, or create it
Expand Down

0 comments on commit 0787f0e

Please sign in to comment.