LD4P / rdf2marc

A Bibframe RDF to MARC converter for use within the Sinopia ecosystem.
2 stars 1 forks source link

Convert FAST event_name to MARC 647 #120

Closed NancyL closed 3 years ago

NancyL commented 3 years ago

Type of change New mapping

Example RDF records https://api.stage.sinopia.io/resource/3eb5f480-60d6-4732-8daf-02d8d6f26eb7 (Instance) https://api.stage.sinopia.io/resource/7b03cc32-d121-490e-bae6-8ba51ff8e95a (work)

Resource template Which resource template does this apply to? In which Sinopia environment (development, stage, production)? stage: pcc:bf2:Monograph:Work/ld4p:RT:bf2:Monograph:Work

Expected MARC What MARC did you expect to receive?

For OCLC FAST event_name 647 #7 World War (1939-1945) $2 fast $0 http://id.worldcat.org/fast/1180924

Actual MARC What MARC did you actually receive (if mapped incorrectly)?

It did not convert at all.

Also Event_name lookup is not working in stage (it does in production) so I can't provide an example in this record

Expected mapping logic Please describe the logic of the mapping. bf:subject lookup to OCLC FAST event_name converts to:

647 ##7 $a label from lookup $2 fast $0 URI for lookup

This completes the FAST headings currently available in Sinopia and the only place to add geographic terms in that vocabulary.

jcoyne commented 3 years ago

@NancyL I don't see that fast URI (http://id.worldcat.org/fast/1180924) associated with either the work or instance that you provided:

$ curl -s https://api.stage.sinopia.io/resource/7b03cc32-d121-490e-bae6-8ba51ff8e95a | grep http://id.worldcat.org/fast/1180924
$ curl -s https://api.stage.sinopia.io/resource/3eb5f480-60d6-4732-8daf-02d8d6f26eb7 | grep http://id.worldcat.org/fast/1180924
NancyL commented 3 years ago

Ah, that is another part of the problem. The lookup to FAST event_name does not seem to be working. I need to put in an issue under the editor

michelleif commented 3 years ago

FAST lookup to OCLC cache is working; direct is not working (that explains why it's working on PRD where it's configured as cache).

I have a question in to QA team about why direct lookup isn't working.

@NancyL in the meantime if you want to change the template to use the cache version of the Event lookup then you could add the Event URI to the resource above so developers can proceed.

NancyL commented 3 years ago

Done in the LD4P template on dev and pcc template in stage. Do you need it anywhere else?

michelleif commented 3 years ago

in this resource on stage https://api.stage.sinopia.io/resource/7b03cc32-d121-490e-bae6-8ba51ff8e95a please lookup and add the FAST heading http://id.worldcat.org/fast/1180924 to the resource and save so that @jcoyne has data to work with thanks

NancyL commented 3 years ago

so the cache claims it doesn't have this particular heading, but I put in a similar one