Sparqlator Test
This page shows the result of the sample cURL command.
When there is the placeholder expression, _sample_input_, in the cURL command, it will be replaced by the value of the field, Sample input.
When there is the placeholder expression, _sample_input_, in the cURL command, it will be replaced by the value of the field, Sample input.
Result
{ "message": "undefined local variable or method `data' for #<GraphFinderWrapperWS:0x000000036c89e8>" }
Command
curl -H "content-type:application/json" -d '{ "disambiguation": [ { "entities": [{"var": "v6", "score": 1, "value": "http://dbpedia.org/resource/Gunsan"}], "classes": [ {"var": "v3", "score": 0.25, "value": "http://dbpedia.org/ontology/River"}, {"var": "v3", "score": 0.2564102564102564, "value": "http://dbpedia.org/ontology/River"} ], "score": 1, "properties": [ {"var": "v2", "score": 0.2564102564102564, "value": "http://dbpedia.org/ontology/city"} ] } ], "template": { "query": "SELECT ?v4 WHERE { ?v4 ?v2 ?v6 ; ?v7 ?v3 . }", "slots": [ {"p": "is", "s": "v2", "o": "rdf:Property"}, {"p": "verbalization", "s": "v2", "o": "flow"}, {"p": "is", "s": "v6", "o": "rdf:Resource|rdfs:Literal"}, {"p": "verbalization", "s": "v6", "o": "Gunsan"}, {"p": "is", "s": "v7", "o": "<http://lodqa.org/vocabulary/sort_of>"}, {"p": "is", "s": "v3", "o": "rdf:Class"}, {"p": "verbalization", "s": "v3", "o": "rivers"} ], "score": "1.0", "question": "Which rivers flow through Gunsan?" } }' http://ws.okbqa.org:38401/queries?max_hop=1