dice-group / FOX

Federated Knowledge Extraction Framework
GNU Affero General Public License v3.0
189 stars 51 forks source link

No response with following request #19

Closed yamalight closed 8 years ago

yamalight commented 8 years ago

Request body:

{ input: ' Community and culture, Philharmonic orchestra of Mexico City will evoke Sibelius and Scriabin Image courtesy of organización Editorial Mexicana, June 25, 2015 Mexico CITY, mexico .- Pieces by Jean Sibelius (1865-1957), Alexander Scriabin (1872-1915) and Carl Nielsen (1865-1931), will be executed this Saturday and Sunday by the Philharmonic Orchestra of the City of Mexico (OFCM), at the end of the second segment of the Season 2015. With the participation of pianist Gonzalo Gutierrez and under the direction of maestro José Areán, the group will offer a pair of concerts at the Auditorio Blas Galindo of the National Center of Arts (Cenart), reported the Secretariat of Culture of Mexico City. The program includes "Waltz triste", by the Finnish composer Jean Sibelius, "Symphony No. 5", the Danish Carl Nielsen, and accompanied by the orchestra, Gonzalo Gutiérrez construed "Prometheus-The poem of fire", the Russian Alexander Scriabin. According to Gutierrez, "Prometheus harmonically it is a piece of very risky, the concern it is not even set melodies of the traditional way, but that he is going permutando a chord with the that build a lot of things that happen between the piano and the orchestra. He pointed out that "Prometheus-The poem of fire", premiered in Moscow on march 2, 1911, is not, strictly speaking, a piece for piano, and its interpretation will be integrated organically to the Philharmonic, where it will merge with the strings and woods in an orchestral texture. The pianist mexican have been presented at various venues such as the Tokyo Opera City Recital Hall, the New York Americas Society, the Boston University Concert Hall and the Palace of Fine Arts, among many other venues both national and international. Notimex/ AM Rights Reserved organización Editorial Mexicana S. A. de C. V. ',
  type: 'text',
  task: 'ner',
  output: 'JSON-LD' }

Content-type is set to application/json. Response body is empty, but statusCode is 200,

renespeck commented 8 years ago

Hi,

thanks for the report.

Are you sure that you sent a valid json?

I use that as test.json:

{
    "input": "Community and culture, Philharmonic orchestra of Mexico City will evoke Sibelius and Scriabin Image courtesy of organización Editorial Mexicana, June 25, 2015 Mexico CITY, mexico .- Pieces by Jean Sibelius (1865-1957), Alexander Scriabin (1872-1915) and Carl Nielsen (1865-1931), will be executed this Saturday and Sunday by the Philharmonic Orchestra of the City of Mexico (OFCM), at the end of the second segment of the Season 2015. With the participation of pianist Gonzalo Gutierrez and under the direction of maestro José Areán, the group will offer a pair of concerts at the Auditorio Blas Galindo of the National Center of Arts (Cenart), reported the Secretariat of Culture of Mexico City. The program includes \"Waltz triste\", by the Finnish composer Jean Sibelius, \"Symphony No. 5\", the Danish Carl Nielsen, and accompanied by the orchestra, Gonzalo Gutiérrez construed \"Prometheus-The poem of fire\", the Russian Alexander Scriabin. According to Gutierrez, \"Prometheus harmonically it is a piece of very risky, the concern it is not even set melodies of the traditional way, but that he is going permutando a chord with the that build a lot of things that happen between the piano and the orchestra. He pointed out that \"Prometheus-The poem of fire\", premiered in Moscow on march 2, 1911, is not, strictly speaking, a piece for piano, and its interpretation will be integrated organically to the Philharmonic, where it will merge with the strings and woods in an orchestral texture. The pianist mexican have been presented at various venues such as the Tokyo Opera City Recital Hall, the New York Americas Society, the Boston University Concert Hall and the Palace of Fine Arts, among many other venues both national and international. Notimex/ AM Rights Reserved organización Editorial Mexicana S. A. de C. V.",
    "type": "text",
    "task": "ner",
    "output": "JSON-LD"
} 

and curl:

curl -v -d @test.json -H "Content-Type: application/json" -X POST http://fox-demo.aksw.org/call/ner/entities > response.txt

I hope that helps.

yamalight commented 8 years ago

ha, that's true. curl request works just fine. will try to figure out why node.js request breaks. thanks!

yamalight commented 8 years ago

@renespeck here's an interesting thing - if I change request URL to "http://fox-demo.aksw.org/api" - the exact same request works just fine. but with "http://fox-demo.aksw.org/call/ner/entities" it gives out empty body. I'm confused

renespeck commented 8 years ago

That are different endpoints. http://fox-demo.aksw.org/api gives you a JSON object

{
  "input": "",
  "output": "",
  "log": ""
}

'output' is an encoded String containing the serialization format you chose e.g. xml/rdf.

http://fox-demo.aksw.org/call/ner/entities gives you the serialization format directly , not a JSON format.

yamalight commented 8 years ago

yeah, but the request format is same, right? that's what puzzles me - using one url it works, using other - fails.

renespeck commented 8 years ago

The request format is the same, yes.

yamalight commented 8 years ago

then there's definitely a bug in /call/ner/entities endpoint :stuck_out_tongue: