SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Downloaden Sie, um offline zu lesen
실전 예제로 배우는
            집단지성 프로그래밍 Ch5
                 chois79




12년 3월 18일 일요일
현재까지

                  집단지성 애플리케이션 아키텍트 및 개념

                  데이터 수집: 태그

                  애플리케이션 내의 콘텐츠 유형

                 이 장에서는

                  외부 데이터 수집: 블로그


12년 3월 18일 일요일
블로고 스피어
                 의미

                  커뮤니티나 소셜 네트워크 역활을 하는 모든 블로그들
                  의 집합

                 블로그 트래킹 프로바이더

                  블로그 전문 검색 서비스 제공 업체

                 외부 집다지성 활용

                  외부 콘텐츠 수집

                  수집한 콘텐츠 분석


12년 3월 18일 일요일
블로그 검색을 위한
                  프레임워크 구축



12년 3월 18일 일요일
블로그 검색
                    블로그 검색의 4단계

                                  2. 쿼리 해석 후
                                 프로바이더로 전송                 Blog

                  1. 쿼리
                                                    블로그
                           블로그
                                                    트래킹
                           검색기
                                                   프로바이더
                 4. 파싱 후
                 응답 전송            3. 프로바이더가
                                 응답(XML or JSON)           Blog




12년 3월 18일 일요일
send response               from provider

                                                                                Blog   Figure 5.1 Four steps in



                   블로그 검색
                                                                                       searching the blogosphere


                  Therefore, to develop a generic framework, we need the four main interfaces that are
                  shown in figure 5.2:



                 인터페이스 아키텍처
                      I   BlogQueryParameter: captures the query made by the client
                      I   BlogSearcher: translates and submits the query to the provider
                      I   BlogSearchResponseHandler: used by the BlogSearcher to process the response
                          XML
                      I   BlogQueryResult: the canonical response to query




                  Figure 5.2   The generic architecture for the blog searcher



12년 3월 18일 일요일
예제 실행 환경
                 블로그 트래킹 프로바이더

                  Http Open API 제공

                  Response: XML

                 필요 라이브러리

                  Apache http-client: 3.x

                  Apache Xerces-j

                  Apache commons-codec, commons-logging


12년 3월 18일 일요일
Figure 5.9 shows the classes that will extend BlogQueryParameterImpl to configure
                 the URL that the instance of BlogSearcher will access.
                     So far we’ve implemented the base classes for our framework. Now let’s integrate

                       클래스 아키텍처(1/2)
                 various blog-tracking providers. We begin with integrating Technorati, who tracks the
                 largest number of blogs—more than 112.8 million blogs as of September 2008. I
                 selected Technorati and Bloglines for their popularity, as well as to illustrate how to
                 integrate a custom API.

                                                     I           <<Interface>>
                                                              BlogQueryParameter


                                                                  <<realize>>


                                                         C   BlogQueryParameterImpl




                 C   TechnoratSearchBlogQueryParameterImpl                       C    BlogLineSearchBlogQueryParameterImpl




                         C   TechnoratTagBlogQueryParameterImpl             C   RSSFeedBlogQueryParameterImpl


                 Figure 5.9     The classes extending BlogQueryParameterImpl




12년 3월 18일 일요일
                                     Licensed to Lin He <mcaca441@gmail.com>
Implementing the base classes                         127


5      Extending the framework

                      클래스 아키텍처(2/2)
       Figure 5.8 gives an overview of the classes that we build. Basically, for each integration,
       we extend the three classes: BlogSearcherImpl for blog searching, BlogSearch-
       ResponseHandlerImpl for handling the XML response, and BlogQueryParameterImpl
       for configuring the search parameters.




                             <<realize>>
                                                                           <<realize>>

                                                                                         <<realize>>



                                                  <<realize>>




       Figure 5.8    The interfaces and their implementing classes


       Figure 5.9 shows the classes that will extend BlogQueryParameterImpl to configure
    12년 3월 18일 일요일

Weitere ähnliche Inhalte

