Skip to content
Snippets Groups Projects
attr-update-schema 2.tql 355 B
Newer Older
define

myentity sub entity,
  owns name;
    
name sub attribute,
    value string;
    
rule r1:
when {
    $s isa myentity;
    not { $s isa myentity, has name "real name";};
} then {
    $s has name "fake name";
};

rule r2:
when {
    $s isa myentity;
    not { $s isa myentity, has name "fake name";};
    $s has name "superreal name";