HazyResearch / ddlog

Compiler for writing DeepDive applications in a Datalog-like language — ⚠️🚧🛑 REPO MOVED TO DEEPDIVE 👇🏿
https://github.com/HazyResearch/deepdive/tree/master/compiler/ddlog
19 stars 4 forks source link

"create view" support #62

Closed xiaoling closed 9 years ago

xiaoling commented 9 years ago

Is it possible to create a view instead of a table in ddlog?

In my settings, an extractor needs document-level features. So I created a document table, which basically groups sentences from the sentence table. Unfortunately, the sentence table is ~200g large. In fact, all I need is just a view, which can save a lot of space here.

netj commented 9 years ago

If you omit the schema declaration, and only have the rule for grouping them, you'll get a view. This should be documented clearly.

xiaoling commented 9 years ago

Thanks! A quick test confirms that it works.