0

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

sstauross
  • 2,602
  • 2
  • 30
  • 50

2 Answers2

1

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.

Daniel A.A. Pelsmaeker
  • 47,471
  • 20
  • 111
  • 157
0

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.

sstauross
  • 2,602
  • 2
  • 30
  • 50
  • yes but there is something wrong and it cannot start at all not only at my system but also at another that i tried... – sstauross Mar 22 '13 at 13:45