@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://w3id.org/todo/tododt> a owl:Ontology;
  <http://creativecommons.org/ns#license> "http://purl.org/NET/rdflicense/cc-by4.0";
  <http://purl.org/dc/terms/contributor> "Izaskun Fernández (Tekniker) <mailto:izaskun.fernandez@tekniker.es>";
  <http://purl.org/dc/terms/created> "2020-04-21T00:00:00";
  <http://purl.org/dc/terms/creator> "Cristina Aceta (Tekniker) <mailto:cristina.aceta@tekniker.es>";
  <http://purl.org/dc/terms/description> "Module for dialogue tracing.";
  <http://purl.org/dc/terms/issued> "";
  <http://purl.org/dc/terms/modified> "2021-09-23T10:00:00";
  <http://purl.org/dc/terms/title> "TODODT: Dialogue Tracing Module for Task-Oriented Dialogue management Ontology (TODO)";
  <http://purl.org/vocab/vann/preferredNamespacePrefix> "tododt";
  <http://purl.org/vocab/vann/preferredNamespaceUri> "https://w3id.org/todo/tododt";
  owl:priorVersion "";
  owl:versionInfo 2.1 .

<http://creativecommons.org/ns#license> a owl:AnnotationProperty .

<http://purl.org/dc/terms/bibliographicCitation> a owl:AnnotationProperty .

<http://purl.org/dc/terms/contributor> a owl:AnnotationProperty .

<http://purl.org/dc/terms/created> a owl:AnnotationProperty .

<http://purl.org/dc/terms/creator> a owl:AnnotationProperty .

<http://purl.org/dc/terms/description> a owl:AnnotationProperty .

<http://purl.org/dc/terms/issued> a owl:AnnotationProperty .

<http://purl.org/dc/terms/modified> a owl:AnnotationProperty .

<http://purl.org/dc/terms/title> a owl:AnnotationProperty .

<http://purl.org/vocab/vann/preferredNamespacePrefix> a owl:AnnotationProperty .

<http://purl.org/vocab/vann/preferredNamespaceUri> a owl:AnnotationProperty .

owl:versionIRI a owl:AnnotationProperty .

<http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> a owl:AnnotationProperty .

<http://www.w3.org/2004/02/skos/core#example> a owl:AnnotationProperty .

xsd:time a rdfs:Datatype .

<https://w3id.org/todo/tododt#hasSecondaryDialogue> a owl:ObjectProperty, owl:TransitiveProperty;
  rdfs:comment "Establishes the SecondaryDialogue corresponding to a DialogueTrace.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "hasSecondaryDialogue";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

<https://w3id.org/todo/tododt#hasSystemRequest> a owl:ObjectProperty;
  rdfs:comment "Establishes the SystemRequest corresponding to a SecondaryDialogueTrace.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "hasSystemRequest";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

<https://w3id.org/todo/tododt#hasSystemResponse> a owl:ObjectProperty;
  rdfs:comment "Establishes the SystemResponse corresponding to a SecondaryDialogueTrace.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "hasSystemResponse";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

<https://w3id.org/todo/tododt#hasUserRequest> a owl:ObjectProperty;
  rdfs:comment "Establishes the UserRequest corresponding to a DialogueTrace.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "hasUserRequest";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

<https://w3id.org/todo/tododt#hasUserResponse> a owl:ObjectProperty;
  rdfs:comment "Establishes the UserResponse corresponding to a SecondaryDialogueTrace.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "hasUserResponse";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

<https://w3id.org/todo/tododt#IDval> a owl:DatatypeProperty;
  rdfs:comment "Unique identification value for individuals.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododom#";
  rdfs:label "IDval";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

<https://w3id.org/todo/tododt#currentValue> a owl:DatatypeProperty;
  rdfs:comment "When asking the user for a specific information, the information currently asked to the user.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "currentValue";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable";
  <http://www.w3.org/2004/02/skos/core#example> """UserReq: \"I want to go to the room\"

possibleValue \"room1\"
possibleValue \"room2\"

SystemReq: \"Do you want to go to {room1}?\" (currentValue: room1); \"Do you want to go to {room2}? (currentValue: room2)\""""@en,
    """UserReq: \"Quiero ir a la sala\"

possibleValue \"sala1\"
possibleValue \"sala2\"

System Req: \"¿Quieres ir a la {sala1}?\" (currentValue: sala1); \"¿Quieres ir a la {sala2}? (currentValue: sala2)\""""@en .

<https://w3id.org/todo/tododt#dateTime> a owl:DatatypeProperty;
  rdfs:range xsd:dateTime;
  rdfs:comment "Sets a timestamp to a DialogueTrace.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "dateTime";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

<https://w3id.org/todo/tododt#dialStatus> a owl:DatatypeProperty;
  rdfs:range _:502336;
  rdfs:comment "Sets whether a Dialogue/SecondaryDialogue has finished (closed) or not (open).";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "dialStatus";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

_:502336 a rdfs:Datatype;
  owl:oneOf _:502346 .

