Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-884

prefixMatch does not work in full text search

    Details

      Description

      When I try to use the magic predicate <http://www.bigdata.com/rdf/search#prefixMatch> in a full text search, my query fails with this error in the log:

      java.util.concurrent.ExecutionException: java.lang.Exception: java.lang.RuntimeException: Unknown search predicate: http://www.bigdata.com/rdf/search#prefixMatch

      prefixMatch seems like it should be included in the set of searchUris in this class, but it is not:

      http://bigdata.svn.sourceforge.net/viewvc/bigdata/branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/java/com/bigdata/rdf/sparql/ast/eval/ASTSearchOptimizer.java?revision=7813&view=markup

        Activity

        Hide
        bryanthompson bryanthompson added a comment -

        It seems that the bds:prefixMatch has been replaced by a wildcard. You would now write this as:

        # Search query.
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        
        SELECT ?subj ?label 
        WHERE {
              ?label bds:search "mi*" .
              ?label bds:relevance ?cosine .
              ?subj ?p ?label .
        }
        

        I have marked this as deprecated on the BDS interface, added a reference to this ticket, and added a reference to a correct example of prefix search on the wiki [1]. I also updated the wiki page from bd: to bds:, which is the default namespace that is recognized for the search magic predicates (if you declare the namespace explicitly then it does not matter, but bds: is implicitly declared for search if it is used in query). Added some structure to the wiki page.

        I have also updated the BD and BDS classes to reflect the movement of the search predicates from the BD class into the BDS class.

        Thanks for bringing up this inconsistency.

        Committed revision r7814.

        [1] https://sourceforge.net/apps/mediawiki/bigdata/index.php?title=FullTextSearch (wiki page for search)

        Show
        bryanthompson bryanthompson added a comment - It seems that the bds:prefixMatch has been replaced by a wildcard. You would now write this as: # Search query. PREFIX bds: <http://www.bigdata.com/rdf/search#> SELECT ?subj ?label WHERE { ?label bds:search "mi*" . ?label bds:relevance ?cosine . ?subj ?p ?label . } I have marked this as deprecated on the BDS interface, added a reference to this ticket, and added a reference to a correct example of prefix search on the wiki [1] . I also updated the wiki page from bd: to bds:, which is the default namespace that is recognized for the search magic predicates (if you declare the namespace explicitly then it does not matter, but bds: is implicitly declared for search if it is used in query). Added some structure to the wiki page. I have also updated the BD and BDS classes to reflect the movement of the search predicates from the BD class into the BDS class. Thanks for bringing up this inconsistency. Committed revision r7814. [1] https://sourceforge.net/apps/mediawiki/bigdata/index.php?title=FullTextSearch (wiki page for search)

          People

          • Assignee:
            Unassigned
            Reporter:
            balhoff balhoff
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: