Skip to content

Commit

Permalink
This commit could solve the sep_dot ISSUE #28, with these two cases:
Browse files Browse the repository at this point in the history
1.  sparql = "SELECT DISTINCT ?uri WHERE { res:Area_51 dbo:location ?uri . ?uri dbo:country res:United_States. }"
    encoded = "SELECT DISTINCT var_uri WHERE  brack_open  dbr_Area_51 dbo_location var_uri sep_dot var_uri dbo_country dbr_United_States sep_dot brack_close"

2.  sparql = "select ?x where { dbr_Bandon_A.F.C. dbo_ceo ?x }"
    encoded = "select var_x where  brack_open  dbr_Bandon_A.F.C. dbo_ceo var_x  brack_close"
  • Loading branch information
BaiBlanc committed Jun 30, 2020
1 parent 3715f47 commit acfa73d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ def strip_brackets(s):
['(', ' attr_open '],
[') ', ')', ' attr_close '],
['{', ' brack_open '],
['. }', ' sep_dot brack_close '],
['}', ' brack_close '],
[' . ', ' sep_dot '],
['. ', ' sep_dot '],
['?', 'var_'],
['*', 'wildcard'],
[' <= ', ' math_leq '],
Expand Down

0 comments on commit acfa73d

Please sign in to comment.