"매 specification of a conceptualization (Gruber 1993) — 매 domain 의 entity, class, relation 의 formal definition". Aristotle 의 categories 에서 출발, Tim Berners-Lee 의 Semantic Web (RDF/OWL) 으로 web-scale 구현. 매 2026 의 사용처: knowledge graph (Wikidata, Google KG), biomedical (Gene Ontology, SNOMED CT), enterprise data fabric, LLM 의 retrieval-augmented generation grounding.
매 핵심
매 핵심 구성요소
Class (Concept): 매 entity type (e.g., Person, Drug).
Individual (Instance): 매 구체적 entity (e.g., :alice).
Property: 매 entity 간 또는 entity-literal 의 binary relation.
ObjectProperty: 매 entity → entity (e.g., :hasParent).
DatatypeProperty: 매 entity → literal (e.g., :hasAge xsd:int).
Axiom: 매 logical statement (subClassOf, equivalentClass, disjointWith).
Hierarchy: 매 taxonomy (is-a) + partonomy (part-of).
매 stack
RDF: 매 triple (subject, predicate, object) — graph data model.
RDFS: 매 lightweight schema (subClassOf, domain, range).
OWL 2: 매 description logic 기반 — 매 SROIQ(D), reasoning 가능.
fromrdflibimportGraphg=Graph()g.parse("ontology.ttl",format="turtle")# SPARQL: who was prescribed an antibiotic?q="""
PREFIX : <http://example.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?person ?drug WHERE {
?person :hasPrescribed ?drug .
?drug a/rdfs:subClassOf* :Antibiotic .
}
"""forrowing.query(q):print(row.person,row.drug)
owlready2 (OWL with reasoning)
fromowlready2import*onto=get_ontology("http://example.org/onto.owl")withonto:classPerson(Thing):passclassDrug(Thing):passclassAntibiotic(Drug):passclasshasPrescribed(ObjectProperty):domain=[Person]range=[Drug]alice=Person("alice")amox=Antibiotic("amoxicillin")alice.hasPrescribed.append(amox)sync_reasoner_pellet()# 매 inference: amox is Drug (subclass)
언제: 매 hallucination 감소를 위한 grounding, 매 enterprise data fabric, 매 named-entity resolution against canonical IDs.
언제 X: 매 small unstructured task — overhead 큼. 매 ontology engineering 비용 > 가치.
❌ 안티패턴
OWL Full 사용: 매 reasoning undecidable. 매 OWL 2 DL profile (EL/QL/RL) 사용.
subClassOf 의 오용 as instanceOf: 매 class hierarchy ≠ instance membership.
No URI versioning: 매 schema 진화 시 breakage. 매 owl:versionIRI 사용.
Free-text label only, no canonical URI: 매 alignment 불가능.
Reasoning everything every query: 매 비싸다 — materialize 후 cache.
🧪 검증 / 중복
Verified (Gruber 1993; W3C OWL 2 spec; Foundations of Semantic Web Technologies Hitzler et al.; GraphRAG Microsoft 2024).
신뢰도 A.
🕓 Changelog
날짜
변경
2026-05-08
Phase 1
2026-05-10
Manual cleanup — Ontology FULL with RDF/OWL/SHACL/GraphRAG patterns