Example #1
0
 def semantics(self, match):
     author = NameOf(IsPerson() + AuthorOf(match.book))
     return author, "literal"
Example #2
0
 def semantics(self, match):
     book = IsBook() + HasAuthor(match.author)
     book_name = NameOf(book)
     return book_name, "enum"
Example #3
0
 def semantics(self, match):
     album = IsAlbum() + ProducedBy(match.band)
     name = NameOf(album)
     return name, "enum"
Example #4
0
 def semantics(self, match):
     actor = NameOf(IsPerson() + StarsIn(match.movie))
     return actor, "enum"
Example #5
0
 def semantics(self, match):
     director = IsPerson() + DirectorOf(match.movie)
     director_name = NameOf(director)
     return director_name, "literal"
Example #6
0
 def semantics(self, match):
     movie = IsMovie() + HasActor(match.actor)
     movie_name = NameOf(movie)
     return movie_name, "enum"
Example #7
0
 def semantics(self, match):
     movie = IsMovie()
     name = NameOf(movie)
     return name, "enum"