Sparql commands in rules

Sparql commands in rules -  final version