samvera-labs / ldpath

Ruby parser for the LDPath language
http://marmotta.apache.org/ldpath/language.html
Other
9 stars 5 forks source link

Literal Type Test for [^^xsd:string] always returns 0 results #14

Open elrayle opened 5 years ago

elrayle commented 5 years ago

Description

Using [^^xsd:string] to limit all results to only string object values returns 0 results.

Expected behavior

The results should include strings but not other types.

Actual behavior

Returns 0 results

Test for this issue

Branch: https://github.com/samvera-labs/ldpath/tree/string_results_only

Test:
https://github.com/samvera-labs/ldpath/blob/string_results_only/spec/ldpath_program_spec.rb#L74

Branch Comparison: https://github.com/samvera-labs/ldpath/compare/string_results_only