Andere mochten auch

Fds산업포럼 발족식 발표자료 구태언 변호사
Fds산업포럼 발족식 발표자료 구태언 변호사Fds산업포럼 발족식 발표자료 구태언 변호사
Fds산업포럼 발족식 발표자료 구태언 변호사
TEK & LAW, LLP
 
앙상블 학습 기반의 추천시스템 개발
앙상블 학습 기반의 추천시스템 개발앙상블 학습 기반의 추천시스템 개발
앙상블 학습 기반의 추천시스템 개발
Jungkyu Lee
 

Andere mochten auch (8)

추천시스템과 협업필터링
추천시스템과 협업필터링추천시스템과 협업필터링
추천시스템과 협업필터링
 
Fds산업포럼 발족식 발표자료 구태언 변호사
Fds산업포럼 발족식 발표자료 구태언 변호사Fds산업포럼 발족식 발표자료 구태언 변호사
Fds산업포럼 발족식 발표자료 구태언 변호사
 
7가지 동시성 모델 - 데이터 병렬성
7가지 동시성 모델 - 데이터 병렬성7가지 동시성 모델 - 데이터 병렬성
7가지 동시성 모델 - 데이터 병렬성
 
앙상블 학습 기반의 추천시스템 개발
앙상블 학습 기반의 추천시스템 개발앙상블 학습 기반의 추천시스템 개발
앙상블 학습 기반의 추천시스템 개발
 
아마존 닷컴의 성공신화(최재홍 교수)
아마존 닷컴의 성공신화(최재홍 교수)아마존 닷컴의 성공신화(최재홍 교수)
아마존 닷컴의 성공신화(최재홍 교수)
 
8. Logistic Regression
8. Logistic Regression8. Logistic Regression
8. Logistic Regression
 
집단지성 프로그래밍 07-고급 분류 기법-커널 기법과 svm-01
집단지성 프로그래밍 07-고급 분류 기법-커널 기법과 svm-01집단지성 프로그래밍 07-고급 분류 기법-커널 기법과 svm-01
집단지성 프로그래밍 07-고급 분류 기법-커널 기법과 svm-01
 
집단지성 프로그래밍 02-추천시스템 만들기
집단지성 프로그래밍 02-추천시스템 만들기집단지성 프로그래밍 02-추천시스템 만들기
집단지성 프로그래밍 02-추천시스템 만들기
 

Ähnlich wie 집단지성Ch5

[Hello world 오픈세미나]open api client개발
[Hello world 오픈세미나]open api client개발[Hello world 오픈세미나]open api client개발
[Hello world 오픈세미나]open api client개발
NAVER D2
 
Youtube를활용한app만들기
Youtube를활용한app만들기Youtube를활용한app만들기
Youtube를활용한app만들기
DaeHee Jang
 
Devon 2011-b-5 효과적인 레거시 코드 다루기
Devon 2011-b-5 효과적인 레거시 코드 다루기Devon 2011-b-5 효과적인 레거시 코드 다루기
Devon 2011-b-5 효과적인 레거시 코드 다루기
Daum DNA
 
Kotlin 테스트 코드 결함 Intellij 플러그인 개발기.docx
Kotlin 테스트 코드 결함 Intellij 플러그인 개발기.docxKotlin 테스트 코드 결함 Intellij 플러그인 개발기.docx
Kotlin 테스트 코드 결함 Intellij 플러그인 개발기.docx
ridex92
 

Ähnlich wie 집단지성Ch5 (20)

신입 웹 개발자 포트폴리오 / 댓글 게시판
신입 웹 개발자 포트폴리오 / 댓글 게시판신입 웹 개발자 포트폴리오 / 댓글 게시판
신입 웹 개발자 포트폴리오 / 댓글 게시판
 
Design pattern 4
Design pattern 4Design pattern 4
Design pattern 4
 
[Hello world 오픈세미나]open api client개발
[Hello world 오픈세미나]open api client개발[Hello world 오픈세미나]open api client개발
[Hello world 오픈세미나]open api client개발
 
