From fae1b0f4e0c228d5478598f349baac9a4063d079 Mon Sep 17 00:00:00 2001 From: Nicolas Seydoux Date: Mon, 30 Nov 2020 09:59:56 +0100 Subject: [PATCH] Fixed encoding issue in tests --- src/main/java/semantic/controler/Controler.java | 2 +- src/main/java/semantic/model/SemanticModel.java | 4 ++-- tp-iss.ttl | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/semantic/controler/Controler.java b/src/main/java/semantic/controler/Controler.java index 6752665..fa134db 100644 --- a/src/main/java/semantic/controler/Controler.java +++ b/src/main/java/semantic/controler/Controler.java @@ -56,7 +56,7 @@ public class Controler { // TODO : Change the path to the one of the file you downloaded List obsList = JSONEndpoint.parseObservations("tempm.txt"); - String tempURI = c.model.getEntityURI("Température").get(0); + String tempURI = c.model.getEntityURI("Temperature").get(0); c.getCustomControl().instantiateObservations(obsList, tempURI); // TODO : Same thing, for humidity obsList = JSONEndpoint.parseObservations("tempm.txt"); diff --git a/src/main/java/semantic/model/SemanticModel.java b/src/main/java/semantic/model/SemanticModel.java index 1f65c20..11cc856 100644 --- a/src/main/java/semantic/model/SemanticModel.java +++ b/src/main/java/semantic/model/SemanticModel.java @@ -130,8 +130,8 @@ public class SemanticModel implements IConvenienceInterface this.temperatureSensor1URI = this.getEntityURI("TemperatureSensor_1").get(0); this.temperatureSensor2URI = this.getEntityURI("TemperatureSensor_2").get(0); this.temperatureSensor3URI = this.getEntityURI("TemperatureSensor_3").get(0); - this.temperatureURI = this.getEntityURI("Température").get(0); - this.humidityURI = this.getEntityURI("Hygrométrie").get(0); + this.temperatureURI = this.getEntityURI("Temperature").get(0); + this.humidityURI = this.getEntityURI("Humidity").get(0); } public void beginWriteTransaction() diff --git a/tp-iss.ttl b/tp-iss.ttl index 0702a52..cea1cdb 100644 --- a/tp-iss.ttl +++ b/tp-iss.ttl @@ -342,8 +342,8 @@ tp-iss:OWLNamedIndividual_40c87ce2_4767_4cb0_9cd7_1dda03352a38 rdf:type owl:Name ### http://homepages.laas.fr/nseydoux/ontologies/tp-iss#OWLNamedIndividual_4ef6700d_d3ca_437e_96a6_5f531744c9fd tp-iss:OWLNamedIndividual_4ef6700d_d3ca_437e_96a6_5f531744c9fd rdf:type owl:NamedIndividual , - tp-iss:Parameters ; - rdfs:label "Hygrométrie"@en . + tp-iss:OWLClass_6d5bb482_3e1e_47a0_be94_995d4df0f35e ; + rdfs:label "Hygrométrie"@fr, rdfs:label "Humidity" . ### http://homepages.laas.fr/nseydoux/ontologies/tp-iss#OWLNamedIndividual_4f731814_91f0_4d75_a5cf_4a0d3629a308