Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache warnings #62

Open
arademaker opened this issue May 26, 2020 · 0 comments
Open

cache warnings #62

arademaker opened this issue May 26, 2020 · 0 comments

Comments

@arademaker
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant