def semantics(self, match): author = NameOf(IsPerson() + AuthorOf(match.book)) return author, "literal"
def semantics(self, match): book = IsBook() + HasAuthor(match.author) book_name = NameOf(book) return book_name, "enum"
def semantics(self, match): album = IsAlbum() + ProducedBy(match.band) name = NameOf(album) return name, "enum"
def semantics(self, match): actor = NameOf(IsPerson() + StarsIn(match.movie)) return actor, "enum"
def semantics(self, match): director = IsPerson() + DirectorOf(match.movie) director_name = NameOf(director) return director_name, "literal"
def semantics(self, match): movie = IsMovie() + HasActor(match.actor) movie_name = NameOf(movie) return movie_name, "enum"
def semantics(self, match): movie = IsMovie() name = NameOf(movie) return name, "enum"