spice-h2020 / SON

This repository contains the source code of the SPICE Ontology Network
5 stars 0 forks source link

Emotion annotation scenario #43

Open luigi-asprino opened 3 years ago

luigi-asprino commented 3 years ago

Depends on

30

Description

Emotion detector annotates a piece of text with emotions of the Pluchick ontology.

Source

WP3-WP6 working group

Competency Questions

cf. #30

Ontology/Ontology Design Patterns Relevant for the scenario

cf. #30

MARL Opinion Ontology for representing polarity

SPARQL Questions

cf. #30

Toy Dataset/SPARQL Endpoint

{
  "@context" : {
    "dbr" : "http://dbpedia.org/resource/",
    "earmark" : "http://www.essepuntato.it/2008/12/earmark#",
    "emotion" : "https://w3id.org/spice/SON/PlutchikEmotion/",
    "ex" : "http://example.org/",
    "marl" : "http://www.gsi.upm.es/ontologies/marl/ns#",
    "owl" : "http://www.w3.org/2002/07/owl#",
    "rdfs" : "http://www.w3.org/2000/01/rdf-schema#",
    "semiotics" : "http://ontologydesignpatterns.org/cp/owl/semiotics.owl#",
    "xsd" : "http://www.w3.org/2001/XMLSchema#",
    "sentilo":"http://ontologydesignpatterns.org/ont/sentilo.owl"
  },
  "@graph" : [ {
    "@id" : "ex:docuverse",
    "@type" : "earmark:StringDocuverse",
    "@language" : "en",
    "earmark:hasContent" : "Josephus Flavius provided us with a glimpse into one of the most interesting times of our people, on the other hand, his act of betrayal is intensified by being one of the leaders of the rebellion. This arises the question: Why is it the elite that abandons the people in times of rebellion? Another question also arises as to why it is not satisfied with betrayel, but rather as Joseph the son of Matityahu who is not satisfied with his act of betrayal but performs a moral and cultural assimilation when he becomes Josephus Flavius?",
    "sentilo:scoreType": [{
      "@type" : "emotion:Calmness",
      "@id": "ex:anno_docuverse_calm",
      "sentilo:avgScore": "0.1"
    },
    {
      "@type": "marl:Positive",
      "@id":"ex:anno_docuverse_positive",
      "sentilo:avgScore": "0.1"
    }]
  }, {
    "@id" : "ex:anno_0_emotion_341-350",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "satisfied",
    "semiotics:denotes" : [{
      "@type" : "emotion:Calmness",
      "@id": "ex:anno_0_emotion_341-350_calm"
    },{
      "@type" : "emotion:Joy",
      "@id": "ex:anno_0_emotion_341-350_joy"
    }],
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "341",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "350",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_2_emotion_419-428",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "satisfied",
    "semiotics:denotes" : {
      "@type" : "emotion:Calmness",
            "@id" : "ex:anno_2_emotion_419-428_calm"
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "419",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "428",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_3_emotion_419-428",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "satisfied",
    "semiotics:denotes" : {
      "@type" : "emotion:Joy",
            "@id" : "ex:anno_3_emotion_419-428"
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "419",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "428",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_4_emotion_249-257",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "abandons",
    "semiotics:denotes" : {
      "@type" : "emotion:Fear",
            "@id" : "ex:anno_4_emotion_249-257_fear"
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "249",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "257",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_5_emotion_249-257",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "abandons",
    "semiotics:denotes" : {
      "@type" : "emotion:Sadness",
            "@id" : "ex:anno_5_emotion_249-257_sad"
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "249",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "257",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_6_entity_0-16",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "Josephus Flavius",
    "semiotics:denotes" : {
      "@id" : "dbr:Josephus",
      "@type" : [ "http://dbpedia.org/ontology/Person" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "0",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "16",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_7_entity_65-82",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "interesting times",
    "semiotics:denotes" : {
      "@id" : "dbr:Interesting_Times",
      "@type" : [ "http://dbpedia.org/ontology/Book", "http://dbpedia.org/ontology/WrittenWork", "http://dbpedia.org/ontology/Work" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "65",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "82",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_8_entity_128-136",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "betrayal",
    "semiotics:denotes" : {
      "@id" : "dbr:Betrayal",
      "@type" : [ "http://www.w3.org/2002/07/owl#Thing" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "128",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "136",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_9_entity_172-179",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "leaders",
    "semiotics:denotes" : {
      "@id" : "dbr:Leadership",
      "@type" : [ "http://dbpedia.org/ontology/PersonFunction" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "172",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "179",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_10_entity_187-196",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "rebellion",
    "semiotics:denotes" : {
      "@id" : "dbr:Rebellion",
      "@type" : [ "http://dbpedia.org/ontology/PersonFunction" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "187",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "196",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_11_entity_198-202",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "This",
    "semiotics:denotes" : {
      "@id" : "dbr:Sathya_Sai_Baba",
      "@type" : [ "http://dbpedia.org/ontology/Agent", "http://dbpedia.org/ontology/Religious", "http://dbpedia.org/ontology/Person" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "198",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "202",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_12_entity_203-209",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "arises",
    "semiotics:denotes" : {
      "@id" : "dbr:Four_Noble_Truths",
      "@type" : [ "http://www.w3.org/2002/07/owl#Thing" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "203",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "209",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_13_entity_238-243",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "elite",
    "semiotics:denotes" : {
      "@id" : "dbr:Elite",
      "@type" : [ "http://dbpedia.org/ontology/RecordLabel" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "238",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "243",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_14_entity_281-290",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "rebellion",
    "semiotics:denotes" : {
      "@id" : "dbr:Rebellion",
      "@type" : [ "http://dbpedia.org/ontology/PersonFunction" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "281",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "290",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_15_entity_292-299",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "Another",
    "semiotics:denotes" : {
      "@id" : "dbr:Bad_Kreuznach_station",
      "@type" : [ "http://dbpedia.org/ontology/Infrastructure", "http://dbpedia.org/ontology/Place", "http://dbpedia.org/ontology/ArchitecturalStructure", "http://dbpedia.org/ontology/Location", "http://dbpedia.org/ontology/Station" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "292",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "299",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_16_entity_314-320",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "arises",
    "semiotics:denotes" : {
      "@id" : "dbr:Four_Noble_Truths",
      "@type" : [ "http://www.w3.org/2002/07/owl#Thing" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "314",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "320",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_17_entity_341-350",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "satisfied",
    "semiotics:denotes" : {
      "@id" : "dbr:Satisfiability",
      "@type" : [ "http://www.w3.org/2002/07/owl#Thing" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "341",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "350",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_18_entity_380-386",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "Joseph",
    "semiotics:denotes" : {
      "@id" : "dbr:Saint_Joseph",
      "@type" : [ "http://dbpedia.org/ontology/Person", "http://dbpedia.org/ontology/Agent", "http://dbpedia.org/ontology/Saint", "http://dbpedia.org/ontology/Cleric" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "380",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "386",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_19_entity_398-407",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "Matityahu",
    "semiotics:denotes" : {
      "@id" : "dbr:Mattathias",
      "@type" : [ "http://dbpedia.org/ontology/Agent", "http://dbpedia.org/ontology/Person", "http://dbpedia.org/ontology/Royalty" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "398",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "407",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_20_entity_419-428",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "satisfied",
    "semiotics:denotes" : {
      "@id" : "dbr:Satisfiability",
      "@type" : [ "http://www.w3.org/2002/07/owl#Thing" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "419",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "428",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_21_entity_445-453",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "betrayal",
    "semiotics:denotes" : {
      "@id" : "dbr:Betrayal",
      "@type" : [ "http://www.w3.org/2002/07/owl#Thing" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "445",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "453",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_22_entity_479-500",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "cultural assimilation",
    "semiotics:denotes" : {
      "@id" : "dbr:Cultural_assimilation",
      "@type" : [ "http://www.w3.org/2002/07/owl#Thing" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "479",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "500",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_23_entity_517-533",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "Josephus Flavius",
    "semiotics:denotes" : {
      "@id" : "dbr:Josephus",
      "@type" : [ "http://dbpedia.org/ontology/Person" ]
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "517",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "533",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_24_sentiment_415-428",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "not satisfied",
    "semiotics:denotes" : {
      "@id" : "marl:Negative"
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "415",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "428",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_25_sentiment_337-350",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "not satisfied",
    "semiotics:denotes" : {
      "@id" : "marl:Negative"
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "337",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "350",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_26_sentiment_249-257",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "abandons",
    "semiotics:denotes" : {
      "@id" : "marl:Negative"
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "249",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "257",
      "@type" : "xsd:nonNegativeInteger"
    }
  }, {
    "@id" : "ex:anno_27_sentiment_65-76",
    "@type" : "earmark:PointerRange",
    "rdfs:label" : "interesting",
    "semiotics:denotes" : {
      "@id" : "marl:Positive"
    },
    "earmark:refersTo" : {
      "@id" : "ex:docuverse"
    },
    "earmark:begins" : {
      "@value" : "65",
      "@type" : "xsd:nonNegativeInteger"
    },
    "earmark:ends" : {
      "@value" : "76",
      "@type" : "xsd:nonNegativeInteger"
    }
  } ]
}
alessioBosca commented 2 years ago

Hi @luigi-asprino ,

I would like to add a tag referring the whole document (specifically an overall document sentiment value). Should I create a range w.r.t. the whole document or do you suggest another approach?

luigi-asprino commented 2 years ago

Hi @alessioBosca,

What kind of annotation would you like to add? Could you give some examples?

Thanks!

Luigi

alessioBosca commented 2 years ago

Hi @luigi-asprino,

I would like to add an overall document sentiment value, I guess the value could be expressed like for the span

"semiotics:denotes" : { "@id" : "marl:Positive" },

however I'm not sure how to replace "@type" : "earmark:PointerRange", and begin/end . I can refer to the begin / end of the document but maybe there is a better way to express it

luigi-asprino commented 2 years ago

you can use semiotics:denotes as predicate, but I would rather use the docuverse (ex:docuverse in the example) as the subject of the triple to refer to the whole document instead of the pointer ranges. I'm going to update the example above to reflect this annotation.

aldogangemi commented 2 years ago

Hello, the docuverse must be the subject indeed, but the semiotics:denotes is typically used to denote what the document refers to, e.g. “I love you” denotes an event in which e.g. a human is the agent/subject of loving another one (the patient/object of loving). Positivity (marl:Positive) is only indirectly denoted by the text, since it is averaged across the multiple sentiment scores computed by the algorithm (or otherwise, but still computed), so I’d use a more specific predicate, e.g. the one used in Sentilo: http://www.ontologydesignpatterns.org/ont/sentilo.owl#hasAvgScore. Aldo

On 19 Jan 2022, at 10:55, luigi-asprino @.***> wrote:

you can use semiotics:denotes as predicate, but I would rather use the docuverse (ex:docuverse in the example) as the subject of the triple to refer to the whole document instead of the pointer ranges. I'm going to update the example above to reflect this annotation.

— Reply to this email directly, view it on GitHub https://github.com/spice-h2020/SON/issues/43#issuecomment-1016266909, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB52ONFMTPVH4AVPHBMO3G3UW2C73ANCNFSM4YBBEFVQ. You are receiving this because you are subscribed to this thread.

luigi-asprino commented 2 years ago

Ok great. I will update the example. Any chance you have the source code of the sentilo ontology?

Luigi

On 19 Jan 2022, at 12:41, aldogangemi @.***> wrote:

Hello, the docuverse must be the subject indeed, but the semiotics:denotes is typically used to denote what the document refers to, e.g. “I love you” denotes an event in which e.g. a human is the agent/subject of loving another one (the patient/object of loving). Positivity (marl:Positive) is only indirectly denoted by the text, since it is averaged across the multiple sentiment scores computed by the algorithm (or otherwise, but still computed), so I’d use a more specific predicate, e.g. the one used in Sentilo: http://www.ontologydesignpatterns.org/ont/sentilo.owl#hasAvgScore. Aldo

On 19 Jan 2022, at 10:55, luigi-asprino @.***> wrote:

you can use semiotics:denotes as predicate, but I would rather use the docuverse (ex:docuverse in the example) as the subject of the triple to refer to the whole document instead of the pointer ranges. I'm going to update the example above to reflect this annotation.

— Reply to this email directly, view it on GitHub https://github.com/spice-h2020/SON/issues/43#issuecomment-1016266909, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB52ONFMTPVH4AVPHBMO3G3UW2C73ANCNFSM4YBBEFVQ. You are receiving this because you are subscribed to this thread.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.

aldogangemi commented 2 years ago

Sure, that’s the sentilo.owl link:

http://ontologydesignpatterns.org/ont/sentilo.owl http://ontologydesignpatterns.org/ont/sentilo.owl

Aldo

On 19 Jan 2022, at 12:44, luigi-asprino @.***> wrote:

Ok great. I will update the example. Any chance you have the source code of the sentilo ontology?

Luigi

On 19 Jan 2022, at 12:41, aldogangemi @.***> wrote:

Hello, the docuverse must be the subject indeed, but the semiotics:denotes is typically used to denote what the document refers to, e.g. “I love you” denotes an event in which e.g. a human is the agent/subject of loving another one (the patient/object of loving). Positivity (marl:Positive) is only indirectly denoted by the text, since it is averaged across the multiple sentiment scores computed by the algorithm (or otherwise, but still computed), so I’d use a more specific predicate, e.g. the one used in Sentilo: http://www.ontologydesignpatterns.org/ont/sentilo.owl#hasAvgScore. Aldo

On 19 Jan 2022, at 10:55, luigi-asprino @.***> wrote:

you can use semiotics:denotes as predicate, but I would rather use the docuverse (ex:docuverse in the example) as the subject of the triple to refer to the whole document instead of the pointer ranges. I'm going to update the example above to reflect this annotation.

— Reply to this email directly, view it on GitHub https://github.com/spice-h2020/SON/issues/43#issuecomment-1016266909, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB52ONFMTPVH4AVPHBMO3G3UW2C73ANCNFSM4YBBEFVQ. You are receiving this because you are subscribed to this thread.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.

— Reply to this email directly, view it on GitHub https://github.com/spice-h2020/SON/issues/43#issuecomment-1016385428, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB52ONC5HVUF6MC5HP4XZWDUW2P2BANCNFSM4YBBEFVQ. You are receiving this because you commented.

luigi-asprino commented 2 years ago

Great! Thank you

alessioBosca commented 2 years ago

@luigi-asprino @aldogangemi thanks for the update and examples

Alessio

aldogangemi commented 2 years ago

Ah giusto una issue tecnica: se il valore può essere un individuo come marl:Positive, allora qui c’è bisogno di una ObjectProperty, mentre sentilo:hasAVGScore è una DatatypeProperty (il range è xsd:double). Forse si potrebbe aggiungere una ObjectProperty a sentilo.owl, ex. sentilo:scoreType.

On 19 Jan 2022, at 17:22, Alessio Bosca @.***> wrote:

@luigi-asprino https://github.com/luigi-asprino @aldogangemi https://github.com/aldogangemi thanks for the update and examples

Alessio

— Reply to this email directly, view it on GitHub https://github.com/spice-h2020/SON/issues/43#issuecomment-1016634938, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB52ONFV5YVTM5N6CQ7FHW3UW3QMBANCNFSM4YBBEFVQ. You are receiving this because you were mentioned.

luigi-asprino commented 2 years ago

Ok, shall we use sentilo:scoreType? Could you add such object property to the sentilo ontology (I don't have access to the ODP's FTP server anymore).

aldogangemi commented 2 years ago

OK, I’ll do right away. And sorry for the Italian switch ...

On 19 Jan 2022, at 18:48, luigi-asprino @.***> wrote:

Ok, shall we use sentilo:scoreType? Could you add such object property to the sentilo ontology (I don't have access to the ODP's FTP server anymore).

— Reply to this email directly, view it on GitHub https://github.com/spice-h2020/SON/issues/43#issuecomment-1016714171, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB52ONGGVOGU5RCRE2AKNELUW32O7ANCNFSM4YBBEFVQ. You are receiving this because you were mentioned.

alessioBosca commented 2 years ago

Hi @luigi-asprino and @aldogangemi, I would like to combine scoreType with avgScore (in order to provede a confidence value), I was thinking something like

"sentilo:scoreType" : [{ "@id": "marl:Positive", "sentilo:avgScore": 0.6 }, { "@type" : "emotion:Calmness", "sentilo:avgScore": 0.82 }]

would that be OK?

aldogangemi commented 2 years ago

Sure Alessio, that’s good. Aldo

On 24 Jan 2022, at 15:38, Alessio Bosca @.***> wrote:

Hi @luigi-asprino https://github.com/luigi-asprino and @aldogangemi https://github.com/aldogangemi, I would like to combine scoreType with avgScore (in order to provede a confidence value), I was thinking something like

"sentilo:scoreType" : [{ @. https://github.com/id": "marl:Positive", "sentilo:avgScore": 0.6 }, { @. https://github.com/type" : "emotion:Calmness", "sentilo:avgScore": 0.82 }]

would that be OK?

— Reply to this email directly, view it on GitHub https://github.com/spice-h2020/SON/issues/43#issuecomment-1020167465, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB52ONB57IN4SMGH2EPVC3LUXVP5JANCNFSM4YBBEFVQ. You are receiving this because you were mentioned.

alessioBosca commented 2 years ago

Thanks Aldo

luigi-asprino commented 2 years ago

Hi,

I have updated the example. In the previous version marl:Positive was referred by punning, but in light of the considerations above (you need to associate a score to the specific annotato of the document), I think that a slightly better solution requires instantiating marl:Positive and associate the score to such instance.