amie-master/kb/src/main/java/amie/data/SexismSimpleTypingKB.java
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package amie.data;

/**
 *
 * @author jlajus
 */
public class SexismSimpleTypingKB extends SimpleTypingKB {
    @Override
    protected boolean add(int subject, int relation, int object) {
        if (relation==(Schema.typeRelationBS) || relation==(Schema.subClassRelationBS)) {
            return super.add(subject, relation, object);
        } else if (relation==(KB.map("<hasGender>"))) {
            return super.add(subject, object, relation);
        } else {
            return false;
        }
    }
}