Nutch Homepage Search Engine
Nutch Homepage Search EngineNutch Homepage Search Engine
Nutch Homepage Search Engine
 
N02 gae v1.1_20110220
N02 gae v1.1_20110220N02 gae v1.1_20110220
N02 gae v1.1_20110220
 
XECon2015 :: [3-2] 오승훈 - XE3 플러그인 제작 소개
XECon2015 :: [3-2] 오승훈 - XE3 플러그인 제작 소개XECon2015 :: [3-2] 오승훈 - XE3 플러그인 제작 소개
XECon2015 :: [3-2] 오승훈 - XE3 플러그인 제작 소개
 
Metaworks3 Framework workbook 2015
Metaworks3 Framework workbook 2015Metaworks3 Framework workbook 2015
Metaworks3 Framework workbook 2015
 
Youtube를활용한app만들기
Youtube를활용한app만들기Youtube를활용한app만들기
Youtube를활용한app만들기
 
Laravel 06.Request LifeCyle
Laravel 06.Request LifeCyleLaravel 06.Request LifeCyle
Laravel 06.Request LifeCyle
 
How_to_choose_the_right_framework
How_to_choose_the_right_frameworkHow_to_choose_the_right_framework
How_to_choose_the_right_framework
 
Devon 2011-b-5 효과적인 레거시 코드 다루기
Devon 2011-b-5 효과적인 레거시 코드 다루기Devon 2011-b-5 효과적인 레거시 코드 다루기
Devon 2011-b-5 효과적인 레거시 코드 다루기
 
IBM Bluemix handson lab_DevOps_Target_Deploy_configutation_java_petclinic_v1.0
IBM Bluemix handson lab_DevOps_Target_Deploy_configutation_java_petclinic_v1.0IBM Bluemix handson lab_DevOps_Target_Deploy_configutation_java_petclinic_v1.0
IBM Bluemix handson lab_DevOps_Target_Deploy_configutation_java_petclinic_v1.0
 
Kotlin 테스트 코드 결함 Intellij 플러그인 개발기.docx
Kotlin 테스트 코드 결함 Intellij 플러그인 개발기.docxKotlin 테스트 코드 결함 Intellij 플러그인 개발기.docx
Kotlin 테스트 코드 결함 Intellij 플러그인 개발기.docx
 
AngularJS 2, version 1 and ReactJS
AngularJS 2, version 1 and ReactJSAngularJS 2, version 1 and ReactJS
AngularJS 2, version 1 and ReactJS
 
구글앱엔진 스터디
구글앱엔진 스터디구글앱엔진 스터디
구글앱엔진 스터디
 
Android DI With Hilt
Android DI With HiltAndroid DI With Hilt
Android DI With Hilt
 
11장 시스템
11장 시스템11장 시스템
11장 시스템
 
[17.02.09] Github introduction (Korean Version)
[17.02.09] Github introduction (Korean Version)[17.02.09] Github introduction (Korean Version)
[17.02.09] Github introduction (Korean Version)
 
Postman과 Newman을 이용한 RestAPI 테스트 자동화 가이드
Postman과 Newman을 이용한 RestAPI 테스트 자동화 가이드 Postman과 Newman을 이용한 RestAPI 테스트 자동화 가이드
Postman과 Newman을 이용한 RestAPI 테스트 자동화 가이드
 
[KGIT_EWD]class03 0322
[KGIT_EWD]class03 0322[KGIT_EWD]class03 0322
[KGIT_EWD]class03 0322
 

Mehr von HyeonSeok Choi

Mehr von HyeonSeok Choi (20)

밑바닥부터시작하는딥러닝 Ch05
밑바닥부터시작하는딥러닝 Ch05밑바닥부터시작하는딥러닝 Ch05
밑바닥부터시작하는딥러닝 Ch05
 
밑바닥부터시작하는딥러닝 Ch2
밑바닥부터시작하는딥러닝 Ch2밑바닥부터시작하는딥러닝 Ch2
밑바닥부터시작하는딥러닝 Ch2
 
