Q: Prefix does not always conform to EDG Server settings

6 views
Skip to first unread message

Tim Smith

unread,
Apr 23, 2020, 8:54:59 AM4/23/20
to topbrai...@googlegroups.com
Hi,

I set a default prefix in the Default Namespaces and Prefixes settings of:


However, when I view resources on the form in EDG I see this:

URI:
image.png
ID:
image.png
Sometimes, but not always, this shows up in the Class List panel as well.

image.png

It should be pgont:Product.  This isn't a problem, per se, but sometimes it interfers with entering data.  Looking at the creation of a new Property Shape (see screenshot below).  When I select a new property from the pgont: namespace, EDG creates the wrong ID for the property, resulting in an error in the text field.

If I manually edit the p1:pgontology/acronym to be pgont:acronym, the error disappears and I can successfully create the property shape.  Note that I also edit the ID of Definition field to contain the correct prefix.

This seems to be a repeatable issue.

Thanks,

Tim

image.png



Richard Cyganiak

unread,
Apr 23, 2020, 9:08:57 AM4/23/20
to topbraid-users list
Tim,

There is probably another mapping


defined somewhere, either in the Default Namespaces and Prefixes, or in the collection-specific Namespaces and Prefixes on the Settings tab, or in another collection included into the collection.

With those two prefixes, the URI http://ontologies.pg.com/pgontology/Product can be abbreviated two different ways:

- p1:pgontology\#Product
- pgont:Product

For you and me it's obvious that the second option is the desirable one, but EDG isn't particularly smart about choosing the right abbreviation when there's multiple options. It's best to avoid such ambiguous namespace mappings.

Richard


On 23 Apr 2020, at 13:54, Tim Smith <smith...@gmail.com> wrote:

Hi,

I set a default prefix in the Default Namespaces and Prefixes settings of:


However, when I view resources on the form in EDG I see this:

URI:
<image.png>
ID:
<image.png>
Sometimes, but not always, this shows up in the Class List panel as well.

<image.png>

It should be pgont:Product.  This isn't a problem, per se, but sometimes it interfers with entering data.  Looking at the creation of a new Property Shape (see screenshot below).  When I select a new property from the pgont: namespace, EDG creates the wrong ID for the property, resulting in an error in the text field.

If I manually edit the p1:pgontology/acronym to be pgont:acronym, the error disappears and I can successfully create the property shape.  Note that I also edit the ID of Definition field to contain the correct prefix.

This seems to be a repeatable issue.

Thanks,

Tim

<image.png>




--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CAF0Wbn%2BuzevkSDrb8T69DmG0Z%3D27FAvZapjtNr-gYVAwZh4YxQ%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages