델이 아니라 데이터 모델이다. 우리는 모델을 빌드할 스크립트를 가지고 있지만, 이제는 모델
을 서비스할 방법도 필요하다. 또 다른 중요한 차이점은 지식 베이스에는 단순한 점수(예:
F1
점수)가 포함되지 않는다는 점이다. 우리가 지표에 관해 더 많이 고민해야 한다는 의미다.
13.3
솔루션 설계
따라서 우리는
Neo4j
를 시작해야 한다. 설치를 완료하면
UI
를 찾기 위해
localhost
:
7474
로
이동한다. 우리는 기성 솔루션을 사용하므로 그래프 데이터베이스를 많이 사용하지는 않을 것
이다. 여기에 중요한 사실이 있다.
그래프 데이터베이스는 데이터를
노드
node
와 노드 간
간선
edge
으로 저장하도록 구축한다. 일반
적으로 노드는 일종의 개체를, 간선은 일종의 관계를 의미한다. 이때 서로 다른 유형의 노드와
서로 다른 유형의 관계가 있을 수 있다. 데이터베이스 외부에서는 그래프 데이터를
CSV
에 쉽
게 저장할 수 있다. 노드에는
CSV
가 있으며 이
CSV
에는 유형에 따라
ID
열, 이름 및 속성이 포
함된다. 간선의 경우에도 유사하다(간선에 관한 행에는 간선이 연결하는 두 노드의
ID
도 있다
는 점 제외). 우리는 속성을 저장하지 않을 것이다.
책에 대한 정보를 저장하는 간단한 시나리오를 생각해보자. 이 시나리오에는 작가, 책
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.