Skip to content

Instantly share code, notes, and snippets.

@karsai5
Created March 18, 2016 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karsai5/4514f6201ca21f9941af to your computer and use it in GitHub Desktop.
Save karsai5/4514f6201ca21f9941af to your computer and use it in GitHub Desktop.
% Week 2 Tutorial, PhotoVide-Shop
%
% Shows the parent child relationship between categories
% category(parent, child)
%
% Represents how many items are available in a category
% category_entries(category, number_of_items)
category(catalog, video).
category(catalog, photography).
category(photography, cameras).
category(photography, lenses).
category(cameras, digital).
category(cameras, film).
category(digital, dslr).
category(digital, mirrorless).
category_entries(dslr, 247).
category_entries(mirrorless, 187).
category(film, thirtyfivemm).
category(film, instant).
category(thirtyfivemm, slr).
category(thirtyfivemm, rangefinder).
category_entries(slr, 4).
category_entries(rangefinder, 12).
category(lenses, slr_lenses).
category(lenses, rangefinder_lenses).
category_entries(slr_lenses, 891).
category_entries(rangefinder_lenses, 76).
category(video, camcorders).
category(video, aerial).
category_entries(aerial, 173).
category(camcorders, consumer).
category(camcorders, pro).
category(camcorders, sportsandaction).
category_entries(consumer, 85).
category_entries(pro, 158).
category_entries(sportsandaction, 132).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment