Following is the ontology file that each group will be using for their project. This file should be the first argument to your program (the second argument is the file with the query in it). Note that source relations with the "_" character break the parser so such this character has been removed. Thanks to Chris Shreve for compiling this file.
types Title, Movie-title, Book-title, Music-title, Url, Person-name, Role, Year, City, State, Theatre, Time, Format, Store, Price, Address, Map, Author, Publisher, Recording-artist,Song-name, Rating, Movie-category, Duration, Studio, Color-type, Oscar-category, Movie-Role, Text-review. //Relations relation actor-of(Movie-title, Person-name, Role). relation shows-in(Movie-title, City, State, Theatre, Time). relation year-of(Title, Year). relation review-of(Movie-title, Url). relation text-review-of(Movie-title, Text-review). relation color(Movie-title, Color-type). relation director-of(Movie-title, Person-name). relation producer-of(Movie-title, Person-name). relation soundtrack-of(Movie-title, Music-title). relation plays-on(Music-title, Recording-artist). relation song-on(Music-title, Song-name). relation book-of(Movie-title, Book-title). relation author-of(Book-title, Person-name). relation publisher-of(Book-title, Publisher). relation website(Movie-title, Url). relation address-of(Theatre, Address). relation map-of(Address, Map). relation price-of(Title, Store, Format, Price). relation address-info(Address, City, State). relation movieStudio(Movie-title,Studio). relation movieInfo(Movie-title, Rating, Duration, Movie-category). relation oscar(Oscar-category, Person-name, Movie-title, Year). relation role-in-movie(Movie-title, Person-name, Movie-Role). relation Movie-studio(Movie-title, Studio). //Source Descriptions //Team House Blend CurrentBoxOffice( $T, A, D, P, R ) => actor-of( T, A, Role ); director-of( T, D ); producer-of( T, P ); review-of( T, R ). Showtimes( $C, $S, T, Th, Adr, Tm ) => shows-in( T, C, S, Th, Tm ); address-of( Th, Adr ); address-info( Adr, C, S ). CDUActor( $PN, T, Y, "Video Universe", F, PR ) => actor-of( T, PN, R ); year-of( T, Y ); price-of( T, "Video Universe", F, PR ). CDWTitle( $T, "CD World", F, PR ) => price-of( T, "CD World", F, PR ). MapBlast( $A, $C, $S, M ) => map-of( A, M ) ; address-info( A, C, S ). MLRecmod( T, R, F, "M & L Associates", P ) => plays-on( T, R ) ; price-of( X, "M & L Associates", F, P ). //Hedgehogs in the mist AllMusicArtist($Artist,Title,Year) => year-of(Title,Year); plays-on(Title,Artist). NRVTitle($Title,Director,Actor,"New Releases Video","VHS",Price,Year) => actor-of(Title, Actor, Role); year-of(Title, Year); director-of(Title, Director); price-of(Title, "New Releases Video", "VHS", Price). BlockbusterVideoTitle($Title,Year) => year-of(Title,Year). BookSiteTitle($Title,Author,"Rutherford BookSite",Format,Price,Year) => author-of(Title,Author); year-of(Title, Year); price-of(Title,"Rutherford BookSite",Format,Price). BnNTitle($Title,Author,Year,"Barnes and Noble",Format,Price) => author-of(Title,Author); year-of(Title,Year); price-of(Title,"Barnes and Noble",Format,Price). DigitalCityTheatre($Theatre, Address, City, State) => address-of(Theatre, Address); address-info(Address, City, State). //Team AI EOnlineCast($Title, Person-name) => actor-of($Title, Person-name, Role). EOnlineMovie($Title, Person-name, Year, Runtime, Rating, URL) => director-of(Title, Person-name); movieInfo(Title, Rating, Runtime, Movie-category); year-of(Title, Year); review-of(Title, URL). VideoFlicks($Title, Year, Person-name, Color-type ) => year-of(Title, Year); color(Title, Color-type); actor-of( Title, Person-name, Role ). VideoFlicksPrice( $Title, $Year, Price, Format ) => price-of( Title, Store, Format, Price ); year-of(Title, Year). MrShowBiz($Title, $Year, Url) => review-of(Title, Url); year-of(Title, Year). //Superfinder InternetMovieDB($Person-name, Movie-title, Year, Role) => actor-of(Movie-title, Person-name, Role); year-of(Movie-title, Year). SiskelEbert($Movie-title,Url) => review-of(Movie-title,Url). BoxOfficeMag($Movie-title,Url) => review-of(Movie-title,Url). SeattleTimes($Movie-title,Url) => review-of(Movie-title,Url). SeattleTheatres($Movie-title,City,State,Theatre,Time) => shows-in(Movie-title,City,State,Theatre,Time). //The Heuristics AmazonArtist(Music-title,$Recording-artist,Year) => year-of(Music-title, Year); plays-on(Music-title, Recording-artist). AmazonAuthor(Book-title,$Author,Format,Year,Price,Store) => author-of(Book-title,Author); price-of(Book-title,Store,Format,Price); year-of(Book-title, Year). AmazonTitle($Book-title,Author,Format,Year,Price,Store) => author-of(Book-title,Author); price-of(Book-title,Store,Format,Price); year-of(Book-title, Year). PowellsPub(Book-title,$Publisher,Format,Price,Store) => publisher-of(Book-title,Publisher); price-of(Book-title,Store,Format,Price). CDConnection-Title($Music-title,Recording-artist,Year,Publisher,Store,Price,Format) => year-of(Music-title,Year); plays-on(Music-title, Recording-artist); publisher-of(Music-title, Publisher); price-of(Music-title,Store,Format,Price). BandN-Title($Book-title,Author,Format,Price,Store) => author-of(Book-title,Author); price-of(Book-title,Store,Format,Price). BandN-Author(Book-title,$Author,Format,Price,Store) => author-of(Book-title,Author); price-of(Book-title,Store,Format,Price). //The BJ Group CinemaniaAcademyAwards($Year, Category, Person, Movie) => oscar(Category, Person, Movie, Year). CinemaniaSearchPerson($Person, Movie, Role) => role-in-movie(Movie, Person, Role). Telerama($Title, $Year, url) => review-of(Title, url); year-of(Title, Year). SeattleSWFindTheater($Theater, City, State, Movie-Title, Rating, Time) => movieInfo(Movie-Title, Rating, Duration, Category); shows-in(Movie-Title, City, State, Theater, Time). NYCSWFindTheater($Theater, City, State, Movie-Title, Rating, Time) => movieInfo(Movie-Title, Rating, Duration, Category); shows-in(Movie-Title, City, State, Theater, Time). //iMIB UltimateMoviesStudio($Studio, URL ) => website( Movie-title, URL ); Movie-studio( Movie-title, Studio ). AllMoviePN($Person-name, Movie-title, Role, year) => actor-of(Movie-title, Person-name, Role); year-of(Movie-title, year). FilmTracksTitle($Movie-title, Url) => review-of( Movie-title, Url ). MovieTunesSong( $Song-name, Url ) => song-on(Music-title, Song-name); soundtrack-of(Movie-title, Music-title); website(Movie-title, Url). MovieTunesRecordingArtist( $Recording-artist, Url )=> plays-on(Music-title, Recording-artist); soundtrack-of(Movie-title, Music-title); website(Movie-title, Url). CDNowMovieId( $Movie-title, Music-title ) => soundtrack-of(Movie-title, Music-title). //Shabe Group MBAlbums($Artist, AlbumTitle) => plays-on(AlbumTitle, Artist). BkBBooks($Author, BookTitle) => author-of(BookTitle, Author). JMSheetMusic($Artist, BookTitle) => author-of(BookTitle, Artist). CRReviews($MovieName, Url) => review-of(MovieName, Url). MSAlbums($Artist, AlbumTitle) => plays-on(AlbumTitle, Artist). //PrimeTime Group ReelCom($Movie-title, Year, Person-name, Role) => year-of(Movie-title,Year); actor-of(Movie-title,Person-name, Role). MovieFinder($Movie-title, Year, Format) => year-of(Movie-title, Year); price-of(Movie-title, Store,Format, Price). TVGEN($Person-name,Movie-title,Year)=> actor-of(Movie-title,Person-name,Role); year-of(Movie-title,Year). HWOOD($City,$State,Movie-title,Address,Time,Map,Person-name) => shows-in(Movie-title,City,State,Theatre,Time); address-of(Theatre,Address); map-of(Address,Map); actor-of(Movie-title,Person-name,Role); year-of(Movie-title,"1998"). directors($Person-name, Movie-title, Year) => director-of(Movie-title, Person-name); Year-of(Movie-title, Year). toprentals (Title, Rating) => movieInfo(Title, Rating, Runtime, Movie-category).