Open fsasaki opened 9 years ago
I can reproduce this error.
@m1ci , @nilesh-c any update here?
The bug still occurs. I put it on the feature set for FREME 0.6. In the API tester I specified template id=2 and send this data:
@prefix dsp: <http://dublincore.org/dc-dsp#> .
@prefix schema: <http://schema.org/> .
@prefix olia: <http://purl.org/olia/olia.owl#> .
@prefix rutg: <http://rdfunit.aksw.org/data/generators#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rlog: <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/rlog#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix itsrdf: <http://www.w3.org/2005/11/its/rdf#> .
@prefix nif: <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#> .
@prefix rutp: <http://rdfunit.aksw.org/data/patterns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix oslc: <http://open-services.net/ns/core#> .
@prefix p: <http://127.0.0.1:9995/spotlight#> .
@prefix rut: <http://rdfunit.aksw.org/ns/core#> .
@prefix rutr: <http://rdfunit.aksw.org/data/results#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rutt: <http://rdfunit.aksw.org/data/tests#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix ruts: <http://rdfunit.aksw.org/data/testsuite#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
<http://freme-project.eu/#char=52,61>
a nif:Word , nif:RFC5147String ;
nif:anchorOf "Nastassja" ;
nif:beginIndex "52" ;
nif:endIndex "61" ;
nif:nextWord <http://freme-project.eu/#char=62,68> ;
nif:previousWord <http://freme-project.eu/#char=48,51> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> ;
itsrdf:taIdentRef <http://dbpedia.org/resource/Nastassja_Kinski> .
<http://freme-project.eu/#char=68,69>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "." ;
nif:beginIndex "68" ;
nif:endIndex "69" ;
nif:previousWord <http://freme-project.eu/#char=62,68> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> .
<http://freme-project.eu/#char=8,10>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "to" ;
nif:beginIndex "8" ;
nif:endIndex "10" ;
nif:nextWord <http://freme-project.eu/#char=11,17> ;
nif:previousWord <http://freme-project.eu/#char=0,7> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> .
<http://freme-project.eu/#char=100,134>
a nif:RFC5147String , nif:Sentence ;
nif:anchorOf "I watch them in Potsdam every day." ;
nif:beginIndex "100" ;
nif:endIndex "134" ;
nif:firstWord <http://freme-project.eu/#char=100,101> ;
nif:lastWord <http://freme-project.eu/#char=133,134> ;
nif:nextSentence <http://freme-project.eu/#char=70,99> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:word <http://freme-project.eu/#char=102,107> , <http://freme-project.eu/#char=130,133> , <http://freme-project.eu/#char=116,123> , <http://freme-project.eu/#char=113,115> , <http://freme-project.eu/#char=124,129> , <http://freme-project.eu/#char=108,112> .
<http://freme-project.eu/#char=19,22>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "the" ;
nif:beginIndex "19" ;
nif:endIndex "22" ;
nif:nextWord <http://freme-project.eu/#char=23,27> ;
nif:previousWord <http://freme-project.eu/#char=17,18> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> .
<http://freme-project.eu/#char=0,69>
a nif:RFC5147String , nif:Sentence ;
nif:anchorOf "Welcome to Berlin, the home of Marlene Dietrich and Nastassja Kinski." ;
nif:beginIndex "0" ;
nif:endIndex "69" ;
nif:firstWord <http://freme-project.eu/#char=0,7> ;
nif:lastWord <http://freme-project.eu/#char=68,69> ;
nif:previousSentence <http://freme-project.eu/#char=70,99> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:word <http://freme-project.eu/#char=48,51> , <http://freme-project.eu/#char=39,47> , <http://freme-project.eu/#char=62,68> , <http://freme-project.eu/#char=17,18> , <http://freme-project.eu/#char=52,61> , <http://freme-project.eu/#char=8,10> , <http://freme-project.eu/#char=28,30> , <http://freme-project.eu/#char=11,17> , <http://freme-project.eu/#char=31,38> , <http://freme-project.eu/#char=19,22> , <http://freme-project.eu/#char=23,27> .
<http://freme-project.eu/#char=133,134>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "." ;
nif:beginIndex "133" ;
nif:endIndex "134" ;
nif:previousWord <http://freme-project.eu/#char=130,133> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=100,134> .
<http://freme-project.eu/#char=108,112>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "them" ;
nif:beginIndex "108" ;
nif:endIndex "112" ;
nif:nextWord <http://freme-project.eu/#char=113,115> ;
nif:previousWord <http://freme-project.eu/#char=102,107> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=100,134> .
<http://freme-project.eu/#char=0,134>
a nif:RFC5147String , nif:Context ;
nif:beginIndex "0" ;
nif:endIndex "134" ;
nif:isString "Welcome to Berlin, the home of Marlene Dietrich and Nastassja Kinski. BBC news in London are great. I watch them in Potsdam every day." .
<http://freme-project.eu/#char=39,47>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "Dietrich" ;
nif:beginIndex "39" ;
nif:endIndex "47" ;
nif:nextWord <http://freme-project.eu/#char=48,51> ;
nif:previousWord <http://freme-project.eu/#char=31,38> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> .
<http://freme-project.eu/#char=11,17>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "Berlin" ;
nif:beginIndex "11" ;
nif:endIndex "17" ;
nif:nextWord <http://freme-project.eu/#char=17,18> ;
nif:previousWord <http://freme-project.eu/#char=8,10> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> ;
itsrdf:taIdentRef <http://dbpedia.org/resource/Berlin> .
<http://freme-project.eu/#char=74,78>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "news" ;
nif:beginIndex "74" ;
nif:endIndex "78" ;
nif:nextWord <http://freme-project.eu/#char=79,81> ;
nif:previousWord <http://freme-project.eu/#char=70,73> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=70,99> ;
itsrdf:taIdentRef <http://dbpedia.org/resource/News> .
<http://freme-project.eu/#char=130,133>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "day" ;
nif:beginIndex "130" ;
nif:endIndex "133" ;
nif:nextWord <http://freme-project.eu/#char=133,134> ;
nif:previousWord <http://freme-project.eu/#char=124,129> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=100,134> ;
itsrdf:taIdentRef <http://dbpedia.org/resource/Day> .
<http://freme-project.eu/#char=31,38>
a nif:Word , nif:RFC5147String ;
nif:anchorOf "Marlene" ;
nif:beginIndex "31" ;
nif:endIndex "38" ;
nif:nextWord <http://freme-project.eu/#char=39,47> ;
nif:previousWord <http://freme-project.eu/#char=28,30> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> ;
itsrdf:taIdentRef <http://dbpedia.org/resource/Marlene_Dietrich> .
<http://freme-project.eu/#char=93,98>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "great" ;
nif:beginIndex "93" ;
nif:endIndex "98" ;
nif:nextWord <http://freme-project.eu/#char=98,99> ;
nif:previousWord <http://freme-project.eu/#char=89,92> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=70,99> ;
itsrdf:taIdentRef <http://dbpedia.org/resource/University_of_Oxford> , <http://dbpedia.org/resource/Great_power> .
<http://freme-project.eu/#char=0,7>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "Welcome" ;
nif:beginIndex "0" ;
nif:endIndex "7" ;
nif:nextWord <http://freme-project.eu/#char=8,10> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> ;
itsrdf:taIdentRef <http://dbpedia.org/resource/Welcome_(2007_film)> .
<http://freme-project.eu/#char=79,81>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "in" ;
nif:beginIndex "79" ;
nif:endIndex "81" ;
nif:nextWord <http://freme-project.eu/#char=82,88> ;
nif:previousWord <http://freme-project.eu/#char=74,78> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=70,99> .
<http://freme-project.eu/#char=124,129>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "every" ;
nif:beginIndex "124" ;
nif:endIndex "129" ;
nif:nextWord <http://freme-project.eu/#char=130,133> ;
nif:previousWord <http://freme-project.eu/#char=116,123> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=100,134> .
<http://freme-project.eu/#char=116,123>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "Potsdam" ;
nif:beginIndex "116" ;
nif:endIndex "123" ;
nif:nextWord <http://freme-project.eu/#char=124,129> ;
nif:previousWord <http://freme-project.eu/#char=113,115> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=100,134> ;
itsrdf:taIdentRef <http://dbpedia.org/resource/Potsdam> .
<http://freme-project.eu/#char=70,73>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "BBC" ;
nif:beginIndex "70" ;
nif:endIndex "73" ;
nif:nextWord <http://freme-project.eu/#char=74,78> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=70,99> ;
itsrdf:taIdentRef <http://dbpedia.org/resource/BBC> .
<http://freme-project.eu/#char=70,99>
a nif:Sentence , nif:RFC5147String ;
nif:anchorOf "BBC news in London are great." ;
nif:beginIndex "70" ;
nif:endIndex "99" ;
nif:firstWord <http://freme-project.eu/#char=70,73> ;
nif:lastWord <http://freme-project.eu/#char=98,99> ;
nif:nextSentence <http://freme-project.eu/#char=0,69> ;
nif:previousSentence <http://freme-project.eu/#char=100,134> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:word <http://freme-project.eu/#char=79,81> , <http://freme-project.eu/#char=89,92> , <http://freme-project.eu/#char=74,78> , <http://freme-project.eu/#char=93,98> , <http://freme-project.eu/#char=82,88> .
<http://freme-project.eu/#char=98,99>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "." ;
nif:beginIndex "98" ;
nif:endIndex "99" ;
nif:previousWord <http://freme-project.eu/#char=93,98> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=70,99> .
<http://freme-project.eu/#char=23,27>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "home" ;
nif:beginIndex "23" ;
nif:endIndex "27" ;
nif:nextWord <http://freme-project.eu/#char=28,30> ;
nif:previousWord <http://freme-project.eu/#char=19,22> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> .
<http://freme-project.eu/#char=17,18>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "," ;
nif:beginIndex "17" ;
nif:endIndex "18" ;
nif:nextWord <http://freme-project.eu/#char=19,22> ;
nif:previousWord <http://freme-project.eu/#char=11,17> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> .
<http://freme-project.eu/#char=113,115>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "in" ;
nif:beginIndex "113" ;
nif:endIndex "115" ;
nif:nextWord <http://freme-project.eu/#char=116,123> ;
nif:previousWord <http://freme-project.eu/#char=108,112> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=100,134> .
<http://freme-project.eu/#char=102,107>
a nif:Word , nif:RFC5147String ;
nif:anchorOf "watch" ;
nif:beginIndex "102" ;
nif:endIndex "107" ;
nif:nextWord <http://freme-project.eu/#char=108,112> ;
nif:previousWord <http://freme-project.eu/#char=100,101> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=100,134> ;
itsrdf:taIdentRef <http://dbpedia.org/resource/Watch> .
<http://freme-project.eu/#char=82,88>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "London" ;
nif:beginIndex "82" ;
nif:endIndex "88" ;
nif:nextWord <http://freme-project.eu/#char=89,92> ;
nif:previousWord <http://freme-project.eu/#char=79,81> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=70,99> ;
itsrdf:taIdentRef <http://dbpedia.org/resource/London> .
<http://freme-project.eu/#char=62,68>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "Kinski" ;
nif:beginIndex "62" ;
nif:endIndex "68" ;
nif:nextWord <http://freme-project.eu/#char=68,69> ;
nif:previousWord <http://freme-project.eu/#char=52,61> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> .
<http://freme-project.eu/#char=28,30>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "of" ;
nif:beginIndex "28" ;
nif:endIndex "30" ;
nif:nextWord <http://freme-project.eu/#char=31,38> ;
nif:previousWord <http://freme-project.eu/#char=23,27> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> .
<http://freme-project.eu/#char=100,101>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "I" ;
nif:beginIndex "100" ;
nif:endIndex "101" ;
nif:nextWord <http://freme-project.eu/#char=102,107> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=100,134> .
<http://freme-project.eu/#char=89,92>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "are" ;
nif:beginIndex "89" ;
nif:endIndex "92" ;
nif:nextWord <http://freme-project.eu/#char=93,98> ;
nif:previousWord <http://freme-project.eu/#char=82,88> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=70,99> .
<http://freme-project.eu/#char=48,51>
a nif:RFC5147String , nif:Word ;
nif:anchorOf "and" ;
nif:beginIndex "48" ;
nif:endIndex "51" ;
nif:nextWord <http://freme-project.eu/#char=52,61> ;
nif:previousWord <http://freme-project.eu/#char=39,47> ;
nif:referenceContext <http://freme-project.eu/#char=0,134> ;
nif:sentence <http://freme-project.eu/#char=0,69> .
The return is still http code 500 - internal server error.
The outcome of this request curl -X POST --header "Content-Type: text/plain" --header "Accept: text/n3" "http://api.freme-project.eu/0.2/e-entity/dbpedia-spotlight/documents?input=Welcome%20to%20Berlin%2C%20the%20home%20of%20Marlene%20Dietrich%20and%20Nastassja%20Kinski.%20BBC%20news%20in%20London%20are%20great.%20I%20watch%20them%20in%20Potsdam%20every%20day.&informat=text&outformat=json-ld&language=en&confidence=0.3" Put into e-link with template 2 gives gives a broker exception { "timestamp": 1438919922657, "message": "Unknown problem. Please contact us.", "error": "Internal Server Error", "status": 500, "exception": "eu.freme.broker.exception.InternalServerErrorException", "path": "/e-link/documents/" }