1
0

F03.mapping.ttl 896 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. @prefix rr: <http://www.w3.org/ns/r2rml#> .
  2. @prefix rrf: <http://kdeg.scss.tcd.ie/ns/rrf#> .
  3. @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
  4. @prefix ex: <http://example.com/ns#> .
  5. <#TriplesMap1>
  6. rr:logicalTable [ rr:tableName "EMP" ];
  7. rr:subjectMap [
  8. rr:template "http://data.example.com/employee/{EMPNO}";
  9. rr:class ex:Employee;
  10. ];
  11. rr:predicateObjectMap [
  12. rr:predicate ex:name;
  13. rr:objectMap [ rr:column "ENAME" ];
  14. ];
  15. rr:predicateObjectMap [
  16. rr:predicate ex:test;
  17. rr:objectMap [
  18. rr:datatype xsd:integer ;
  19. rrf:functionCall [
  20. rrf:function <#foo> ;
  21. rrf:parameterBindings (
  22. [ rr:column "EMPNO" ]
  23. ) ;
  24. ] ;
  25. ]
  26. ]
  27. .
  28. <#foo>
  29. rrf:functionName "foo" ;
  30. rrf:functionBody """
  31. function foo(var1) {
  32. return var1 ;
  33. }
  34. """ ;
  35. .
  36. <#a> rr:objectMap <#b> .
  37. <#b> rr:column "ENAME" .