class name?

17 views
Skip to first unread message

Bohms, H.M. (Michel)

unread,
Feb 10, 2021, 5:16:03 AM2/10/21
to topbrai...@googlegroups.com

Is it possible that a classname starts with a number?

“2L-14”

 

(I experienced an issue in TBC)

 

 

Dr. ir. H.M. (Michel) Bohms
Scientist Specialist
Structural Reliability

T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
michel...@tno.nl

Location

 

This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages.

 

David Price

unread,
Feb 10, 2021, 7:28:35 AM2/10/21
to topbrai...@googlegroups.com
I assume by “class name” you mean the local name part of the URI following the hash or final slash. If not, then ask again and be more clear.

If I remember correctly, there is or was some issue with the local name part of a URI starting with a number wrt being 100% valid following the underlying standards for such things (and I mean down int the lower level standards, not in SHACL or OWL/RDFS).

I do remember odd/occasional cases where the maybe the encoding into TTL or viewing in the UI didn’t correctly use prefixes. If it’s a concern, what I’ve done in the past was always have the URI-building-function include something for the local name that like “ID_” + <integer> to make sure and avoid those cases.

That said, I’ve also worked on projects using TBC and EDG where numbers were used and everything important works. In fact, in some projects the whole local name was an integer cast into a string for use in building the URI. 

So, “2L-14” should be fine even if you occasionally see something a bit odd in a TBC UI, etc.

Cheers,
David

On 10 Feb 2021, at 10:16, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:

Is it possible that a classname starts with a number?
“2L-14”
 
(I experienced an issue in TBC)
 
 
Dr. ir. H.M. (Michel) Bohms
Scientist Specialist
Structural Reliability
T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
michel...@tno.nl
This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages. 
 

-- 
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/15b453a21f0449378912b26d837380ba%40tno.nl.


Bohms, H.M. (Michel)

unread,
Feb 10, 2021, 8:34:05 AM2/10/21
to topbrai...@googlegroups.com

 

Van: topbrai...@googlegroups.com <topbrai...@googlegroups.com> Namens David Price
Verzonden: woensdag 10 februari 2021 13:29
Aan: topbrai...@googlegroups.com
Onderwerp: Re: [topbraid-users] class name?

 

I assume by “class name” you mean the local name part of the URI following the hash or final slash. If not, then ask again and be more clear.

 

Ø    yes

 

If I remember correctly, there is or was some issue with the local name part of a URI starting with a number wrt being 100% valid following the underlying standards for such things (and I mean down int the lower level standards, not in SHACL or OWL/RDFS).

 

Ø    I assume its an rdf-level issue indeed

 

I do remember odd/occasional cases where the maybe the encoding into TTL or viewing in the UI didn’t correctly use prefixes. If it’s a concern, what I’ve done in the past was always have the URI-building-function include something for the local name that like “ID_” + <integer> to make sure and avoid those cases.

 

That said, I’ve also worked on projects using TBC and EDG where numbers were used and everything important works. In fact, in some projects the whole local name was an integer cast into a string for use in building the URI. 

 

So, “2L-14” should be fine even if you occasionally see something a bit odd in a TBC UI, etc.

 

Ø    The actual issue I have now:

 

wn:TL-ZOAB-dl

  rdf:type owl:Class ;

  rdfs:subClassOf wn:TL-PA ;

.

 

 

Client wants:

 

wn:1L-ZOAB-dl

  rdf:type owl:Class ;

  rdfs:subClassOf wn:TL-PA ;

.

 

(being a subclass of asphalt)

 

In TBC:

When I change to 2nd option I get:

 

 

So the name space (“wn”) disappears…

 

 

 

Cheers,

David



On 10 Feb 2021, at 10:16, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:

 

Is it possible that a classname starts with a number?

“2L-14”

 

(I experienced an issue in TBC)

 

 

Dr. ir. H.M. (Michel) Bohms
Scientist Specialist
Structural Reliability

T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
michel...@tno.nl

This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages. 

 

 

-- 
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/15b453a21f0449378912b26d837380ba%40tno.nl.

 

 

--
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.

David Price

unread,
Feb 10, 2021, 8:54:08 AM2/10/21
to topbrai...@googlegroups.com
Yes, as I mentioned I did remember this wrt TBC form and prefixes in this case. I cannot remember the underlying issue but as I said I think there was a time when these were not “valid” wrt some standard.

In any case, everything “works” as far as the semantics are concerned.  If that form is a problem for you/client, then I suggest using the “human label” UI mode (person icon next to Home icon) in Composer where it will show the rdfs:label instead of the local name of the URI. That means you also get the much cleaner looking use of spaces in the UI wrt class and property names.

FWIW Composer is an IDE intended for developers, and there is the human label view mode, so these corner cases are not something likely to ever be “fixed” in Composer.

Cheers,
David



Bohms, H.M. (Michel)

unread,
Feb 10, 2021, 9:09:32 AM2/10/21
to topbrai...@googlegroups.com

It is not just an interface issue

 

Also in the file after save it gives:

 

<https://w3id.org/def//wegennetwerk#1L-ZOAB-dl>

  a owl:Class ;

  rdfs:subClassOf wn:TL-PA ;

.

 

Instead of:

 

wn::1L-ZOAB-dl

  a owl:Class ;

  rdfs:subClassOf wn:TL-PA ;

.

 

So if the spec allows I would just see it as an TBC issue that could be fixed….

 

michel

 

 

Dr. ir. H.M. (Michel) Bohms
Scientist Specialist
Structural Reliability

T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
michel...@tno.nl

Location

 

This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages.

David Price

unread,
Feb 10, 2021, 9:31:55 AM2/10/21
to topbrai...@googlegroups.com

On 10 Feb 2021, at 14:09, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:

It is not just an interface issue
 
Also in the file after save it gives:
 
  a owl:Class ;
  rdfs:subClassOf wn:TL-PA ;
.
 
Instead of:
 
wn::1L-ZOAB-dl
  a owl:Class ;
  rdfs:subClassOf wn:TL-PA ;
.

I think I did also mention I’d seen this in my original reply.

However, semantically there is no difference in whether the prefix is there or not.

 
So if the spec allows I would just see it as an TBC issue that could be fixed….
 

Again, to software this makes zero difference and is not seen as any kind of a priority with customers in general. Almost all our dev effort goes into EDG now, and in fact in 7.0 a new Files feature is coming to support editing RDF files in the browser-based EDG UI. I just did a quick test and see that this corner case is handled as you would expect. The UI looks for the human label and use that if found, but use the local name of the URI if not found. So, you could show your client the data using this approach and it would look much nicer.



Cheers,
David

michel
 
 
Dr. ir. H.M. (Michel) Bohms
Scientist Specialist
Structural Reliability
T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
michel...@tno.nl
<image003.png>
Reply all
Reply to author
Forward
0 new messages