Skip to content

Inconsistency while searching literal terms and triples with literals #38

@dinikolop

Description

@dinikolop

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:

Returns results?
doc.searchTerms({prefix: '"a"^^<ab', position: 'object'}) Yes
doc.searchTerms({prefix: '"a"^^ab', position: 'object'}) No
doc.searchTriples(null, null, '"a"^^<abc>') No
doc.searchTriples(null, null, '"a"^^abc') Yes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions