{"id":19865274,"url":"https://github.com/mnms/ltdb-pca-app","last_synced_at":"2025-10-28T16:19:55.610Z","repository":{"id":99895336,"uuid":"350915181","full_name":"mnms/ltdb-pca-app","owner":"mnms","description":"REST API 기반 질의 및 PCA 연산을 위해 개발 및 환경을 구축함","archived":false,"fork":false,"pushed_at":"2021-03-24T04:47:39.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T15:39:53.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mnms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-24T01:58:21.000Z","updated_at":"2021-05-13T09:43:23.000Z","dependencies_parsed_at":"2023-05-10T23:00:29.829Z","dependency_job_id":null,"html_url":"https://github.com/mnms/ltdb-pca-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnms%2Fltdb-pca-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnms%2Fltdb-pca-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnms%2Fltdb-pca-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnms%2Fltdb-pca-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnms","download_url":"https://codeload.github.com/mnms/ltdb-pca-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241274476,"owners_count":19937199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T15:22:01.198Z","updated_at":"2025-10-28T16:19:55.498Z","avatar_url":"https://github.com/mnms.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 목적\n\nREST API 기반 질의 및 PCA 연산을 위해 개발 및 환경을 구축함\n\n\n\n# 운영\n\n## 테이블 생성\n\n```\ncurl --location --request POST http://10.40.88.92:8765/api/create --header \"Content-Type: text/plain\" --data 'create'\n```\n\n## 테이블 제거\n```\ncurl --location --request POST http://10.40.88.92:8765/api/drop --header \"Content-Type: text/plain\" --data 'drop' \n```\n\n## Query\n```\n[svcapp_su@BPP-TVIEW-AIOPS-SEARCH01 ~]$ curl --location --request POST http://10.40.88.92:8765/api/query --header \"Content-Type: text/plain\" --data '{\"query\":\"SELECT project_id, instance_id, feature_value, cropped_image_path FROM instances2 WHERE model_id = 1 AND (project_id = 5 OR project_id = 108)\"}'\n\n\n{\"elapsed_time\":[22.071696043014526],\"cmd\":[\"SELECT project_id, instance_id, feature_value, cropped_image_path FROM instances2 WHERE model_id = 1 AND (project_id = 5 OR project_id = 108)\"],\"result\":[\"[{\\\"project_id\\\":108,\\\"instance_id\\\":7553625,\\\"feature_value\\\":[0.35542652,0.5420146,0.42736512,0.38785133,0.48206323,0.48518333,0.43490148,0.5042965,0.49428207,0.37250596,0.28475612,0.35937348,0.48797792,0.50746137,0.39251664,0.46511638,0.5962325,0.2686054,0.42894325,0.42551893,0.3258215,0.51388115,0.44065857,0.41618633,0.5295157,0.51960707,0.4763249,0.39503786,0.44422296,0.3771433,0.41929758,0.45370558,0.37161332,0.49084604,0.65738505,0.4750429,0.44083253,0.42128822,0.4113718,0.5934207,0.4469131,0.49588057,0.38446122,0.35168803,0.3548299,0.5160891,0.38118386,0.518747,0.44242555,0.54260063,0.44359797,0.3967149,0.52373546,0.44709077,0.537754,0.47580478,0.39291868,\n```\n\n## PCA\n\nwhere 절을 수정해서 사용('model_id_is_not_null = true'가 반드시 들어가야 함)\nselect에는 'feature_value'가 반드시 있어야 함\n\n```\ncurl --location --request POST http://10.40.88.92:8765/api/pca --header \"Content-Type: text/plain\" --data '{\"query\":\"SELECT project_id, instance_id, feature_value, cropped_image_path FROM instances2 WHERE model_id = 1 AND (project_id = 5 OR project_id = 108)\"}'\n\n\n{\"elapsed_time\":[62.88131785392761],\"query\":[\"SELECT project_id, instance_id, feature_value, cropped_image_path FROM instances2 WHERE model_id = 1 AND (project_id = 5 OR project_id = 108)\"],\"result\":[\"[{\\\"project_id\\\":5,\\\"instance_id\\\":18987,\\\"feature_value_3d\\\":{\\\"type\\\":1,\\\"values\\\":[10.01856613190646,-5.511636906776,0.6778439156438683]},\\\"cropped_image_path\\\":\\\"/metavision/vol1/MEDIA/IMAGE_DATA/crop/18987_120948_00_00085.jpg\\\"}, {\\\"project_id\\\":5,\\\"instance_id\\\":18112,\\\"feature_value_3d\\\":{\\\"type\\\":1,\\\"values\\\":[4.304595613722197,6.863886710889437,-0.5475611387657388]},\\\"cropped_image_path\\\":\\\"/metavision/vol1/MEDIA/IMAGE_DATA/crop/18112_111004_00_00339.jpg\\\"}, {\\\"project_id\\\":5,\\\"instance_id\\\":17578,\\\"feature_value_3d\\\":{\\\"type\\\":1,\\\"values\\\":[-6.268511425783814,8.276896556369845,-4.586932261524279]},\\\"cropped_image_path\\\":\\\"/metavision/vol1/MEDIA/IMAGE_DATA/crop/17578_105421_01_00127.jpg\\\"}, ...\n\n```\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnms%2Fltdb-pca-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnms%2Fltdb-pca-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnms%2Fltdb-pca-app/lists"}