mapping.ttl 2.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. @prefix rr: <http://www.w3.org/ns/r2rml#> .
  2. @prefix odef: <http://adaptcentre.ie/ont/odef#> .
  3. @prefix csv: </Users/chrdebru/Desktop/workspace_local/generate-mapping/test/resources/fccweatherstationsp201108292221.csv#> .
  4. <#TriplesMap> rr:logicalTable [ rr:sqlQuery "SELECT rownum() AS ROW_NUM, * FROM fccweatherstationsp201108292221;" ] ;
  5. rr:predicateObjectMap [ odef:label "LONG" ;
  6. odef:order "5"^^<http://www.w3.org/2001/XMLSchema#int> ;
  7. rr:objectMap [ rr:column "LONG" ] ;
  8. rr:predicate csv:LONG
  9. ] ;
  10. rr:predicateObjectMap [ odef:label "LAT" ;
  11. odef:order "4"^^<http://www.w3.org/2001/XMLSchema#int> ;
  12. rr:objectMap [ rr:column "LAT" ] ;
  13. rr:predicate csv:LAT
  14. ] ;
  15. rr:predicateObjectMap [ odef:label "Agency" ;
  16. odef:order "3"^^<http://www.w3.org/2001/XMLSchema#int> ;
  17. rr:objectMap [ rr:column "AGENCY" ] ;
  18. rr:predicate csv:AGENCY
  19. ] ;
  20. rr:predicateObjectMap [ odef:label "Weather_Reading" ;
  21. odef:order "2"^^<http://www.w3.org/2001/XMLSchema#int> ;
  22. rr:objectMap [ rr:column "WEATHER_READING" ] ;
  23. rr:predicate csv:WEATHER_READING
  24. ] ;
  25. rr:predicateObjectMap [ odef:label "Name" ;
  26. odef:order "1"^^<http://www.w3.org/2001/XMLSchema#int> ;
  27. rr:objectMap [ rr:column "NAME" ] ;
  28. rr:predicate csv:NAME
  29. ] ;
  30. rr:predicateObjectMap [ rr:objectMap [ rr:column "ROW_NUM" ] ;
  31. rr:predicate csv:ROW_NUM
  32. ] ;
  33. rr:subjectMap [ rr:class odef:Record ;
  34. rr:template "http://www.example.org/record/{ROW_NUM}"
  35. ] .