# Export auto-generated mappings

**URL:** <https://community.stardog.com/t/export-auto-generated-mappings/1057>\
**Category:** Support\
**Created:** [May 18, 2018, 1:23pm UTC](https://community.stardog.com/t/export-auto-generated-mappings/1057 "2018-05-18T13:23:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@Lars](https://community.stardog.com/u/Lars)\
**Post date:** [May 18, 2018, 1:23pm UTC](https://community.stardog.com/t/export-auto-generated-mappings/1057/1 "2018-05-18T13:23:12Z")

</div>

Hello,

I added a database as a virtual graph and can query fine. I tried to export the mappings to refine them manually (is this the recommended path?) using the command

> stardog-admin.bat virtual mappings

This yields an error message

> Unsupported join condition

What am I dowing wrong ?

Lars

---

<div class="post-metadata">

**Author:** ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)\
**Post date:** [May 18, 2018, 1:48pm UTC](https://community.stardog.com/t/export-auto-generated-mappings/1057/2 "2018-05-18T13:48:26Z")

</div>

Hi Lars,

The generated mappings may include `RefObjectMap` representing a foreign key relationship. These can currently only be exported using the R2RML format. Try adding the `-f r2rml` argument to your mappings command.

Jess

---

<div class="post-metadata">

**Author:** ![Lars](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@Lars](https://community.stardog.com/u/Lars)\
**Post date:** [May 18, 2018, 6:25pm UTC](https://community.stardog.com/t/export-auto-generated-mappings/1057/3 "2018-05-18T18:25:51Z")

</div>

That gives me another message:

> Too many triples to pretty print

Any other idea ?

Lars

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [May 18, 2018, 7:41pm UTC](https://community.stardog.com/t/export-auto-generated-mappings/1057/4 "2018-05-18T19:41:23Z")

</div>

If there are too many mappings for the CLI to return them, your only choice at that point is to make an HTTP call to `/admin/virtual_graphs/{myVGName}/mappings` via cURL, Postman, etc.

---

<div class="post-metadata">

**Author:** ![Lars](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@Lars](https://community.stardog.com/u/Lars)\
**Post date:** [May 19, 2018, 7:39pm UTC](https://community.stardog.com/t/export-auto-generated-mappings/1057/5 "2018-05-19T19:39:16Z")

</div>

Yes, that worked. Many thanks.

Lars

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [June 2, 2018, 7:39pm UTC](https://community.stardog.com/t/export-auto-generated-mappings/1057/6 "2018-06-02T19:39:26Z")

</div>

Closed on June 2, 2018, 7:39pm UTC

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