Rule not working || rdf:type

Hi Team.
I wrote two rule. Rule1 works, but Rule2 doesn't work.
They are very simple. any suggestion why Rule isn't Working?

@prefix : http://test.com/demo# .
@prefix owl: http://www.w3.org/2002/07/owl# .
@prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# .
@prefix xml: http://www.w3.org/XML/1998/namespace .
@prefix xsd: http://www.w3.org/2001/XMLSchema# .
@prefix rdfs: http://www.w3.org/2000/01/rdf-schema# .

RULE :rule1
IF {
?x rdf:type :A1.
?x :isSelected "true".
}
THEN {
?x :status "valid"

@prefix : http://test.com/demo# .
@prefix owl: http://www.w3.org/2002/07/owl# .
@prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# .
@prefix xml: http://www.w3.org/XML/1998/namespace .
@prefix xsd: http://www.w3.org/2001/XMLSchema# .
@prefix rdfs: http://www.w3.org/2000/01/rdf-schema# .

RULE :rule2
IF {
?x :isSelected "true".
?x rdf:type ?y.
FILTER (?y != owl:Thing).
?a rdf:type ?y.
}
THEN {
?a :status "valid"