3 ms·
Missed opportunity to encode this as s-expressions or a Prolog database!
by nerdponx 4y ago
Missed opportunity to encode this as s-expressions or a Prolog database!
- cyberbanjo 4y agoI don't know enough Prolog to know why you'd want that (please share), but SWI prolog has a SQL interface to run prolog over SQL data, and the author has released it as CSV and JSON, I know SQLite lets you import CSV data, probably other databases do. JSON to s-expr's should be convertable with simple search-and-replace, or you could just load the file with a json library with reader macros so it loads the data into the appropriate data structures, I'm fairly sure both common lisp and clojure let you read jsons directly like that.
- rscho 4y agoSWI is full of features and does JSON and SQL on its own very easily.
- abiloe 4y agoIf you view source, it is encoded in an s-expression equivalent.