Files
secondo/Algebras/PropertyGraph/sample-shakespeare/match2
2026-01-23 17:03:45 +08:00

24 lines
498 B
Plaintext

# open database pgraph1;
# query p1 loadgraph;
query p1 match2 ['
(
(theater Venue ( (Name "Theatre Royal") ))
(newcastle City ( (Name "Newcastle") ))
(bard Author ( (Lastname "Shakespeare") ))
(theater STREET s)
(s CITY newcastle)
(perf VENUE theater)
(perf PERFORMANCE_OF prod)
(prod PRODUCTION_OF play)
(bard w WROTE_PLAY play)
)',
'( ((w Year) > 1608 ) )',
'( ((theater Name) Name) ((s Name) StreetName) ((prod Name) ProdName) ((w Year) Year) )'
] consume;