Skip to content

Commit

Permalink
The imdb dataset is renamed to jobrdf
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienDavat committed Jan 10, 2022
1 parent 797870d commit 72cde10
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
File renamed without changes.
12 changes: 6 additions & 6 deletions sage/database/voids/void.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ def count_distinct_objects(graph: str, predicate: str) -> int:
return distinct_objects[graph][predicate]


cardinalities['http://localhost:8080/sparql/imdb'] = load_csv(
'sage/database/voids/imdb/cardinalities.csv'
cardinalities['http://localhost:8080/sparql/jobrdf'] = load_csv(
'sage/database/voids/jobrdf/cardinalities.csv'
)
cardinalities['http://localhost:8080/sparql/watdiv10M'] = load_csv(
'sage/database/voids/watdiv10M/cardinalities.csv'
)

distinct_subjects['http://localhost:8080/sparql/imdb'] = load_csv(
'sage/database/voids/imdb/distinct_subjects.csv'
distinct_subjects['http://localhost:8080/sparql/jobrdf'] = load_csv(
'sage/database/voids/jobrdf/distinct_subjects.csv'
)
distinct_subjects['http://localhost:8080/sparql/watdiv10M'] = load_csv(
'sage/database/voids/watdiv10M/distinct_subjects.csv'
)

distinct_objects['http://localhost:8080/sparql/imdb'] = load_csv(
'sage/database/voids/imdb/distinct_objects.csv'
distinct_objects['http://localhost:8080/sparql/jobrdf'] = load_csv(
'sage/database/voids/jobrdf/distinct_objects.csv'
)
distinct_objects['http://localhost:8080/sparql/watdiv10M'] = load_csv(
'sage/database/voids/watdiv10M/distinct_objects.csv'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def visit_scan(
selectivity = cardinality / distinct_values
output_size = input_size * selectivity
print(
f'C_out({node._pattern}) = ' +
f'C_out({node._pattern}, runtime=False) = ' +
f'{input_size} x ({cardinality} / {distinct_values}) = ' +
f'{output_size}'
)
Expand All @@ -122,7 +122,7 @@ def visit_scan(
selectivity = cardinality / stages
output_size = input_size * selectivity
print(
f'C_out({node._pattern}) = ' +
f'C_out({node._pattern}, runtime=True) = ' +
f'{input_size} x ({cardinality} / {stages}) = {output_size}'
)
context['input-size'] = output_size
Expand Down

0 comments on commit 72cde10

Please sign in to comment.