# Dgraph as Knowledge Graph

**URL:** <https://discuss.dgraph.io/t/dgraph-as-knowledge-graph/13945>\
**Category:** Dgraph\
**Tags:** kind:question\
**Created:** [April 30, 2021, 12:21am UTC](https://discuss.dgraph.io/t/dgraph-as-knowledge-graph/13945 "2021-04-30T00:21:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![reza\_sedighi](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/reza_sedighi/32/7739_2.png) [@reza\_sedighi](https://discuss.dgraph.io/u/reza_sedighi)\
**Post date:** [April 30, 2021, 12:21am UTC](https://discuss.dgraph.io/t/dgraph-as-knowledge-graph/13945/1 "2021-04-30T00:21:51Z")

</div>

Hello,  
I want to know whether it could be possible to have inferencing like Apache Jena for example, while using Dgraph as knowledge graph ?  
thanks

---

<div class="post-metadata">

**Author:** ![chewxy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/chewxy/32/4339_2.png) [@chewxy](https://discuss.dgraph.io/u/chewxy)\
**Post date:** [April 30, 2021, 1:43am UTC](https://discuss.dgraph.io/t/dgraph-as-knowledge-graph/13945/2 "2021-04-30T01:43:59Z")

</div>

Can you give an example of what you mean

---

<div class="post-metadata">

**Author:** ![reza\_sedighi](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/reza_sedighi/32/7739_2.png) [@reza\_sedighi](https://discuss.dgraph.io/u/reza_sedighi)\
**Post date:** [May 1, 2021, 1:49pm UTC](https://discuss.dgraph.io/t/dgraph-as-knowledge-graph/13945/3 "2021-05-01T13:49:11Z")

</div>

I mean kind of inferencing which existed in some RDF triplestores such as Jena or Blazegraph. When some statements are not explicitly mentioned in graph and with inferencing mechanism, added by system. something like Grakn. Thanks

---

<div class="post-metadata">

**Author:** ![anand](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/anand/32/5674_2.png) [@anand](https://discuss.dgraph.io/u/anand)\
**Post date:** [May 1, 2021, 2:20pm UTC](https://discuss.dgraph.io/t/dgraph-as-knowledge-graph/13945/4 "2021-05-01T14:20:53Z")

</div>

Welcome @reza_sedighi  
Dgraph does not support inference or reasoning as possible in triplestores (Dgraph is not designed as a triplestore). However, the [upsert block](https://dgraph.io/docs/mutations/upsert-block/) in Dgraph does have rule-like capability. Please review the [Business Rules with Dgraph blog](https://dgraph.io/blog/post/decisions-with-dgraph/) for an example.

We also support [CDC with Kafka](https://dgraph.io/docs/enterprise-features/change-data-capture/#enable-cdc-with-kafka-sink). It is possible to run an event loop and chain business rules. Please review.

---

<div class="post-metadata">

**Author:** ![reza\_sedighi](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/reza_sedighi/32/7739_2.png) [@reza\_sedighi](https://discuss.dgraph.io/u/reza_sedighi)\
**Post date:** [May 2, 2021, 3:40am UTC](https://discuss.dgraph.io/t/dgraph-as-knowledge-graph/13945/5 "2021-05-02T03:40:45Z")

</div>

Thanks @anand. this could possibly solve the problem. Is this feature existed in open-source edition ? thanks

---

<div class="post-metadata">

**Author:** ![anand](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/anand/32/5674_2.png) [@anand](https://discuss.dgraph.io/u/anand)\
**Post date:** [May 2, 2021, 4:51am UTC](https://discuss.dgraph.io/t/dgraph-as-knowledge-graph/13945/6 "2021-05-02T04:51:05Z")

</div>

The upsert block is part of open source while CDC is an enterprise feature.
