/** * Type check property and class definition of the triple. */ ASTQuery check(Triple triple) { if (triple.isType()) { // ?x rdf:type foaf:Person if (triple.getArg(1).isConstant()) { return checkClass(triple); } } else if (triple.getVariable() == null) { // ?x foaf:name ?n return checkProperty(triple); } return null; }
/** * Type check property and class definition of the triple. */ ASTQuery check(Triple triple) { if (triple.isType()) { // ?x rdf:type foaf:Person if (triple.getArg(1).isConstant()) { return checkClass(triple); } } else if (triple.getVariable() == null) { // ?x foaf:name ?n return checkProperty(triple); } return null; }