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