-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
404 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
blank nodes: | ||
- we have an id | ||
- need t be able to tell if a given id is a blank node | ||
|
||
indexes: | ||
- we have an index num | ||
- we need to be able to tell if this index num is covered | ||
- need to find the layer this index num is in | ||
- need to find up to what index num each layer goes | ||
- index_id = {l=layer_for(index_num);(index_num-l.parent.max_index)+l.num_predicates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
pub struct BlankNodes; | ||
|
||
impl BlankNodes { | ||
pub fn is_blank_node(&self, id: usize) -> bool { | ||
false | ||
} | ||
} | ||
|
||
pub struct Indexes; | ||
|
||
impl Indexes { | ||
pub fn max_index(&self) -> usize { | ||
0 | ||
} | ||
pub fn id_for_index(&self, index: usize) -> Option<u64> { | ||
None | ||
} | ||
|
||
pub fn index_for_id(&self, id: u64) -> Option<usize> { | ||
None | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.