You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When somebody wants to run searchTerms for a literal prefix that includes (part of) its datatype, they should specify the bracket(s). However, removing the bracket(s) will not return suggestions.
On the other hand, calling searchTriples for a literal with its bracketed datatype, you won't get back results. Calling with no brackets is the only way to get results:
I think there should results in all cases in order to avoid this inconsistency. What do you think @RubenVerborgh ?
I can push at #37 , since I noticed during applying requested changes there.
The text was updated successfully, but these errors were encountered:
Hmm, the assumption is that the library takes a valid RDF Term in the (old) N3.js representation. No validation is performed, so the behavior of invalid terms is undefined.
If we can fix the above as part of #37, I don't mind, but I wouldn't spend any CPU cycles on validation.
When somebody wants to run searchTerms for a literal prefix that includes (part of) its datatype, they should specify the bracket(s). However, removing the bracket(s) will not return suggestions.
On the other hand, calling searchTriples for a literal with its bracketed datatype, you won't get back results. Calling with no brackets is the only way to get results:
doc.searchTerms({prefix: '"a"^^<ab', position: 'object'})
doc.searchTerms({prefix: '"a"^^ab', position: 'object'})
doc.searchTriples(null, null, '"a"^^<abc>')
doc.searchTriples(null, null, '"a"^^abc')
I think there should results in all cases in order to avoid this inconsistency. What do you think @RubenVerborgh ?
I can push at #37 , since I noticed during applying requested changes there.
The text was updated successfully, but these errors were encountered: