lib/active_rdf/lib/active_rdf/queryengine/query.rb
def lang variable, tag, exact=false
    if exact
      filter "lang(?#{variable} = '#{tag}'"
    else
      filter "regex(lang(?#{variable}), '^#{tag.gsub(/_.*/,'')}$')"
    end
  end
# filter variable on specified language tag, e.g. lang(:o, 'en')
# optionally matches exactly on language dialect, otherwise only 
# language-specifier is considered
filter variable on specified language tag, e.g. lang(:o, 'en')
optionally matches exactly on language dialect, otherwise only
language-specifier is considered
filter variable on specified language tag e . g . lang ( : o ' en ' ) optionally matches exactly on language dialect otherwise only language - specifier is considered
def lang variable, tag, exact=false
    if exact
      filter "lang(?#{variable} = '#{tag}'"
    else
      filter "regex(lang(?#{variable}), '^#{tag.gsub(/_.*/,'')}$')"
    end
  end
def lang variable , tag , exact = false if exact filter "lang(?#{variable} = '#{tag}'" else filter "regex(lang(?#{variable}), '^#{tag.gsub(/_.*/,'')}$')" end end
filter variable on specified language tag, e.g.
filter variable on specified language tag e . g .
variable
tag
exact