LD4P / qa_server

A rails engine with questioning authority gem installed to serve as an authority search server with normalized results.
Apache License 2.0
6 stars 3 forks source link

OCLCFAST data with \ in label causes load error in QA #462

Closed elrayle closed 2 years ago

elrayle commented 2 years ago

https://lookup.ld4l.org/authorities/search/linked_data/oclcfast_ld4l_cache?q=hawkins%20brown&maxRecords=1

Error:

{
  "errors": "Internal Server Error - Search query hawkins brown unsuccessful for authority OCLCFAST_LD4L_CACHE"
}

Error in QA log:

RDF::Graph#load failure: exception=#<RDF::ReaderError: Expected object (found: "\"Hawkins\\Brown\" .")>

Raw Data from cache (just label triples):

<http://id.worldcat.org/fast/785246> <http://schema.org/name> "Hawkins\Brown" .
<http://id.worldcat.org/fast/785246> <http://www.w3.org/2004/02/skos/core#prefLabel> "Hawkins\Brown" .

This should have the \ escaped as "Hawkins\\Brown". Dave plans to reindex to see if recent indexing fixes will fix this too.

elrayle commented 2 years ago

Closing... This looks like it is fixed.