A sample CLI program for querying the UofT API Nikel: https://nikel.ml
Using the library Nikel-rs to access the API and the library Rustyline for line-editing and history
Enter commands into the prompt, commands take the form:
[type] [attribute]:(operator)[value],[...]
Note: The application trims strings, so feel free to add whitespace
where [attribute]
is any attribute from the corresponding schema
where (operator)
is optional and is any of the operators described at: https://docs.nikel.ml/docs/query_guide#advanced-queries
where [type]
is any of:
- courses, classes
- textbooks, tb
- exams
- eval
- food
- services, serv
- parking, park
courses code:csc108,campus:mis
Query all courses with
csc108
in thecode
(e.g.CSC108H1
) andmis
in thecampus
(e.g.mississauga
)
tb title:algebra, price:>100
Query all algebra textbooks with a price over 100 dollars
food campus:george,tags:coffee
Query all restuarants downtown that serve coffee
food campus:george, tags: coffee, tags:snacks, address: bloor
Query all restuarants downtown that serve coffee, snacks, and are on Bloor street
food coordinates.latitude:>43
Query all restuarants with a latitude above 43
food coordinates.latitude: >=43, coordinates.latitude: <=44, tags: pizza
Query all pizza locations in [43, 44] degrees of latitude