CINERGI / Foundry

Other
0 stars 1 forks source link

Form Pipeline. Missing Source #32

Open valentinedwv opened 6 years ago

valentinedwv commented 6 years ago

In the JSON submitted by the harvester, some source information is added. Trying to figure out if this 'source' needs to be added, or if it's a side effect of the submittal method (want this for deleting 'test' records)

"_source":{ "src_source_type_s":"WAF", "src_source_uri_s":"WAF:http://132.249.238.151:8080/cinergi/waf/NCEI/", "src_source_name_s":"NCEI Processed", "src_uri_s":"http://132.249.238.151:8080/cinergi/waf/NCEI/noaa-tree-13831.xml",

bozyurt commented 6 years ago

I don't know anything about the _source field. It is definitely not added by the harvester/pipeline.

Burak

On 11/14/2017 01:05 PM, David Valentine wrote:

In the JSON submitted by the harvester, some source information is added. Trying to figure out if this 'source' needs to be added, or if it's a side effect of the submittal method (want this for deleting 'test' records)

"_source":{ "src_source_type_s":"WAF", "src_source_uri_s":"WAF:http://132.249.238.151:8080/cinergi/waf/NCEI/", "src_source_name_s":"NCEI Processed", "src_uri_s":"http://132.249.238.151:8080/cinergi/waf/NCEI/noaa-tree-13831.xml",

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CINERGI/Foundry/issues/32, or mute the thread https://github.com/notifications/unsubscribe-auth/AHLczLSiikEEG3uWZ0HTyInwfgC59Uc_ks5s2gChgaJpZM4Qd_ip.

-- I. Burak Ozyurt PhD Project Scientist University of California, San Diego 9500 Gilman Drive, M/C 0608 La Jolla, CA 92093-0608

valentinedwv commented 6 years ago

Where is the code that pushes the XML to the geoportal?

bozyurt commented 6 years ago

ProcessingResource.java web service after creating a document wrapper from the form submission ingests it , trigger pipeline processing and sends the docId, sourceId of the processing document back to the client (geoportal in this case) to poll for the document.

I am guessing Tom uses

DocumentResource.getDocumentById() web service call

translating to

http://132.249.238.151:8080/foundry/api/cinergi/docs/id/{docId}

Burak

On 11/14/2017 03:14 PM, David Valentine wrote:

Where is the code that pushes the XML to the geoportal?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CINERGI/Foundry/issues/32#issuecomment-344431953, or mute the thread https://github.com/notifications/unsubscribe-auth/AHLczGYGytLDCdama4k3PPkoP-JAS6I4ks5s2h7RgaJpZM4Qd_ip.

-- I. Burak Ozyurt PhD Project Scientist University of California, San Diego 9500 Gilman Drive, M/C 0608 La Jolla, CA 92093-0608