프로그래머를위한선형대수학1.2
프로그래머를위한선형대수학1.2프로그래머를위한선형대수학1.2
프로그래머를위한선형대수학1.2
 
알고리즘 중심의 머신러닝 가이드 Ch04
알고리즘 중심의 머신러닝 가이드 Ch04알고리즘 중심의 머신러닝 가이드 Ch04
알고리즘 중심의 머신러닝 가이드 Ch04
 
딥러닝 제대로시작하기 Ch04
딥러닝 제대로시작하기 Ch04딥러닝 제대로시작하기 Ch04
딥러닝 제대로시작하기 Ch04
 
밑바닥부터시작하는딥러닝 Ch05
밑바닥부터시작하는딥러닝 Ch05밑바닥부터시작하는딥러닝 Ch05
밑바닥부터시작하는딥러닝 Ch05
 
함수적 사고 2장
함수적 사고 2장함수적 사고 2장
함수적 사고 2장
 
7가지 동시성 모델 4장
7가지 동시성 모델 4장7가지 동시성 모델 4장
7가지 동시성 모델 4장
 
Bounded Context
Bounded ContextBounded Context
Bounded Context
 
DDD Repository
DDD RepositoryDDD Repository
DDD Repository
 
DDD Start Ch#3
DDD Start Ch#3DDD Start Ch#3
DDD Start Ch#3
 
실무로 배우는 시스템 성능 최적화 Ch8
실무로 배우는 시스템 성능 최적화 Ch8실무로 배우는 시스템 성능 최적화 Ch8
실무로 배우는 시스템 성능 최적화 Ch8
 
실무로 배우는 시스템 성능 최적화 Ch7
실무로 배우는 시스템 성능 최적화 Ch7실무로 배우는 시스템 성능 최적화 Ch7
실무로 배우는 시스템 성능 최적화 Ch7
 
실무로 배우는 시스템 성능 최적화 Ch6
실무로 배우는 시스템 성능 최적화 Ch6실무로 배우는 시스템 성능 최적화 Ch6
실무로 배우는 시스템 성능 최적화 Ch6
 
Logstash, ElasticSearch, Kibana
Logstash, ElasticSearch, KibanaLogstash, ElasticSearch, Kibana
Logstash, ElasticSearch, Kibana
 
실무로배우는시스템성능최적화 Ch1
실무로배우는시스템성능최적화 Ch1실무로배우는시스템성능최적화 Ch1
실무로배우는시스템성능최적화 Ch1
 
HTTP 완벽가이드 21장
HTTP 완벽가이드 21장HTTP 완벽가이드 21장
HTTP 완벽가이드 21장
 
HTTP 완벽가이드 16장
HTTP 완벽가이드 16장HTTP 완벽가이드 16장
HTTP 완벽가이드 16장
 
HTTPS
HTTPSHTTPS
HTTPS
 
HTTP 완벽가이드 6장.
HTTP 완벽가이드 6장.HTTP 완벽가이드 6장.
HTTP 완벽가이드 6장.
 

Kürzlich hochgeladen

Grid Layout (Kitworks Team Study 장현정 발표자료)
Grid Layout (Kitworks Team Study 장현정 발표자료)Grid Layout (Kitworks Team Study 장현정 발표자료)
Grid Layout (Kitworks Team Study 장현정 발표자료)
Wonjun Hwang
 

Kürzlich hochgeladen (7)

캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차
 
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution DetectionMOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
 
Grid Layout (Kitworks Team Study 장현정 발표자료)
Grid Layout (Kitworks Team Study 장현정 발표자료)Grid Layout (Kitworks Team Study 장현정 발표자료)
Grid Layout (Kitworks Team Study 장현정 발표자료)
 
