Skip to content

Commit

Permalink
Updated Hello world example
Browse files Browse the repository at this point in the history
  • Loading branch information
dyumanaditya committed Jan 25, 2024
1 parent 4704d76 commit a3a2345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/hello-world.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# Load all rules and the graph into pyreason
# Someone is "popular" if they have a friend who is popular and they both own the same pet
pr.load_graph(g)
pr.add_rule('popular(x) <-1 popular(y), Friends(x,y), owns(y,z), owns(x,z)', 'popular_rule')
pr.add_rule(pr.Rule('popular(x) <-1 popular(y), Friends(x,y), owns(y,z), owns(x,z)', 'popular_rule'))
pr.add_fact(pr.Fact('popular-fact', 'Mary', 'popular', [1, 1], 0, 2))


Expand Down

0 comments on commit a3a2345

Please sign in to comment.