_:502346 a rdf:List;
  rdf:first "closed";
  rdf:rest _:502356 .

_:502356 a rdf:List;
  rdf:first "open";
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#dialogueStep> a owl:DatatypeProperty;
  rdfs:comment "Used to control which step is performing the current Dialogue.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "dialogueStep";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

<https://w3id.org/todo/tododt#finishDateTime> a owl:DatatypeProperty;
  rdfs:subPropertyOf <https://w3id.org/todo/tododt#dateTime>;
  rdfs:comment "Sets a finish timestamp to a DialogueTrace.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "finishDateTime";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

<https://w3id.org/todo/tododt#initDateTime> a owl:DatatypeProperty;
  rdfs:subPropertyOf <https://w3id.org/todo/tododt#dateTime>;
  rdfs:comment "Sets a start timestamp to a DialogueTrace.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "initDateTime";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

<https://w3id.org/todo/tododt#possibleValue> a owl:DatatypeProperty;
  rdfs:comment "When asking the user for a specific information, the possible values of that information to be asked to the user.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "possibleValue";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable";
  <http://www.w3.org/2004/02/skos/core#example> """UserReq: \"I want to go to the room\"

possibleValue \"room1\"
possibleValue \"room2\"

SystemReq: \"Do you want to go to {room1}?\"; \"Do you want to go to {room2}?\""""@en,
    """UserReq: \"Quiero ir a la sala\"

possibleValue \"sala1\"
possibleValue \"sala2\"

System Req: \"¿Quieres ir a la {sala1}?\"; \"¿Quieres ir a la {sala2}?\""""@es .

<https://w3id.org/todo/tododt#text> a owl:DatatypeProperty;
  rdfs:comment "String that corresponds to a transcribed command by an user or the fully constructed outputSentence directed to the user.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "text";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

<https://w3id.org/todo/tododt#ContentUserResponseTrace> a owl:Class;
  rdfs:subClassOf <https://w3id.org/todo/tododt#UserResponseTrace>;
  owl:disjointWith <https://w3id.org/todo/tododt#YesNoUserResponseTrace>;
  owl:hasKey _:502366;
  rdfs:comment "Element that leaves a record of the User Responses performed throughout the dialogue process. These responses provide specific information, as a response for a ContentRequest."@en;
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "ContentUserResponseTrace";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable";
  <http://www.w3.org/2004/02/skos/core#example> "Content User Response: The error code is 412."@en .

_:502366 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#DialogueProcessTrace> a owl:Class;
  rdfs:subClassOf _:502376, _:502386, _:5023c6, _:5023d6;
  owl:hasKey _:5023e6;
  rdfs:comment "Element that leaves a record of the dialogues performed throughout the dialogue process.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "DialogueProcessTrace";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

_:502376 a owl:Restriction;
  owl:onProperty <https://w3id.org/todo/tododt#hasSecondaryDialogue>;
  owl:someValuesFrom <https://w3id.org/todo/tododt#SecondaryDialogueTrace> .

_:502386 a owl:Restriction;
  owl:onProperty <https://w3id.org/todo/tododt#dialStatus>;
  owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger;
  owl:onDataRange _:502396 .

_:502396 a rdfs:Datatype;
  owl:oneOf _:5023a6 .

_:5023a6 a rdf:List;
  rdf:first "close";
  rdf:rest _:5023b6 .

_:5023b6 a rdf:List;
  rdf:first "open";
  rdf:rest rdf:nil .

_:5023c6 a owl:Restriction;
  owl:onProperty <https://w3id.org/todo/tododt#finishDateTime>;
  owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger;
  owl:onDataRange xsd:dateTime .

_:5023d6 a owl:Restriction;
  owl:onProperty <https://w3id.org/todo/tododt#initDateTime>;
  owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger;
  owl:onDataRange xsd:dateTime .

_:5023e6 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#DialogueTrace> a owl:Class;
  rdfs:subClassOf <https://w3id.org/todo/tododt#DialogueProcessTrace>, _:5023f6, _:502406;
  owl:hasKey _:502416;
  rdfs:comment "Element that leaves a record of the dialogues performed.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "DialogueTrace";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

_:5023f6 a owl:Restriction;
  owl:onProperty <https://w3id.org/todo/tododt#hasUserRequest>;
  owl:someValuesFrom <https://w3id.org/todo/tododt#UserRequestTrace> .

_:502406 a owl:Restriction;
  owl:onProperty <https://w3id.org/todo/tododt#dialogueStep>;
  owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger;
  owl:onDataRange xsd:string .

_:502416 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#NoUserResponse> a owl:Class;
  rdfs:subClassOf <https://w3id.org/todo/tododt#YesNoUserResponseTrace>;
  owl:hasKey _:502426;
  rdfs:comment "Element that leaves a record of the User Responses performed throughout the dialogue process. These responses correspond to a negative polarity."@en;
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "NoUserResponse";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable";
  <http://www.w3.org/2004/02/skos/core#example> "No User Responses: No, Never, Not at all"@en .

