Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-606

Language prefixes are added to non TextConstraint in queries for the Entityhub

    XMLWordPrintableJSON

Details

    Description

      Currently search terms for the

      {all-language} container are added for non TextConstraints of the SolrYard implementation. This is best described by this example

      A constraint for "rdf:type" including "db-ont:Organisation" is currently encoded like:

      (
      ((_!@/rdf\:type/:http\://dbpedia.org/ontology/Organisation)) OR
      ((ref/rdf\:type/:http\://dbpedia.org/ontology/Organisation))
      )

      The expected query would be

      (((ref/rdf\:type/:http\://dbpedia.org/ontology/Organisation)))

      While this does not have practical implications - because there are no textual values for the "rdf:type" field and even if it would be unlikely to contain the URI as text - this adds unnecessary query term that do have an impact on the performance - because of that "Priority: Minor"

      To fix this the "org.apache.stanbol.entityhub.yard.solr.impl.queryencoders.LangEncoder" needs to consider the data type of parsed IndexFields and only add the default lanauge (the {all-language}

      container) if the dataType is "text".

      Attachments

        Activity

          People

            rwesten Rupert Westenthaler
            rwesten Rupert Westenthaler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: