# Generic Ontology - Custom properties in ER entity model on entity and/or attribute level

**URL:** <https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944>\
**Category:** General Questions/Discussions\
**Created:** [January 29, 2019, 5:42am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944 "2019-01-29T05:42:20Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArchenROOT](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/archenroot/32/3527_2.png) [@ArchenROOT](https://forums.visual-paradigm.com/u/ArchenROOT)\
**Post date:** [January 29, 2019, 5:42am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/1 "2019-01-29T05:42:20Z")

</div>

I am interested if there is way to extend the schema to support easily custom metadata on entities and/or attributes (columns), so they can be later exported into XML and processed and also will be included in published documentation.

Generic ontology tools give you much bigger range in form of what you can do, maybe you should try to adopt this for later times and new design of VP.

Example requirement:  
I have in data source file information which can be split into 4 different areas from domain model perspective:

- General Context - person, address, etc.
- General Master Data Context - Country, Region mapping tables
- Specific Domain Data - Account, Installation
- Specific Master Data Context - Product, etc.

So I have something like 4 labels which I would like to bind on entities for later usage.

Or is there only way by writing my own VP plugin?

Thanks for any hints.

---

<div class="post-metadata">

**Author:** ![roykeung](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/roykeung/32/2313_2.png) [@roykeung](https://forums.visual-paradigm.com/u/roykeung)\
**Post date:** [January 30, 2019, 2:15am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/2 "2019-01-30T02:15:21Z")

</div>

You can use Tagged Value as custom properties.

Tagged Value can produce using three ways:

- Ad-Hoc (create for specific model when need)
- Default Tagged Value (base on model-type, default created for specific model-type)
- Stereotype (available when specific model applied the stereotype)

For your case, I suggest using Stereotype.  
You can see below page for more details.  
[https://www.visual-paradigm.com/tutorials/how-to-use-stereotypes-and-tagged-values.jsp](https://www.visual-paradigm.com/tutorials/how-to-use-stereotypes-and-tagged-values.jsp)

About “include in published documentation”  
It depends which way you publish documentation,  
but in most of cases, Tagged Value already included by default.

---

<div class="post-metadata">

**Author:** ![ArchenROOT](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/archenroot/32/3527_2.png) [@ArchenROOT](https://forums.visual-paradigm.com/u/ArchenROOT)\
**Post date:** [January 30, 2019, 3:52am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/3 "2019-01-30T03:52:54Z")

</div>

Does tagged values supports ER diagrams?

---

<div class="post-metadata">

**Author:** ![ArchenROOT](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/archenroot/32/3527_2.png) [@ArchenROOT](https://forums.visual-paradigm.com/u/ArchenROOT)\
**Post date:** [January 30, 2019, 5:39pm UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/4 "2019-01-30T17:39:18Z")

</div>

No, just classes are supported.

---

<div class="post-metadata">

**Author:** ![antony](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/antony/32/2411_2.png) [@antony](https://forums.visual-paradigm.com/u/antony)\
**Post date:** [January 31, 2019, 7:54am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/5 "2019-01-31T07:54:57Z")

</div>

Hi Ladislav,

Shapes in ER diagrams also support tagged values, if you cannot find tagged values tab in the specification window of a shape (e.g. Entity), try to look it up from the hidden tabs:

> **[Model element specification window - Visual Paradigm](https://www.visual-paradigm.com/support/documents/vpuserguide/1283/27/42083_modelelement.html)**
>
> Step-by-Step learning guide that shows you what model element specification is and how you can edit element properties through the window.

Hope this helps,

Antony.

---

<div class="post-metadata">

**Author:** ![ArchenROOT](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/archenroot/32/3527_2.png) [@ArchenROOT](https://forums.visual-paradigm.com/u/ArchenROOT)\
**Post date:** [January 31, 2019, 8:01am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/6 "2019-01-31T08:01:25Z")

</div>

> [@antony](#):
>
> Shapes in ER diagrams also support tagged values, if you cannot find tagged values tab in the specification window of a shape (e.g. Entity), try to look it up from the hidden

thank you @antony - I wasn’t aware of this combobox there 😃

---

<div class="post-metadata">

**Author:** ![ArchenROOT](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/archenroot/32/3527_2.png) [@ArchenROOT](https://forums.visual-paradigm.com/u/ArchenROOT)\
**Post date:** [February 5, 2019, 8:34am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/7 "2019-02-05T08:34:16Z")

</div>

@roykeung - is tagged value supported on attribute level as well. See during our analysis, I would like to mark some field as SENSITIVE or other classification, I know I can use documentation, but some Key/Value store is better for such purpose.

Thank you.

---

<div class="post-metadata">

**Author:** ![antony](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/antony/32/2411_2.png) [@antony](https://forums.visual-paradigm.com/u/antony)\
**Post date:** [February 5, 2019, 10:21am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/8 "2019-02-05T10:21:40Z")

</div>

Hi Ladislav,

Most of the model elements in Visual Paradigm can be configured to use stereotypes together with tagged values, class members like attribute and operation support them too. The link Roy posted above shows you how to apply them to actor, but it is no different for attribute.

Here shows how I defined a custom stereotype for attribute called “MyStereotype” with one boolean tagged value “Sensitive” default to false. By selecting from the diagram’s popup menu item “Presentation Options” \> “Show Tagged Values” \> “Show All”, you see I could make the tagged values visible in the diagram as well.

 ![image](https://forums.visual-paradigm.com/uploads/default/original/2X/0/0f499ddbfa6c59ef2a9cf0956287ea690c03ede9.png)

Hope this helps,

Antony.

---

<div class="post-metadata">

**Author:** ![ArchenROOT](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/archenroot/32/3527_2.png) [@ArchenROOT](https://forums.visual-paradigm.com/u/ArchenROOT)\
**Post date:** [February 5, 2019, 3:31pm UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/9 "2019-02-05T15:31:43Z")

</div>

You are right, thx for confirmation, I am just blind :-))

thanks again!

Ladislav

---

<div class="post-metadata">

**Author:** ![ArchenROOT](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/archenroot/32/3527_2.png) [@ArchenROOT](https://forums.visual-paradigm.com/u/ArchenROOT)\
**Post date:** [February 6, 2019, 2:15pm UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/10 "2019-02-06T14:15:44Z")

</div>

@antony @roykeung - so yes, I can add both tagget values or stereotypes which can define tagged values. Thing is that when I publish the project I see:

On entity level  
Only stereo type is visible as parameter in generate documentation

on attribute level  
neither stereotype or tagged value is visible

Is it possible to customize Publisher ? I didn’t find much documentation on this.

I already esteablished automated publishing to web server with VP, so its really nice feature after every commit I have fresh view for public users.

Thanks for any hints and helpful thoughts.

Ladislav

---

<div class="post-metadata">

**Author:** ![peter.wong](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/peter.wong/32/3250_2.png) [@peter.wong](https://forums.visual-paradigm.com/u/peter.wong)\
**Post date:** [February 8, 2019, 2:06am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/11 "2019-02-08T02:06:27Z")

</div>

> [@ArchenROOT](#):
>
> On entity level  
> Only stereo type is visible as parameter in generate documentation
> 
> on attribute level  
> neither stereotype or tagged value is visible

Sorry, on my testing,  
the **class** ’s _Stereotype_ & _Tagged Value_, and **attribute** ’s _Tagged Value_ can be shown,  
but the **attribute** ’s _Stereotype_ is missing.

 ![PublishStereotypeTaggedValues](https://forums.visual-paradigm.com/uploads/default/original/2X/b/b18bc8b0c4471d700df5645d1044367869b22a67.png)  
We will fix to show the attribute’s stereotype.

_PS: My testing result is different to your description. If I misunderstand your problem, may you describe more details? Thanks._

---

<div class="post-metadata">

**Author:** ![ArchenROOT](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/archenroot/32/3527_2.png) [@ArchenROOT](https://forums.visual-paradigm.com/u/ArchenROOT)\
**Post date:** [February 8, 2019, 5:32am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/12 "2019-02-08T05:32:36Z")

</div>

@peter.wong - ok, so this is behavior on Class, but ER Entity has even different behavior from Class, I think only Stereotype on Entity is visible, the rest is not.

It will be valuable to display these as well on Entity layer.

---

<div class="post-metadata">

**Author:** ![ArchenROOT](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/archenroot/32/3527_2.png) [@ArchenROOT](https://forums.visual-paradigm.com/u/ArchenROOT)\
**Post date:** [February 10, 2019, 6:16am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/13 "2019-02-10T06:16:05Z")

</div>

@peter.wong - I checked the ER diagram entity.

I have following defintion of both stereotype and tagged value on ATTRIBUTE level:

 ![image](https://forums.visual-paradigm.com/uploads/default/original/2X/f/f1a83f239c7f7226f4719aec55811af57ebf70b7.png)

 ![image](https://forums.visual-paradigm.com/uploads/default/original/2X/3/3ee350bccdc7a304509f6f4309dcdadc11b4151a.png)

I am just trying to mark attribute as Sensitive, so it is visible in documentation as well.

But in documentation it shows only folloowing on attribute “First Name”:

 ![image](https://forums.visual-paradigm.com/uploads/default/original/2X/0/0574cc6cc61c32fb75bbfb28baa3c9a10347b2bd.png)

So it is possibly bug?

Otherwise Stereotype and tagged values are shown on Entity level, but attribute is missing completely for both stereotype and tagged values.

---

<div class="post-metadata">

**Author:** ![peter.wong](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/peter.wong/32/3250_2.png) [@peter.wong](https://forums.visual-paradigm.com/u/peter.wong)\
**Post date:** [February 11, 2019, 12:57am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/14 "2019-02-11T00:57:31Z")

</div>

Thanks for your information. We will fix it soon.

FYI. the Attribute’s Stereotypes are fixed and ready in latest patch.

---

<div class="post-metadata">

**Author:** ![peter.wong](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/peter.wong/32/3250_2.png) [@peter.wong](https://forums.visual-paradigm.com/u/peter.wong)\
**Post date:** [February 18, 2019, 1:14am UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/15 "2019-02-18T01:14:15Z")

</div>

The fix has been fixed and is ready in latest patch build.

---

<div class="post-metadata">

**Author:** ![ArchenROOT](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/archenroot/32/3527_2.png) [@ArchenROOT](https://forums.visual-paradigm.com/u/ArchenROOT)\
**Post date:** [February 21, 2019, 3:12pm UTC](https://forums.visual-paradigm.com/t/generic-ontology-custom-properties-in-er-entity-model-on-entity-and-or-attribute-level/14944/16 "2019-02-21T15:12:05Z")

</div>

thx for info, will test.
