How to run gkc on the Wordnet TPTP version
How to run the reasoner on Wordnet TPTP version:
- First, load the axiom set into the shared memory database like this:
./gkc -readkb NLP001+0.ax
- Second, ask a question using this pre-loaded data and a specified strategy like this:
./gkc -provekb kyss.txt query.txt
where kyss.txt is a question file, two examples where "kyss" is the name of the formula
and the "conjecture" means that we want to prove whether
axioms => question
is true,
i.e. we do not negate the question (use "negated_conjecture" if the question is already negated):
fof(kyss,conjecture,(
meronym__part(n2958343,n2670683) )).
and
fof(axiom1,assumption,(
! [X,Y,Z] :
( ( hypernym(X,Y)
& hypernym(Y,Z) )
=> hypernym(X,Z) ) )).
fof(axiom2,assumption,(
! [X,Y] :
( hypernym(X,Y)
=> hyponym(Y,X) ) )).
fof(axiom3,assumption,(
! [X,Y] :
( hyponym(X,Y)
=> hypernym(Y,X) ) )).
fof(kyss,conjecture,(
lexicalization(M,'wheeled vehicle') &
lexicalization(A,accelerator) &
hypernym(X,M) & meronym__part(X,A) )).
and query.txt is the strategy selection file, use:
{
"max_size": 0,
"max_depth": 0,
"max_length":0,
"max_seconds": 0,
"strategy":["query_focus"],
"query_preference": 2
}