Skip to content

Commit acfa73d

Browse files
committed
This commit could solve the sep_dot ISSUE #28, with these two cases:
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"
1 parent 3715f47 commit acfa73d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ def strip_brackets(s):
9191
['(', ' attr_open '],
9292
[') ', ')', ' attr_close '],
9393
['{', ' brack_open '],
94+
['. }', ' sep_dot brack_close '],
9495
['}', ' brack_close '],
9596
[' . ', ' sep_dot '],
96-
['. ', ' sep_dot '],
9797
['?', 'var_'],
9898
['*', 'wildcard'],
9999
[' <= ', ' math_leq '],

0 commit comments

Comments
 (0)