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...

Was it helpful?

Solution 2

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top