# Turtle file prefixes are lost when updating solid community-server

**URL:** <https://forum.solidproject.org/t/turtle-file-prefixes-are-lost-when-updating-solid-community-server/4924>\
**Category:** General Discussion\
**Created:** [December 1, 2021, 11:34pm UTC](https://forum.solidproject.org/t/turtle-file-prefixes-are-lost-when-updating-solid-community-server/4924 "2021-12-01T23:34:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anushka](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/anushka/32/3134_2.png) [@Anushka](https://forum.solidproject.org/u/Anushka)\
**Post date:** [December 1, 2021, 11:34pm UTC](https://forum.solidproject.org/t/turtle-file-prefixes-are-lost-when-updating-solid-community-server/4924/1 "2021-12-01T23:34:13Z")

</div>

I am trying to patch a turtle file in solid **[community-server](https://github.com/solid/community-server)** via a mobile app which contains prefixes. The patch works, but the resulting turtle file does not contain the prefixes it had earlier.

Is there some sort of configuration in the server that I need to set in order to keep the turtle prefixes when patching?

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [December 2, 2021, 1:09am UTC](https://forum.solidproject.org/t/turtle-file-prefixes-are-lost-when-updating-solid-community-server/4924/2 "2021-12-02T01:09:59Z")

</div>

The ontologies are missing or the names of the prefixes have changed?

---

<div class="post-metadata">

**Author:** ![Anushka](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/anushka/32/3134_2.png) [@Anushka](https://forum.solidproject.org/u/Anushka)\
**Post date:** [December 2, 2021, 2:23am UTC](https://forum.solidproject.org/t/turtle-file-prefixes-are-lost-when-updating-solid-community-server/4924/3 "2021-12-02T02:23:34Z")

</div>

For instance, if I have the following in a turtle file:

```auto
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.

foaf:Person vcard:role "Administrator".
foaf:Person vcard:Email "abc@gmail.com".

```

after patching it will be:

```auto
<http://xmlns.com/foaf/0.1/Person> <http://www.w3.org/2006/vcard/ns#role> "Administrator".
<http://xmlns.com/foaf/0.1/Person> <http://www.w3.org/2006/vcard/ns#Email> "abcd@gmail.com".

```

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [December 2, 2021, 2:26am UTC](https://forum.solidproject.org/t/turtle-file-prefixes-are-lost-when-updating-solid-community-server/4924/4 "2021-12-02T02:26:59Z")

</div>

That is dependent on the client library that does the patch. Generally there isn’t a way to ensure that the Turtle in the document is in a specific format other than directly writing the Turtle. There is some discussion on a similar issue here : [Compression: Possible or preferable to use prefix / aliases with javascript Solid Dataset?](https://forum.solidproject.org/t/compression-possible-or-preferable-to-use-prefix-aliases-with-javascript-solid-dataset/4611/).

---

<div class="post-metadata">

**Author:** ![Anushka](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/anushka/32/3134_2.png) [@Anushka](https://forum.solidproject.org/u/Anushka)\
**Post date:** [December 3, 2021, 1:21am UTC](https://forum.solidproject.org/t/turtle-file-prefixes-are-lost-when-updating-solid-community-server/4924/6 "2021-12-03T01:21:03Z")

</div>

Thanks @jeffz and @RubenVerborgh. This makes sense. Will see if I can get around this somehow for now.
