puzzled (unit:YR as datatype revisited)

5 views
Skip to first unread message

Bohms, H.M. (Michel)

unread,
Nov 22, 2017, 7:19:52 AM11/22/17
to topbrai...@googlegroups.com

I imported qudt:Unit and all its instances:

 

They are all there including YR:

 

 

I also import an ontology stating:

 

qudt:Unit

  rdfs:subClassOf rdfs:Datatype ;

.

 

I now have a property called residualLife which I want to constrain in a shape.

 

When I want to select my unit:YR at sh:datatype I get:

 

 

So qudt:Unit is there but without all the instances!

 

Must be something very simple but what?

Thx again! Michel

 

Ps My guess that it is related to the prefixes in the files containing the actual units.

 

Eg in the file VOCAB_QUDT-UNITS-SPACE-AND-TIME-v2.0.ttl (the latest from github) we have:

 

# baseURI: http://qudt.org/2.0/vocab/unit/space-and-time

# imports: http://qudt.org/2.0/schema/qudt

# imports: http://qudt.org/2.0/schema/qudt/science

# imports: http://qudt.org/2.0/vocab/quantitykind/base

# imports: http://qudt.org/2.0/vocab/unit/base

# imports: http://www.linkedmodel.org/schema/vaem

 

@prefix dc: <http://purl.org/dc/elements/1.1/> .

@prefix dcterms: <http://purl.org/dc/terms/> .

@prefix dimension: <http://qudt.org/vocab/dimension/> .

@prefix owl: <http://www.w3.org/2002/07/owl#> .

@prefix prov: <http://www.w3.org/ns/prov#> .

@prefix quantitykind: <http://qudt.org/vocab/quantitykind/> .

@prefix qudt: <http://qudt.org/schema/qudt/> .

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

@prefix unit: <http://qudt.org/vocab/unit/> .

@prefix vaem: <http://www.linkedmodel.org/schema/vaem#> .

@prefix voag: <http://voag.linkedmodel.org/schema/voag#> .

@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

 

Where maybe the second red should be the same as the first red?

 

But thenif I have multiple such files (ie also VOCAB_QUDT-UNITS-MECHANICS-v2.0.ttl) can I in the end use units from these different files?

 

 

 

 

Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist

+31888663107
+31630381220
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.

 

 

 

 

VOCAB_QUDT-UNITS-SPACE-AND-TIME-v2.0.ttl

Irene Polikoff

unread,
Nov 22, 2017, 9:22:07 AM11/22/17
to topbrai...@googlegroups.com
Your last screenshot shows quit:Unit with a globe icon. Typically, when this happens it means that the type of the resource is unknown.

Are you sure that QUDT is included?

On Nov 22, 2017, at 7:19 AM, Bohms, H.M. (Michel) <michel...@tno.nl> wrote:

I imported qudt:Unit and all its instances:
 
<image001.png>
They are all there including YR:
 
<image002.png>
 
I also import an ontology stating:
 
qudt:Unit
  rdfs:subClassOf rdfs:Datatype ;
.
 
I now have a property called residualLife which I want to constrain in a shape.
 
When I want to select my unit:YR at sh:datatype I get:
 
<image005.jpg>
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.
For more options, visit https://groups.google.com/d/optout.
<VOCAB_QUDT-UNITS-SPACE-AND-TIME-v2.0.ttl>

Bohms, H.M. (Michel)

unread,
Nov 22, 2017, 9:34:06 AM11/22/17
to topbrai...@googlegroups.com

I saw this hint too indeed but when I just browse to it (in the same ontology) it is there:

 

 

and you can also see it is imported:

 

 

 

 

 

Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist

+31888663107
+31630381220
michel...@tno.nl

Location

 

Bohms, H.M. (Michel)

unread,
Nov 22, 2017, 9:36:06 AM11/22/17
to topbrai...@googlegroups.com

 

Similar to the other question on units I see in latest qudt ontology:

 

# baseURI: http://qudt.org/2.0/schema/qudt

# imports: http://www.linkedmodel.org/schema/dtype

# imports: http://www.linkedmodel.org/schema/vaem

# imports: http://www.w3.org/2004/02/skos/core

@prefix provo: <http://www.w3.org/ns/prov#> .

So maybe prefix is wrong here too?

Bohms, H.M. (Michel)

unread,
Nov 22, 2017, 9:44:10 AM11/22/17
to topbrai...@googlegroups.com

 

When I change the prefix to the baseURIs the globe at least disappears

No units yet, but that is likely caused by the same issue for the unit files..

Ill see if that helps, tbc

Bohms, H.M. (Michel)

unread,
Nov 22, 2017, 10:06:39 AM11/22/17
to topbrai...@googlegroups.com

Ok, so it works again with add existing…”

(by doing all the changes to the qudt2 files as attached).

 

But still, not using Add existing but empty line, and then filling in manually unit:YR gives a red text that cannot be chosen..

 

 

(hint: if you “select existing..” first and then manually backspace to nothing and type unit:YR it staus black….)

 

Leaves further:

I have now two (or more) files with units, both having their own/different unit prefix. How can I reuse both in another ontology: do I need to make two diff. prefixes like unit-st and unit-m for resp. reuse of space-time and mechanical units? Guess you have some solution for this in mind for qudt2 architecture….

 

 

 

 

Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist

+31888663107
+31630381220
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.

 

 

 

 

From: topbrai...@googlegroups.com [mailto:topbrai...@googlegroups.com] On Behalf Of Irene Polikoff


Sent: Wednesday, November 22, 2017 3:22 PM
To: topbrai...@googlegroups.com
Subject: Re: [topbraid-users] puzzled (unit:YR as datatype revisited)

 

Your last screenshot shows quit:Unit with a globe icon. Typically, when this happens it means that the type of the resource is unknown.

README.TXT

Irene Polikoff

unread,
Nov 22, 2017, 10:27:37 AM11/22/17
to topbrai...@googlegroups.com
The best practice is to have each prefix declaration in one place only. Otherwise, you may end up with a situation where the same prefix is associated with two different namespaces and then the tool may sometimes resolve the name to one namespace and other times to another namespace.

If, for some reason, you can’t have each prefix declaration be in only one place, you need to be very careful in checking them and making sure that there is one to one correspondence between a prefix and a namespace across all your graphs. 


On Nov 22, 2017, at 10:06 AM, Bohms, H.M. (Michel) <michel...@tno.nl> wrote:

Ok, so it works again with add existing…”
(by doing all the changes to the qudt2 files as attached).
 
But still, not using Add existing but empty line, and then filling in manually unit:YR gives a red text that cannot be chosen..
 
<image001.png>
 
(hint: if you “select existing..” first and then manually backspace to nothing and type unit:YR it staus black….)
 
Leaves further:
I have now two (or more) files with units, both having their own/different unit prefix. How can I reuse both in another ontology: do I need to make two diff. prefixes like unit-st and unit-m for resp. reuse of space-time and mechanical units? Guess you have some solution for this in mind for qudt2 architecture….
 
 
 
Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist

<README.TXT>

Bohms, H.M. (Michel)

unread,
Nov 22, 2017, 11:12:19 AM11/22/17
to topbrai...@googlegroups.com

Right, so can you confirm this is at the moment an issue for qudt2 files?

 

Say 2 files both having unit prefix but related to a different uri (although hsaring large part of that uri)

 

 

 

 

Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist

+31888663107
+31630381220
michel...@tno.nl

Location

 

Reply all
Reply to author
Forward
0 new messages