도심 하늘에서 시속 200km로 비행할 수 있는 미래 항공 모빌리티 'S-A2'
도심 하늘에서 시속 200km로 비행할 수 있는 미래 항공 모빌리티 'S-A2'도심 하늘에서 시속 200km로 비행할 수 있는 미래 항공 모빌리티 'S-A2'
도심 하늘에서 시속 200km로 비행할 수 있는 미래 항공 모빌리티 'S-A2'
 
[Terra] Terra Money: Stability and Adoption
[Terra] Terra Money: Stability and Adoption[Terra] Terra Money: Stability and Adoption
[Terra] Terra Money: Stability and Adoption
 
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
 
A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)
 

집단지성Ch5

  • 1. 실전 예제로 배우는 집단지성 프로그래밍 Ch5 chois79 12년 3월 18일 일요일
  • 2. 현재까지 집단지성 애플리케이션 아키텍트 및 개념 데이터 수집: 태그 애플리케이션 내의 콘텐츠 유형 이 장에서는 외부 데이터 수집: 블로그 12년 3월 18일 일요일
  • 3. 블로고 스피어 의미 커뮤니티나 소셜 네트워크 역활을 하는 모든 블로그들 의 집합 블로그 트래킹 프로바이더 블로그 전문 검색 서비스 제공 업체 외부 집다지성 활용 외부 콘텐츠 수집 수집한 콘텐츠 분석 12년 3월 18일 일요일
  • 4. 블로그 검색을 위한 프레임워크 구축 12년 3월 18일 일요일
  • 5. 블로그 검색 블로그 검색의 4단계 2. 쿼리 해석 후 프로바이더로 전송 Blog 1. 쿼리 블로그 블로그 트래킹 검색기 프로바이더 4. 파싱 후 응답 전송 3. 프로바이더가 응답(XML or JSON) Blog 12년 3월 18일 일요일
  • 6. send response from provider Blog Figure 5.1 Four steps in 블로그 검색 searching the blogosphere Therefore, to develop a generic framework, we need the four main interfaces that are shown in figure 5.2: 인터페이스 아키텍처 I BlogQueryParameter: captures the query made by the client I BlogSearcher: translates and submits the query to the provider I BlogSearchResponseHandler: used by the BlogSearcher to process the response XML I BlogQueryResult: the canonical response to query Figure 5.2 The generic architecture for the blog searcher 12년 3월 18일 일요일
  • 7. 예제 실행 환경 블로그 트래킹 프로바이더 Http Open API 제공 Response: XML 필요 라이브러리 Apache http-client: 3.x Apache Xerces-j Apache commons-codec, commons-logging 12년 3월 18일 일요일
  • 8. Figure 5.9 shows the classes that will extend BlogQueryParameterImpl to configure the URL that the instance of BlogSearcher will access. So far we’ve implemented the base classes for our framework. Now let’s integrate 클래스 아키텍처(1/2) various blog-tracking providers. We begin with integrating Technorati, who tracks the largest number of blogs—more than 112.8 million blogs as of September 2008. I selected Technorati and Bloglines for their popularity, as well as to illustrate how to integrate a custom API. I <<Interface>> BlogQueryParameter <<realize>> C BlogQueryParameterImpl C TechnoratSearchBlogQueryParameterImpl C BlogLineSearchBlogQueryParameterImpl C TechnoratTagBlogQueryParameterImpl C RSSFeedBlogQueryParameterImpl Figure 5.9 The classes extending BlogQueryParameterImpl 12년 3월 18일 일요일 Licensed to Lin He <mcaca441@gmail.com>
  • 9. Implementing the base classes 127 5 Extending the framework 클래스 아키텍처(2/2) Figure 5.8 gives an overview of the classes that we build. Basically, for each integration, we extend the three classes: BlogSearcherImpl for blog searching, BlogSearch- ResponseHandlerImpl for handling the XML response, and BlogQueryParameterImpl for configuring the search parameters. <<realize>> <<realize>> <<realize>> <<realize>> Figure 5.8 The interfaces and their implementing classes Figure 5.9 shows the classes that will extend BlogQueryParameterImpl to configure 12년 3월 18일 일요일