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

test framework: add extra meta-predicate (ontology ...) that specify the kif files needed. #218

Open
arademaker opened this issue May 18, 2020 · 7 comments

Comments

@arademaker
Copy link
Contributor

arademaker commented May 18, 2020

In many .tq files in tests directory, I see the predicates:

  • note
  • time
  • query
  • answer

where can I find information about these predicates and/or more information about the format .tq that seems to be a supersede of SUO-KIF (.kif files). Actually, files in this directory are named as TQGNN.kif.tq.

@arademaker
Copy link
Contributor Author

what are the .html files (e.g. TQG9.kif-res.html) in the tests directory? Do we still need them?

@apease
Copy link
Contributor

apease commented May 18, 2020

These are just meta-predicates, not part of SUMO, that are keywords for a testing framework. It's been a number of years since I used these. I don't think they were written up, but it would be good to revive them

@apease
Copy link
Contributor

apease commented May 18, 2020

I don't see .html files at https://github.com/ontologyportal/sumo/tree/master/tests . Are these just in your local directory? They should get created when running the testing framework.

@arademaker
Copy link
Contributor Author

I believe the .html files were not deleted when I was running SigmaKEE directly the SUMO work tree.

@apease
Copy link
Contributor

apease commented May 18, 2020

ok, it's safe to delete them

@apease
Copy link
Contributor

apease commented May 18, 2020

InferenceTestSuite.java is the relevant class to run the TQs

apease@apease-ThinkPad-T460s:~/workspace/sigmakee$ java -Xmx7g -classpath /home/apease/workspace/sigmakee/build/classes:/home/apease/workspace/sigmakee/build/lib/:/home/apease/workspace/sigmakee/lib/ com.articulate.sigma.InferenceTestSuite
InferenceTestSuite class
options:
-h - show this help screen
-t - run named test file in config.xml inferenceTestDir
-it - run test files known to pass in the given mode in config.xml inferenceTestDir

@apease
Copy link
Contributor

apease commented May 18, 2020

it looks like we just have four metapredicates, handled in the code in InferenceTestSuite

                if (formula.startsWith("(note")) 
                    note = formula.substring(6,formula.length()-1);
                else if (formula.startsWith("(query")) 
                    query = formula.substring(7,formula.length()-1);
                else if (formula.startsWith("(answer")) 
                    answerList.add(formula.substring(8,formula.length()-1));
                else if (formula.startsWith("(time")) 
                    timeout = Integer.parseInt(formula.substring(6,formula.length()-1));
                else 
                	kb.tell(formula); 

I'll see about adding one for "file" (which could have multiple entries to allow for loading several files), which would override the constituent list in config.xml, if present

@arademaker arademaker changed the title request of information test framework: add extra meta-predicate (ontology ...) that specify the kif files needed. May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants