Skip to content

Commit

Permalink
Merge pull request #17 from abrisse/develop
Browse files Browse the repository at this point in the history
SPARQL::Grammar.valid? now returns true when the query is valid
  • Loading branch information
gkellogg committed Oct 2, 2014
2 parents b40c33b + 4cfd3c4 commit b7b7873
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sparql/grammar/parser11.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,7 @@ def initialize(input = nil, options = {}, &block)
# @return [Boolean]
def valid?
parse
true
rescue Error
false
end
Expand Down

0 comments on commit b7b7873

Please sign in to comment.