# How can declaratively map structured data into a dgraph knowledge graph and query it via dgraph?

**URL:** <https://discuss.dgraph.io/t/how-can-declaratively-map-structured-data-into-a-dgraph-knowledge-graph-and-query-it-via-dgraph/6091>\
**Category:** Users\
**Created:** [March 6, 2020, 9:18am UTC](https://discuss.dgraph.io/t/how-can-declaratively-map-structured-data-into-a-dgraph-knowledge-graph-and-query-it-via-dgraph/6091 "2020-03-06T09:18:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yeahvip](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/yeahvip/32/2683_2.png) [@yeahvip](https://discuss.dgraph.io/u/yeahvip)\
**Post date:** [March 6, 2020, 9:18am UTC](https://discuss.dgraph.io/t/how-can-declaratively-map-structured-data-into-a-dgraph-knowledge-graph-and-query-it-via-dgraph/6091/1 "2020-03-06T09:18:33Z")

</div>

Stardog intelligently rewrites (parts of) SPARQL queries against Stardog into native query syntaxes like SQL, issues the native queries to remote datasources, and then translates the native results into SPARQL results. Virtual Graphs can be used to map both tabular (relational) data from RDBMSs and CSVs as well as semi-structured hierarchical data from NoSQL sources such as MongoDB, Elasticsearch, Cassandra and JSON to RDF.  
Is there any similar function in dgraph to map structured data into a dgraph knowledge graph and query it via graphql for unifying structured enterprise data?

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [March 6, 2020, 5:21pm UTC](https://discuss.dgraph.io/t/how-can-declaratively-map-structured-data-into-a-dgraph-knowledge-graph-and-query-it-via-dgraph/6091/2 "2020-03-06T17:21:05Z")

</div>

From what I understand of the features presented. The short answer to that is no. At least for now.

> [@yeahvip](#):
>
> into a dgraph knowledge graph

Dgraph does not support established knowledge graph standards. You can do it, but it will be a customized approach. No Google or W3C and etc standards.

> e.g. URIs need to be transformed to a node [Get started with Dgraph](https://docs.dgraph.io/mutations/#external-ids)

> [@yeahvip](#):
>
> it via graphql for unifying structured enterprise data?

GraphQL in Dgraph is a very recent feature (It is in beta right now). There is nothing very sophisticated other than the basics of GraphQL specifications.

Cheers.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/2b38fdece2abe5814f2e51bee69d1e67fc304b0a.png) [@system](https://discuss.dgraph.io/u/system)\
**Post date:** [April 5, 2020, 5:22pm UTC](https://discuss.dgraph.io/t/how-can-declaratively-map-structured-data-into-a-dgraph-knowledge-graph-and-query-it-via-dgraph/6091/3 "2020-04-05T17:22:09Z")

</div>

Closed on April 5, 2020, 5:22pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
