ontologyportal / sigmakee

Sigma Knowledge Engineering Environment
GNU General Public License v3.0
101 stars 34 forks source link

cache warnings #62

Open arademaker opened 4 years ago

arademaker commented 4 years ago

I saw many warnigs like

WARNING in buildTransInstOf(): using non-standard transitive relation geographicSubregion with child AinDeflaAlgeria .  May need to add to KBcache.intendedTransRels

In the KBCache.java there is a list of relations hardcoded

    // all the transitive relations that are known to be appropriate to use at the time
    // this code was created - used to provide warnings
    public static final List<String> intendedTransRels =
            Arrays.asList("subclass", "subrelation", "subAttribute");

and it seems the warning was fired by the test


                if (instTransRels.contains(rel) && !rel.equals("subclass") && !rel.equals("relatedInternalConcept")) {
                    if (!intendedTransRels.contains(rel)) {
                        System.out.println("WARNING in buildTransInstOf(): using non-standard transitive relation " +
                                rel + " with child " + child + " .  May need to add to KBcache.intendedTransRels");
                    }
 ...

But the logic of the code is not clear at all... I could not understand what the test is doing and how to interpret the warn message.