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