problem solved by manually changing the RDF file produced by Protege and putting http://www.w3.org/2001/XMLSchema#double at the point i needed it.
How to store coordinates(Latitude,Longitude) in RDF
-
29-03-2022 - |
Question
I have a c# class showing the coordinates as
class Coordinates{
double lat;
double lon;
}
how can i convert it in rdf triples in rdf as the RDF does not support double type?and if float is used i can only represent 6 digits after the "." any idea?
I am using Protege 3.4.8 to create my rdf schema and Semweb to write triples of data in the scema...
La solution 2
Autres conseils
RDF does support floating-point literals. And Semweb supports Literal
values too.
Use the FromValue
method to get it to do what you want it to do.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow