Commit cf502fd0 authored by ALVISET's avatar ALVISET
Browse files

Fixed coordinates scientific notation issue

parent b1202662
......@@ -394,7 +394,6 @@ if __name__ == "__main__":
progress.write("Float {} metadata is nonexistent. Skipping...".format(afloat))
continue
pi_uri = GraphWrapper.create_uri(ARGO, float_info["deployment"]["principalInvestigatorName"])
argo_graph.add_triples({
afloat_uri: [
(RDF.type, ARGO.ArgoFloat),
......@@ -410,8 +409,8 @@ if __name__ == "__main__":
deployment_uri: [
(RDF.type, SSN.Deployment),
(ARGO.cruise, Literal(float_info["deployment"]["cruiseName"])),
(GEO.latitude, Literal(float_info["deployment"]["lat"], datatype=XSD.float)),
(GEO.longitude, Literal(float_info["deployment"]["lon"], datatype=XSD.float)),
(GEO.latitude, str(Literal(float_info["deployment"]["lat"], datatype=XSD.decimal))),
(GEO.longitude, str(Literal(float_info["deployment"]["lon"], datatype=XSD.decimal))),
(ARGO.launchDate, Literal(float_info["deployment"]["launchDate"], datatype=XSD.dateTime)),
(ARGO.deployedByShip, Literal(float_info["deployment"]["platform"], datatype=XSD.string)),
(ARGO.principalInvestigator, pi_uri)
......@@ -421,7 +420,6 @@ if __name__ == "__main__":
(FOAF.name, Literal(float_info["deployment"]["principalInvestigatorName"], datatype=XSD.string))
]
})
# Sensor node
for sensor in float_info["sensors"]:
sensor_uri = GraphWrapper.create_uri(ARGO, "sensor", sensor["serial"])
......@@ -557,8 +555,8 @@ if __name__ == "__main__":
argo_graph.add_triple(cycle_uri, ARGO.number, Literal(nb, datatype=XSD.int))
argo_graph.add_triple(cycle_uri, ARGO.startDate, Literal(cycle["startDate"]))
argo_graph.add_triple(cycle_uri, GEO.latitude, Literal(cycle["lat"]))
argo_graph.add_triple(cycle_uri, GEO.longitude, Literal(cycle["lon"]))
argo_graph.add_triple(cycle_uri, GEO.latitude, Literal(cycle["lat"], datatype=XSD.decimal))
argo_graph.add_triple(cycle_uri, GEO.longitude, Literal(cycle["lon"], datatype=XSD.decimal))
adjusted_Params = {} # Keep profile params in memory to avoid duplicates
for group in groups:
# argo_graph.add_triple(group["uri"], ARGO.handbookVersion, group["handbook"])
......
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