_:502426 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#NullUserResponseTrace> a owl:Class;
  rdfs:subClassOf <https://w3id.org/todo/tododt#UserResponseTrace>;
  owl:hasKey _:502436;
  rdfs:comment "Response that does not represent a value that can be classified as ContentResponse or YesNoResponse."@en;
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "NullUserResponseTrace";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable";
  <http://www.w3.org/2004/02/skos/core#example> "Null User Response: I don't know."@en .

_:502436 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#SecondaryDialogueTrace> a owl:Class;
  rdfs:subClassOf <https://w3id.org/todo/tododt#DialogueProcessTrace>, _:502446, _:502456,
    _:502466, _:502476;
  owl:hasKey _:502486;
  rdfs:comment "Element that leaves a record of the secondary dialogues performed.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "SecondaryDialogueTrace";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

_:502446 a owl:Restriction;
  owl:onProperty <https://w3id.org/todo/tododt#hasSystemRequest>;
  owl:someValuesFrom <https://w3id.org/todo/tododt#SystemRequestTrace> .

_:502456 a owl:Restriction;
  owl:onProperty <https://w3id.org/todo/tododt#hasSystemResponse>;
  owl:someValuesFrom <https://w3id.org/todo/tododt#SystemResponseTrace> .

_:502466 a owl:Restriction;
  owl:onProperty <https://w3id.org/todo/tododt#hasUserResponse>;
  owl:someValuesFrom <https://w3id.org/todo/tododt#UserResponseTrace> .

_:502476 a owl:Restriction;
  owl:onProperty <https://w3id.org/todo/tododt#text>;
  owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger;
  owl:onDataRange xsd:string .

_:502486 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#SystemRequestTrace> a owl:Class;
  rdfs:subClassOf <https://w3id.org/todo/tododt#SystemStepTrace>;
  owl:hasKey _:502496;
  rdfs:comment "Element that leaves a record of the SystemRequests performed throughout the dialogue process.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "SystemRequestTrace";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

_:502496 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#SystemResponseTrace> a owl:Class;
  rdfs:subClassOf <https://w3id.org/todo/tododt#SystemStepTrace>;
  owl:hasKey _:5024a6;
  rdfs:comment "Element that leaves a record of the SystemResponses performed throughout the dialogue process.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "SystemResponseTrace";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

_:5024a6 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#SystemStepTrace> a owl:Class;
  owl:hasKey _:5024b6;
  rdfs:comment "Element that leaves a record of the SystemSteps performed throughout the dialogue process.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "SystemStepTrace";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

_:5024b6 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#UserRequestTrace> a owl:Class;
  rdfs:subClassOf <https://w3id.org/todo/tododt#UserStepTrace>;
  owl:disjointWith <https://w3id.org/todo/tododt#UserResponseTrace>;
  owl:hasKey _:5024c6;
  rdfs:comment "Element that leaves a record of the User Requests performed throughout the dialogue process."@en;
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "UserRequestTrace";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

_:5024c6 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#UserResponseTrace> a owl:Class;
  rdfs:subClassOf <https://w3id.org/todo/tododt#UserStepTrace>;
  owl:hasKey _:5024d6;
  rdfs:comment "Element that leaves a record of the User Responses performed throughout the dialogue process."@en;
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "UserResponseTrace";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

_:5024d6 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#UserStepTrace> a owl:Class;
  rdfs:subClassOf _:5024e6;
  owl:hasKey _:5024f6;
  rdfs:comment "Element that leaves a record of the user steps (requests and responses) performed throughout the dialogue process.";
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "UserStepTrace";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable" .

_:5024e6 a owl:Restriction;
  owl:onProperty <https://w3id.org/todo/tododt#text>;
  owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger;
  owl:onDataRange xsd:string .

_:5024f6 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#YesNoUserResponseTrace> a owl:Class;
  rdfs:subClassOf <https://w3id.org/todo/tododt#UserResponseTrace>;
  owl:hasKey _:502506;
  rdfs:comment "Element that leaves a record of the User Responses performed throughout the dialogue process. These responses correspond to a positive or negative polarity."@en;
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "YesNoUserResponseTrace";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable";
  <http://www.w3.org/2004/02/skos/core#example> """YesNo User Responses:

- Yes, OK

- No, Not at all"""@en .

_:502506 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .

<https://w3id.org/todo/tododt#YesUserResponse> a owl:Class;
  rdfs:subClassOf <https://w3id.org/todo/tododt#YesNoUserResponseTrace>;
  owl:hasKey _:502516;
  rdfs:comment "Element that leaves a record of the User Responses performed throughout the dialogue process. These responses correspond to a positive polarity."@en;
  rdfs:isDefinedBy "https://w3id.org/todo/tododt#";
  rdfs:label "YesUserResponse";
  <http://www.w3.org/2003/06/sw-vocab-status/ns#term_status> "stable";
  <http://www.w3.org/2004/02/skos/core#example> "Yes User Responses: Yes, OK"@en .

_:502516 rdf:first <https://w3id.org/todo/tododt#IDval>;
  rdf:rest rdf:nil .
