Commit 9acee508 authored by J. Fernando Sánchez's avatar J. Fernando Sánchez
Browse files

Merge branch 'failed-examples'

parents cd22291d b6f00385
{ {
"plugins": [ "@type": "plugins",
] "plugins": {}
} }
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
"me:EmotionAnalysis1", "me:EmotionAnalysis1",
"me:NER1", "me:NER1",
{ {
"@type": "analysis", "description": "missing @id and @type"
"@id": "wrong"
} }
], ],
"entries": [ "entries": [
......
{
"@context": "http://mixedemotions-project.eu/ns/context.jsonld",
"@id": "me:Result1",
"@type": "results",
"analysis": [
"me:SAnalysis1",
"me:SgAnalysis1",
"me:EmotionAnalysis1",
"me:NER1",
{
"@type": "analysis",
"@id": "anonymous"
}
],
"entries": [
{
"@id": "http://micro.blog/status1",
"@type": [
"nif:RFC5147String",
"nif:Context"
],
"nif:isString": "Dear Microsoft, put your Windows Phone on your newest #open technology program. You'll be awesome. #opensource",
"entities": [
{
"@id": "http://micro.blog/status1#char=5,13",
"nif:beginIndex": 5,
"nif:endIndex": 13,
"nif:anchorOf": "Microsoft",
"me:references": "http://dbpedia.org/page/Microsoft",
"prov:wasGeneratedBy": "me:NER1"
},
{
"@id": "http://micro.blog/status1#char=25,37",
"nif:beginIndex": 25,
"nif:endIndex": 37,
"nif:anchorOf": "Windows Phone",
"me:references": "http://dbpedia.org/page/Windows_Phone",
"prov:wasGeneratedBy": "me:NER1"
}
],
"suggestions": [
{
"@id": "http://micro.blog/status1#char=16,77",
"nif:beginIndex": 16,
"nif:endIndex": 77,
"nif:anchorOf": "put your Windows Phone on your newest #open technology program",
"prov:wasGeneratedBy": "me:SgAnalysis1"
}
],
"sentiments": [
{
"@id": "http://micro.blog/status1#char=80,97",
"nif:beginIndex": 80,
"nif:endIndex": 97,
"nif:anchorOf": "You'll be awesome.",
"marl:hasPolarity": "marl:Positive",
"marl:polarityValue": 0.9,
"prov:wasGeneratedBy": "me:SAnalysis1"
}
],
"emotions": [
{
"@id": "http://micro.blog/status1#char=0,109",
"nif:anchorOf": "Dear Microsoft, put your Windows Phone on your newest #open technology program. You'll be awesome. #opensource",
"prov:wasGeneratedBy": "me:EAnalysis1",
"onyx:hasEmotion": [
{
"onyx:hasEmotionCategory": "wna:liking"
},
{
"onyx:hasEmotionCategory": "wna:excitement"
}
]
}
]
}
]
}
...@@ -3,10 +3,7 @@ ...@@ -3,10 +3,7 @@
"@id": "me:Result1", "@id": "me:Result1",
"@type": "results", "@type": "results",
"analysis": [ "analysis": [
{ "me:SgAnalysis1"
"@id": "me:SgAnalysis1",
"@type": "me:SuggestionAnalysis"
}
], ],
"entries": [ "entries": [
{ {
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
"allOf": [ "allOf": [
{"$ref": "response.json"}, {"$ref": "response.json"},
{ {
"required": ["plugins"],
"properties": { "properties": {
"plugins": { "plugins": {
"type": "array", "type": "array",
......
...@@ -34,7 +34,8 @@ def do_create_(jsfile, success): ...@@ -34,7 +34,8 @@ def do_create_(jsfile, success):
except (AssertionError, ValidationError, KeyError) as ex: except (AssertionError, ValidationError, KeyError) as ex:
if success: if success:
raise raise
return
assert success
return do_expected return do_expected
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment