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
5 stars 2 forks source link

AGROVOC_CACHE extended context labels are blank -- sometimes #3190 #460

Closed elrayle closed 2 years ago

elrayle commented 2 years ago

The extended context labels are blank sometimes and sometimes present. Need to explore whether this is happening on the QA side or cache side.

The following query has a mix of blank and present labels for both broader and narrower.

https://lookup.ld4l.org/authorities/search/linked_data/agrovoc_ld4l_cache?q=milk%20fat%20yield&maxRecords=4&context=true

For this query, all the extended context labels are blank.

https://lookup.ld4l.org/authorities/search/linked_data/agrovoc_ld4l_cache?q=milk&maxRecords=4&context=true

elrayle commented 2 years ago

Data from the cache...

curl -L -D - -H 'Accept: application/n-triples' 'http://services.ld4l.org/ld4l_services/agrovoc_batch.jsp?query=milk&maxRecords=4&startRecord=1&lang=en'

In this case, I see the <subject_uri><narrower><object_uri> triple, but there are 0 triples with <object_uri> as the subject.

curl -L -D - -H 'Accept: application/n-triples' 'http://services.ld4l.org/ld4l_services/agrovoc_batch.jsp?query=milk%20fat%20yield&maxRecords=4&startRecord=1&lang=en'

With this one, I can see what is happening. If the broader or narrower term is also a result of the search, then the label is in the graph and QA uses it to complete the extended context.

eichmann commented 2 years ago

payload construct didn't include picking up the bt/nt prefLabel.

elrayle commented 2 years ago

Looks good! Thanks