odalic / sti

An API and enhancements to the Semantic Table Interpretation
Other
3 stars 0 forks source link

Empty language tag causes issues in the search query #470

Closed tomas-knap closed 7 years ago

tomas-knap commented 7 years ago

SparqlProxyCore, createExactMatchQueryForClasses(), when there is no language tag specified for the given knowledge base, it generates query as:

SELECT DISTINCT  ?subject
WHERE
  { { SELECT DISTINCT  ?subject
      WHERE
        {   { ?subject  rdfs:label  "\"Nuts1-test02\"@"}
          UNION
            { ?subject  skos:prefLabel  "\"Nuts1-test02\"@"}}
    }
    { SELECT DISTINCT  ?subject
      WHERE
        {   { ?subject  rdf:type  skos:Concept}
          UNION
            { ?subject  rdf:type  rdfs:Class}
          UNION
            { ?subject  rdf:type  owl:Class}}
    }
  }
LIMIT   10

which is wrong