지식 베이스를 저장하려면 데이터베이스가 필요하다. 여기에는 여러 가지 옵션이 있다. 우리는 비교적
잘 알려진 그래프 데이터베이스인
Neo4j
를 사용할 것이다. 그 밖에도 다른 솔루션이 있지만, 그래프 데
이터베이스는 본질적으로 지식 베이스를 용이하게 하는 방식으로 데이터를 구조화한다.
●
Neo4j
의 또 다른 이점은 인간이 쿼리할 수 있는
GUI
와 프로그래밍 쿼리를 위한
REST
API
가 함께 제
공된다는 것이다.
13.2
프로젝트 계획
허용 기준을 정의해보자. 다음과 같은 내용을 수행하는 스크립트가 필요하다.
●
일반적으로 압축된
XML
파일인 위키 덤프를 가져온다.
●
기사 제목과 같은 개체를 추출한다.
●
기사 간 링크와 같은 관계를 추출한다.
●
Neo4j
에 개체 및 관계를 저장한다.
●
지나치게 많은 데이터를 생성할 경우에는 경고한다.
우리는 다음과 같은 작업을 하는 서비스를 원한다.
●
지정된 개체에 대해 ‘
get
related
’ 쿼리를 허용한다. 결과는 적어도 해당 개체의 기사로 연결된 기사여야
한다.
●
500
밀리초 이내에 ‘
get
related
’ 쿼리를 수행한다.
●
사람이 사용할 수 있는 프런트엔드
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.