{"action":"created","comment":{"url":"https://api.github.com/repos/dswarm/dswarm/pulls/comments/24331380","id":24331380,"diff_hunk":"@@ -308,6 +310,102 @@ private void createTransformation(final Element rules, final Mapping mapping) th\n \t\tprocessTransformationComponentFunction(transformationComponent, mapping, mappingInputsVariablesMap, rules);\n \t}\n \n+\tprivate void createLookupTable(final Element maps, final Component transformationComponent) throws DMPConverterException {\n+\n+\t\tif (transformationComponent == null)\n+\t\t\treturn;\n+\n+\t\tfinal Function transformationFunction = transformationComponent.getFunction();\n+\n+\t\tif (transformationFunction != null && transformationFunction.getFunctionType() == FunctionType.Transformation) {\n+\n+\t\t\tfinal Transformation transformation = (Transformation) transformationFunction;\n+\n+\t\t\tfinal Set<Component> components = transformation.getComponents();\n+\n+\t\t\tif (components == null)\n+\t\t\t\treturn;\n+\n+\t\t\tfor (final Component component : components) {\n+\n+\t\t\t\tfinal Map<String, String> componentParameterMapping = component.getParameterMappings();\n+\n+\t\t\t\tif (LOOKUP_FUNCTIONS.contains(component.getFunction().getName()) && componentParameterMapping != null) {\n+\n+\t\t\t\t\tfinal Element map = doc.createElement(\"map\");","path":"converter/src/main/java/org/dswarm/converter/morph/MorphScriptBuilder.java","position":100,"original_position":100,"commit_id":"09eae299a0ba4f29248dd3fbc3937cfe99165f14","original_commit_id":"09eae299a0ba4f29248dd3fbc3937cfe99165f14","user":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"body":"we may should \"outsource\" those identifiers (\"map\", \"maps\", \"rules\", ...) to static final attributes of the MSB, or?","created_at":"2015-02-09T14:36:51Z","updated_at":"2015-02-09T14:36:51Z","html_url":"https://github.com/dswarm/dswarm/pull/31#discussion_r24331380","pull_request_url":"https://api.github.com/repos/dswarm/dswarm/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/dswarm/dswarm/pulls/comments/24331380"},"html":{"href":"https://github.com/dswarm/dswarm/pull/31#discussion_r24331380"},"pull_request":{"href":"https://api.github.com/repos/dswarm/dswarm/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/dswarm/dswarm/pulls/31","id":28908627,"html_url":"https://github.com/dswarm/dswarm/pull/31","diff_url":"https://github.com/dswarm/dswarm/pull/31.diff","patch_url":"https://github.com/dswarm/dswarm/pull/31.patch","issue_url":"https://api.github.com/repos/dswarm/dswarm/issues/31","number":31,"state":"open","locked":false,"title":"complete metafacture function/collector set and enable simple lookup functionality","user":{"login":"fniederl","id":9192087,"avatar_url":"https://avatars.githubusercontent.com/u/9192087?v=3","gravatar_id":"","url":"https://api.github.com/users/fniederl","html_url":"https://github.com/fniederl","followers_url":"https://api.github.com/users/fniederl/followers","following_url":"https://api.github.com/users/fniederl/following{/other_user}","gists_url":"https://api.github.com/users/fniederl/gists{/gist_id}","starred_url":"https://api.github.com/users/fniederl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fniederl/subscriptions","organizations_url":"https://api.github.com/users/fniederl/orgs","repos_url":"https://api.github.com/users/fniederl/repos","events_url":"https://api.github.com/users/fniederl/events{/privacy}","received_events_url":"https://api.github.com/users/fniederl/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-09T10:12:55Z","updated_at":"2015-02-09T14:36:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"95f8f25498319c88e40f16be1371060e2d1be99c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dswarm/dswarm/pulls/31/commits","review_comments_url":"https://api.github.com/repos/dswarm/dswarm/pulls/31/comments","review_comment_url":"https://api.github.com/repos/dswarm/dswarm/pulls/comments/{number}","comments_url":"https://api.github.com/repos/dswarm/dswarm/issues/31/comments","statuses_url":"https://api.github.com/repos/dswarm/dswarm/statuses/09eae299a0ba4f29248dd3fbc3937cfe99165f14","head":{"label":"fniederl:sprint-29/dd-522","ref":"sprint-29/dd-522","sha":"09eae299a0ba4f29248dd3fbc3937cfe99165f14","user":{"login":"fniederl","id":9192087,"avatar_url":"https://avatars.githubusercontent.com/u/9192087?v=3","gravatar_id":"","url":"https://api.github.com/users/fniederl","html_url":"https://github.com/fniederl","followers_url":"https://api.github.com/users/fniederl/followers","following_url":"https://api.github.com/users/fniederl/following{/other_user}","gists_url":"https://api.github.com/users/fniederl/gists{/gist_id}","starred_url":"https://api.github.com/users/fniederl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fniederl/subscriptions","organizations_url":"https://api.github.com/users/fniederl/orgs","repos_url":"https://api.github.com/users/fniederl/repos","events_url":"https://api.github.com/users/fniederl/events{/privacy}","received_events_url":"https://api.github.com/users/fniederl/received_events","type":"User","site_admin":false},"repo":{"id":25201599,"name":"dswarm","full_name":"fniederl/dswarm","owner":{"login":"fniederl","id":9192087,"avatar_url":"https://avatars.githubusercontent.com/u/9192087?v=3","gravatar_id":"","url":"https://api.github.com/users/fniederl","html_url":"https://github.com/fniederl","followers_url":"https://api.github.com/users/fniederl/followers","following_url":"https://api.github.com/users/fniederl/following{/other_user}","gists_url":"https://api.github.com/users/fniederl/gists{/gist_id}","starred_url":"https://api.github.com/users/fniederl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fniederl/subscriptions","organizations_url":"https://api.github.com/users/fniederl/orgs","repos_url":"https://api.github.com/users/fniederl/repos","events_url":"https://api.github.com/users/fniederl/events{/privacy}","received_events_url":"https://api.github.com/users/fniederl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fniederl/dswarm","description":"a data management platform","fork":true,"url":"https://api.github.com/repos/fniederl/dswarm","forks_url":"https://api.github.com/repos/fniederl/dswarm/forks","keys_url":"https://api.github.com/repos/fniederl/dswarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fniederl/dswarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fniederl/dswarm/teams","hooks_url":"https://api.github.com/repos/fniederl/dswarm/hooks","issue_events_url":"https://api.github.com/repos/fniederl/dswarm/issues/events{/number}","events_url":"https://api.github.com/repos/fniederl/dswarm/events","assignees_url":"https://api.github.com/repos/fniederl/dswarm/assignees{/user}","branches_url":"https://api.github.com/repos/fniederl/dswarm/branches{/branch}","tags_url":"https://api.github.com/repos/fniederl/dswarm/tags","blobs_url":"https://api.github.com/repos/fniederl/dswarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fniederl/dswarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fniederl/dswarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/fniederl/dswarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fniederl/dswarm/statuses/{sha}","languages_url":"https://api.github.com/repos/fniederl/dswarm/languages","stargazers_url":"https://api.github.com/repos/fniederl/dswarm/stargazers","contributors_url":"https://api.github.com/repos/fniederl/dswarm/contributors","subscribers_url":"https://api.github.com/repos/fniederl/dswarm/subscribers","subscription_url":"https://api.github.com/repos/fniederl/dswarm/subscription","commits_url":"https://api.github.com/repos/fniederl/dswarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/fniederl/dswarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/fniederl/dswarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/fniederl/dswarm/issues/comments/{number}","contents_url":"https://api.github.com/repos/fniederl/dswarm/contents/{+path}","compare_url":"https://api.github.com/repos/fniederl/dswarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fniederl/dswarm/merges","archive_url":"https://api.github.com/repos/fniederl/dswarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fniederl/dswarm/downloads","issues_url":"https://api.github.com/repos/fniederl/dswarm/issues{/number}","pulls_url":"https://api.github.com/repos/fniederl/dswarm/pulls{/number}","milestones_url":"https://api.github.com/repos/fniederl/dswarm/milestones{/number}","notifications_url":"https://api.github.com/repos/fniederl/dswarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fniederl/dswarm/labels{/name}","releases_url":"https://api.github.com/repos/fniederl/dswarm/releases{/id}","created_at":"2014-10-14T10:34:08Z","updated_at":"2014-10-14T07:21:57Z","pushed_at":"2015-01-27T11:20:32Z","git_url":"git://github.com/fniederl/dswarm.git","ssh_url":"git@github.com:fniederl/dswarm.git","clone_url":"https://github.com/fniederl/dswarm.git","svn_url":"https://github.com/fniederl/dswarm","homepage":null,"size":5491,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"builds/unstable"}},"base":{"label":"dswarm:pnx-schema","ref":"pnx-schema","sha":"2e63cd20a834474cc5ff68957a691026df3295a8","user":{"login":"dswarm","id":9085679,"avatar_url":"https://avatars.githubusercontent.com/u/9085679?v=3","gravatar_id":"","url":"https://api.github.com/users/dswarm","html_url":"https://github.com/dswarm","followers_url":"https://api.github.com/users/dswarm/followers","following_url":"https://api.github.com/users/dswarm/following{/other_user}","gists_url":"https://api.github.com/users/dswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/dswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dswarm/subscriptions","organizations_url":"https://api.github.com/users/dswarm/orgs","repos_url":"https://api.github.com/users/dswarm/repos","events_url":"https://api.github.com/users/dswarm/events{/privacy}","received_events_url":"https://api.github.com/users/dswarm/received_events","type":"Organization","site_admin":false},"repo":{"id":25151498,"name":"dswarm","full_name":"dswarm/dswarm","owner":{"login":"dswarm","id":9085679,"avatar_url":"https://avatars.githubusercontent.com/u/9085679?v=3","gravatar_id":"","url":"https://api.github.com/users/dswarm","html_url":"https://github.com/dswarm","followers_url":"https://api.github.com/users/dswarm/followers","following_url":"https://api.github.com/users/dswarm/following{/other_user}","gists_url":"https://api.github.com/users/dswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/dswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dswarm/subscriptions","organizations_url":"https://api.github.com/users/dswarm/orgs","repos_url":"https://api.github.com/users/dswarm/repos","events_url":"https://api.github.com/users/dswarm/events{/privacy}","received_events_url":"https://api.github.com/users/dswarm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dswarm/dswarm","description":"a data management platform","fork":false,"url":"https://api.github.com/repos/dswarm/dswarm","forks_url":"https://api.github.com/repos/dswarm/dswarm/forks","keys_url":"https://api.github.com/repos/dswarm/dswarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dswarm/dswarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dswarm/dswarm/teams","hooks_url":"https://api.github.com/repos/dswarm/dswarm/hooks","issue_events_url":"https://api.github.com/repos/dswarm/dswarm/issues/events{/number}","events_url":"https://api.github.com/repos/dswarm/dswarm/events","assignees_url":"https://api.github.com/repos/dswarm/dswarm/assignees{/user}","branches_url":"https://api.github.com/repos/dswarm/dswarm/branches{/branch}","tags_url":"https://api.github.com/repos/dswarm/dswarm/tags","blobs_url":"https://api.github.com/repos/dswarm/dswarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dswarm/dswarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dswarm/dswarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/dswarm/dswarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dswarm/dswarm/statuses/{sha}","languages_url":"https://api.github.com/repos/dswarm/dswarm/languages","stargazers_url":"https://api.github.com/repos/dswarm/dswarm/stargazers","contributors_url":"https://api.github.com/repos/dswarm/dswarm/contributors","subscribers_url":"https://api.github.com/repos/dswarm/dswarm/subscribers","subscription_url":"https://api.github.com/repos/dswarm/dswarm/subscription","commits_url":"https://api.github.com/repos/dswarm/dswarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/dswarm/dswarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/dswarm/dswarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/dswarm/dswarm/issues/comments/{number}","contents_url":"https://api.github.com/repos/dswarm/dswarm/contents/{+path}","compare_url":"https://api.github.com/repos/dswarm/dswarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dswarm/dswarm/merges","archive_url":"https://api.github.com/repos/dswarm/dswarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dswarm/dswarm/downloads","issues_url":"https://api.github.com/repos/dswarm/dswarm/issues{/number}","pulls_url":"https://api.github.com/repos/dswarm/dswarm/pulls{/number}","milestones_url":"https://api.github.com/repos/dswarm/dswarm/milestones{/number}","notifications_url":"https://api.github.com/repos/dswarm/dswarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dswarm/dswarm/labels{/name}","releases_url":"https://api.github.com/repos/dswarm/dswarm/releases{/id}","created_at":"2014-10-13T09:10:46Z","updated_at":"2014-12-12T09:58:49Z","pushed_at":"2015-01-27T11:04:33Z","git_url":"git://github.com/dswarm/dswarm.git","ssh_url":"git@github.com:dswarm/dswarm.git","clone_url":"https://github.com/dswarm/dswarm.git","svn_url":"https://github.com/dswarm/dswarm","homepage":null,"size":6526,"stargazers_count":13,"watchers_count":13,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":3,"forks":10,"open_issues":3,"watchers":13,"default_branch":"builds/unstable"}},"_links":{"self":{"href":"https://api.github.com/repos/dswarm/dswarm/pulls/31"},"html":{"href":"https://github.com/dswarm/dswarm/pull/31"},"issue":{"href":"https://api.github.com/repos/dswarm/dswarm/issues/31"},"comments":{"href":"https://api.github.com/repos/dswarm/dswarm/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/dswarm/dswarm/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/dswarm/dswarm/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/dswarm/dswarm/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/dswarm/dswarm/statuses/09eae299a0ba4f29248dd3fbc3937cfe99165f14"}}}}