15.mapping.ttl 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. @prefix rr: <http://www.w3.org/ns/r2rml#> .
  2. @prefix ex: <http://example.com/ns#> .
  3. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
  4. @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
  5. <#TriplesMap1>
  6. rr:logicalTable [ rr:tableName "EMP" ];
  7. rr:subjectMap [
  8. rr:template "http://data.example.com/employee/{EMPNO}" ;
  9. ];
  10. rr:predicateObjectMap [
  11. rr:predicate rdfs:label ;
  12. rr:object "test-1"^^xsd:string ;
  13. rr:object "test-2"^^<http://www.w3.org/2001/XMLSchema#string> ;
  14. rr:object "test-3" ;
  15. rr:object "test-4"@en ;
  16. rr:object 'test-5'@fr ;
  17. rr:object "test-6"@fr-be ;
  18. ] ;
  19. rr:predicateObjectMap [
  20. rr:predicate ex:testNumeric ;
  21. rr:object 2 ; # xsd:integer
  22. rr:object 4.002602 ; # xsd:decimal
  23. rr:object 1.663E-4 ; # xsd:double
  24. ] ;
  25. rr:predicateObjectMap [
  26. rr:predicate ex:testBoolean ;
  27. rr:object false ; # xsd:obolean
  28. ] ;
  29. .