Skip to content

Commit

Permalink
Merge pull request #62 from weso/add_benchmark_notebook
Browse files Browse the repository at this point in the history
Add benchmark notebook
  • Loading branch information
alejgh committed Jun 7, 2020
2 parents bc8a821 + b23df4b commit 7d62c41
Show file tree
Hide file tree
Showing 7 changed files with 2,930 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ secret.py

# notebook checkpoints
.ipynb_checkpoints

# editor
.vscode

# Berlin sparql benchmarks tool
bsbmtools-0.2
1 change: 1 addition & 0 deletions hercules_sync/triplestore/triple_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def is_literal(self):
def _datatype_to_wdiobject(self, **kwargs) -> WDBaseDataType:
if str(self.datatype) not in datatype2wdiobject:
logger.warning("Datatype %s is not supported, defaulting to string...", self.datatype)
self.content = "" if self.content is None else self.content
return WDString(value=self.content, **kwargs)
return datatype2wdiobject[str(self.datatype)](self.content, **kwargs)

Expand Down
Loading

0 comments on commit 7d62c41

Please sign in to comment.