lib/active_rdf/lib/active_rdf/queryengine/query.rb
# adds regular expression filter on one variable
# variable is Ruby symbol that appears in select/where clause, regex is sparql 
# regular expression
adds regular expression filter on one variable
variable is Ruby symbol that appears in select/where clause, regex is sparql
regular expression
adds regular expression filter on one variable variable is Ruby symbol that appears in select / where clause regex is sparql regular expression
def filter_regexp(variable, regexp)
    raise(ActiveRdfError, "variable must be a symbol") unless variable.is_a? Symbol
    filter "regex(str(?#{variable}),'#{regexp}','i')"
  end
def filter_regexp ( variable , regexp ) raise ( ActiveRdfError , "variable must be a symbol" ) unless variable . is_a? Symbol filter "regex(str(?#{variable}),'#{regexp}','i')" end
adds regular expression filter on one variable
variable is Ruby symbol that appears in select/where clause, regex is sparql
regular expression
adds regular expression filter on one variable variable is Ruby symbol that appears in select / where clause regex is sparql regular expression
# raise(ActiveRdfError, "regexp must be a ruby regexp") unless regexp.is_a? Regexp # filter "regex(str(?#{variable}), #{regexp.inspect.gsub('/','"')})"
variable
regexp