[topbraid-users] prefix

2021-09-23 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
And moreover:

[cid:image001.png@01D7B0BC.5C6349B0]

I thought i had to declare all used prefixes...
But this second one stays red




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

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

Location



[cid:image002.gif@01D7B0BC.5C6349B0]

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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/dc34ac9629644a55b6d2f2820cedecef%40tno.nl.


RE: [topbraid-users] define transform rule

2021-09-23 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
Ok, i tried:

[cid:image001.png@01D7B0BB.B6965F40]

But the query stays red….




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

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

Location



[cid:image002.gif@01D7B0BB.B6965F40]

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: topbraid-users@googlegroups.com  On 
Behalf Of David Price
Sent: Thursday, September 23, 2021 3:08 PM
To: topbraid-users@googlegroups.com
Subject: Re: [topbraid-users] define transform rule




On 23 Sep 2021, at 13:44, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

Think you did not confuse me with target. I meant target class being the class 
i want to transform to...in the target ontology sa.

I think the below pattern does not do the job for me.
I have to create new instances of sa:Project etc. based on the existing 
MonsterLaag instance.

Based on!

Yes, I understood that.



That is...i use an attribute value of that instance to create an new target 
instance. Being projectNaam.

This transformation will in a sense normalise my original excel relation 
splitting it into subtables.

I just need to find again the way to create such an instance.

Some swp function i used to use in spin in the past.. and bind the result 
in a where clause i think...
???

SPARQL functions probably. BIND, IRI, CONCAT are usually enough.

See https://www.w3.org/TR/sparql11-query/#func-iri

Cheers,
David




Op 23 sep. 2021 13:50 schreef David Price 
mailto:dpr...@topquadrant.com>>:
Not quite and I think I confused you by mentioning “target” by which I did NOT 
mean sh:targetClass.

Put the actual SPARQLRule against the source class so that $this refers to 
instances of that class. There is no need for TripleRule. More like this but 
using $this in the WHERE rule to iterate through the instances of the class:

add to the source class sa-input:Monsterlaag :

 sh:rule [
a sh:SPARQLRule ;
sh:prefixes sa: ;
sh:construct """
  CONSTRUCT {
 ?uri rdf:type 
sa:Project .
  }
  WHERE {
 ?someproject 
sa-input:projectNaam ?projectNaam .
 ? Uri = ….( 
projectNaam)
  }
  """ ;
  ] ;
.

but

WHERE {
$this sa-input:SomeAttrOf Monsterlaag ?value .
$this sa-input:SomeOtherAttrOf Monsterlaag ?valueother .
Etc

Cheers,
David



On 23 Sep 2021, at 12:22, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

  Ahh, ok, so in my case I would add to the source class 
sa-input:Monsterlaag :

sh:rule [
a sh:TripleRule ;
sh:subject (sh:this ATTRIBUTE projectName as URI) ;
sh:predicate rdf:type ;
sh:object sa:Project ;
  ] .

Apart from the yellow I can also think of putting the rule at the target:

sa:ProjectShape
  a sh:NodeShape ;
  sh:targetClass sa:Project ;
  sh:rule [
a sh:SPARQLRule ;
sh:prefixes sa: ;
sh:construct """
  CONSTRUCT {
 ?uri rdf:type 
sa:Project .
  }
  WHERE {
 ?someproject 
sa-input:projectNaam ?projectNaam .
 ? Uri = ….( 
projectNaam)
  }
  """ ;
  ] ;
.

Again having a similar yellow part I have to find the right predefined function 
for…

???



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

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

Location





This message may contain information that is not intended for you. If you are 
not the addressee or if this message 

[topbraid-users] edg search results for classes

2021-09-23 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
In:

[cid:image001.png@01D7B0B6.98D26260]

When I type sa:Project in the quick search no results are shown...
As you can see it IS there ...

Normal or full text search, same issue

Gr 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
E michel.bo...@tno.nl

Location



[cid:image002.gif@01D7B0B6.98D26260]

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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/92b286afa3424ae2b2270bbaa519c118%40tno.nl.


RE: [topbraid-users] prefix use in edg

2021-09-23 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
Hi David

There seems to be no duplicate prefix.
I checked the imported files (1xsa, 1xsa-input).

And the name space settings say:

PREFIX dash: http://datashapes.org/dash#
PREFIX dc: http://purl.org/dc/elements/1.1/
PREFIX dct: http://purl.org/dc/terms/
PREFIX edg: http://edg.topbraid.solutions/model/
PREFIX graphql: http://datashapes.org/graphql#
PREFIX metadata: http://topbraid.org/metadata#
PREFIX nen2660: https://w3id.org/nen2660/def#
PREFIX nen2660-term: https://w3id.org/nen2660/term#
PREFIX owl: http://www.w3.org/2002/07/owl#
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 sa: https://w3id.org/sa/def#
PREFIX sh: http://www.w3.org/ns/shacl#
PREFIX skos: http://www.w3.org/2004/02/skos/core#
PREFIX skosxl: http://www.w3.org/2008/05/skos-xl#
PREFIX teamwork: http://topbraid.org/teamwork#
PREFIX time: http://www.w3.org/2006/time#
PREFIX unit: http://qudt.org/vocab/unit/
PREFIX xsd: http://www.w3.org/2001/XMLSchema#

“sa”  is there only once…

But….

I look again and:

[cid:image001.png@01D7B0B6.0A64E5C0]

So I guess, somewhere some refresh issue 
Maybe solved by switching tabs….

Thx 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
E michel.bo...@tno.nl

Location



[cid:image002.gif@01D7B0B6.0A64E5C0]

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: topbraid-users@googlegroups.com  On 
Behalf Of David Price
Sent: Thursday, September 23, 2021 4:30 PM
To: topbraid-users@googlegroups.com
Subject: Re: [topbraid-users] prefix use in edg

Sounds like duplicate prefix is consuing EDG. Choose one or the other and 
delete the duplicate and see if that fixed things.

Cheers,
David


On 23 Sep 2021, at 10:33, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

When importing an ontology in EDG (in an existing ontology)
I see the prefix is not used.

In the imported file it says:
@prefix sa: https://w3id.org/sa/def# .

In the edg/settings tab taken over:
PREFIX sa: https://w3id.org/sa/def#

But I see in the ontology:



So no prefixes for the 4 subclasses…

Thx for help, 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
E michel.bo...@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.





--
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/17e5f04bbda34910ad94ea87b746f0e4%40tno.nl.

UK +44 (0) 7788 561308
US +1 (336) 283-0808

--
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/20441DDF-FE43-424E-9478-72A8229ED0E2%40topquadrant.com.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/cb0c9313db694ff187bc3c4499fd6f5d%40tno.nl.


Re: [topbraid-users] prefix use in edg

2021-09-23 Thread David Price
Sounds like duplicate prefix is consuing EDG. Choose one or the other and 
delete the duplicate and see if that fixed things.

Cheers,
David

> On 23 Sep 2021, at 10:33, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
>  wrote:
> 
> When importing an ontology in EDG (in an existing ontology)
> I see the prefix is not used.
>  
> In the imported file it says:
> @prefix sa: https://w3id.org/sa/def#  .
>  
> In the edg/settings tab taken over:
> PREFIX sa: https://w3id.org/sa/def# 
>  
> But I see in the ontology:
>  
> 
>  
> So no prefixes for the 4 subclasses…
>  
> Thx for help, 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
> E michel.bo...@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. 
>  
> 
> -- 
> 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-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/17e5f04bbda34910ad94ea87b746f0e4%40tno.nl
>  
> .

UK +44 (0) 7788 561308
US +1 (336) 283-0808‬

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/20441DDF-FE43-424E-9478-72A8229ED0E2%40topquadrant.com.


Re: [topbraid-users] hiding assets from menus or lists - but giving view permissions

2021-09-23 Thread Irene Polikoff
It sounds like you are wanting to hide Asset Collections, not assets.

If a user has view privileges for an asset collection, it will appear in the 
list of collections, quick navigation/hamburger menu, etc.

> On Sep 22, 2021, at 11:38 PM, Holger Knublauch  wrote:
> 
> 
> I am afraid the short answer is no, we don't have such features. Other 
> colleagues may have additional input.
> 
> There is dash:hidden which you can theoretically use to hide skos:Concepts 
> from the Taxonomy tree, but that's about it.
> 
> Holger
> 
> 
> On 2021-09-23 1:13 pm, Simon Opper wrote:
>> Hi TQ crew
>> 
>> Is there a way to hide assets from the edg UI which are required imports, 
>> but maintain required view permissions so that any top level graph e.g. the 
>> top level taxonomy is shown in menus but not (some or all of ) its imports?
>> 
>> e.g. give view permissions for users (via roles and governance singleton) to 
>> imported graphs such as ontologies and shapes or customisations ontologies, 
>> (as far as I'm aware required to allow a user to view the top level asset) 
>> but hide these assets from:
>> 1. the the main EDG home screen;
>> 2. the "quick navigation to your collections" 
>> 3. the table view of asset collections 
>> 
>> We are working on governance models for user and role permissions but 
>> haven't come across a method to hide assets.
>> 
>> Many thanks in advance
>> 
>> Simon
>> -- 
>> 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-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/86fe6c0c-eca9-4620-96ca-f78d01761861n%40googlegroups.com.
> -- 
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/652215e6-4fc1-d546-2b52-c92f1ffef803%40topquadrant.com.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/3A89FAFF-82B6-450A-BFFF-1AFE98CCF205%40topquadrant.com.


Re: [topbraid-users] define transform rule

2021-09-23 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
Thx David
I'l try that.

Op 23 sep. 2021 15:08 schreef David Price :


On 23 Sep 2021, at 13:44, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

Think you did not confuse me with target. I meant target class being the class 
i want to transform to...in the target ontology sa.

I think the below pattern does not do the job for me.
I have to create new instances of sa:Project etc. based on the existing 
MonsterLaag instance.

Based on!

Yes, I understood that.


That is...i use an attribute value of that instance to create an new target 
instance. Being projectNaam.

This transformation will in a sense normalise my original excel relation 
splitting it into subtables.

I just need to find again the way to create such an instance.

Some swp function i used to use in spin in the past.. and bind the result 
in a where clause i think...
???

SPARQL functions probably. BIND, IRI, CONCAT are usually enough.

See https://www.w3.org/TR/sparql11-query/#func-iri

Cheers,
David



Op 23 sep. 2021 13:50 schreef David Price 
mailto:dpr...@topquadrant.com>>:
Not quite and I think I confused you by mentioning “target” by which I did NOT 
mean sh:targetClass.

Put the actual SPARQLRule against the source class so that $this refers to 
instances of that class. There is no need for TripleRule. More like this but 
using $this in the WHERE rule to iterate through the instances of the class:

add to the source class sa-input:Monsterlaag :

 sh:rule [
a sh:SPARQLRule ;
sh:prefixes sa: ;
sh:construct """
  CONSTRUCT {
 ?uri rdf:type 
sa:Project .
  }
  WHERE {
 ?someproject 
sa-input:projectNaam ?projectNaam .
 ? Uri = ….( 
projectNaam)
  }
  """ ;
  ] ;
.

but

WHERE {
$this sa-input:SomeAttrOf Monsterlaag ?value .
$this sa-input:SomeOtherAttrOf Monsterlaag ?valueother .
Etc

Cheers,
David



On 23 Sep 2021, at 12:22, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

  Ahh, ok, so in my case I would add to the source class 
sa-input:Monsterlaag :

sh:rule [
a sh:TripleRule ;
sh:subject (sh:this ATTRIBUTE projectName as URI) ;
sh:predicate rdf:type ;
sh:object sa:Project ;
  ] .

Apart from the yellow I can also think of putting the rule at the target:

sa:ProjectShape
  a sh:NodeShape ;
  sh:targetClass sa:Project ;
  sh:rule [
a sh:SPARQLRule ;
sh:prefixes sa: ;
sh:construct """
  CONSTRUCT {
 ?uri rdf:type 
sa:Project .
  }
  WHERE {
 ?someproject 
sa-input:projectNaam ?projectNaam .
 ? Uri = ….( 
projectNaam)
  }
  """ ;
  ] ;
.

Again having a similar yellow part I have to find the right predefined function 
for…

???



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

T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
E michel.bo...@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: topbraid-users@googlegroups.com 
mailto:topbraid-users@googlegroups.com>> On 
Behalf Of David Price
Sent: Thursday, September 23, 2021 1:02 PM
To: topbraid-users@googlegroups.com
Subject: Re: [topbraid-users] define transform rule

SHACL rules are defined here:

https://w3c.github.io/shacl/shacl-af/#rules

What I typically do is make a separate graph for the rules and edit it in 
Composer, in the new Files feature or in Source Code editor. You can then 
include that graph and then remove it when the conversion 

Re: [topbraid-users] define transform rule

2021-09-23 Thread David Price


> On 23 Sep 2021, at 13:44, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
>  wrote:
> 
> Think you did not confuse me with target. I meant target class being the 
> class i want to transform to...in the target ontology sa.
> 
> I think the below pattern does not do the job for me.
> I have to create new instances of sa:Project etc. based on the existing 
> MonsterLaag instance.
> 
> Based on!

Yes, I understood that.

> 
> That is...i use an attribute value of that instance to create an new target 
> instance. Being projectNaam.
> 
> This transformation will in a sense normalise my original excel relation 
> splitting it into subtables.
> 
> I just need to find again the way to create such an instance.
> 
> Some swp function i used to use in spin in the past.. and bind the result 
> in a where clause i think...
> ???

SPARQL functions probably. BIND, IRI, CONCAT are usually enough.

See https://www.w3.org/TR/sparql11-query/#func-iri

Cheers,
David

> 
> 
> Op 23 sep. 2021 13:50 schreef David Price :
> Not quite and I think I confused you by mentioning “target” by which I did 
> NOT mean sh:targetClass. 
> 
> Put the actual SPARQLRule against the source class so that $this refers to 
> instances of that class. There is no need for TripleRule. More like this but 
> using $this in the WHERE rule to iterate through the instances of the class:
> 
> add to the source class sa-input:Monsterlaag :
> 
>  sh:rule [
> a sh:SPARQLRule ;
> sh:prefixes sa: ;
> sh:construct """
>   CONSTRUCT {
>  ?uri rdf:type 
> sa:Project .
>   }
>   WHERE {
>  ?someproject 
> sa-input:projectNaam ?projectNaam .
>  ? Uri = ….( 
> projectNaam)
>   }
>   """ ;
>   ] ;
> .
> 
> but 
> 
> WHERE {
> $this sa-input:SomeAttrOf Monsterlaag ?value .
> $this sa-input:SomeOtherAttrOf Monsterlaag ?valueother .
> Etc
> 
> Cheers,
> David
> 
> 
> 
> On 23 Sep 2021, at 12:22, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
> mailto:topbraid-users@googlegroups.com>> 
> wrote:
> 
>   Ahh, ok, so in my case I would add to the source class 
> sa-input:Monsterlaag :
>  
> sh:rule [
> a sh:TripleRule ;
> sh:subject (sh:this ATTRIBUTE projectName as URI) 
> ;
> sh:predicate rdf:type ;
> sh:object sa:Project ;
>   ] .
>  
> Apart from the yellow I can also think of putting the rule at the target:
>  
> sa:ProjectShape
>   a sh:NodeShape ;
>   sh:targetClass sa:Project ;
>   sh:rule [
> a sh:SPARQLRule ;
> sh:prefixes sa: ;
> sh:construct """
>   CONSTRUCT {
>  ?uri rdf:type 
> sa:Project .
>   }
>   WHERE {
>  ?someproject 
> sa-input:projectNaam ?projectNaam .
>  ? Uri = ….( 
> projectNaam)
>   }
>   """ ;
>   ] ;
> .
>  
> Again having a similar yellow part I have to find the right predefined 
> function for…
>  
> ???
>  
>  
> Dr. ir. H.M. (Michel) Bohms
> Scientist Specialist
> Structural Reliability
> T +31 (0)88 866 31 07
> M +31 (0)63 038 12 20
> E michel.bo...@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: topbraid-users@googlegroups.com 
>   > On Behalf Of David Price
> Sent: Thursday, September 23, 2021 1:02 PM
> To: topbraid-users@googlegroups.com 
> Subject: Re: [topbraid-users] define transform rule
>  
> SHACL rules are defined here:
>  
> https://w3c.github.io/shacl/shacl-af/#rules 
> 
>  
> What I 

Re: [topbraid-users] define transform rule

2021-09-23 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
Think you did not confuse me with target. I meant target class being the class 
i want to transform to...in the target ontology sa.

I think the below pattern does not do the job for me.
I have to create new instances of sa:Project etc. based on the existing 
MonsterLaag instance.

Based on!

That is...i use an attribute value of that instance to create an new target 
instance. Being projectNaam.

This transformation will in a sense normalise my original excel relation 
splitting it into subtables.

I just need to find again the way to create such an instance.

Some swp function i used to use in spin in the past.. and bind the result 
in a where clause i think...
???


Op 23 sep. 2021 13:50 schreef David Price :
Not quite and I think I confused you by mentioning “target” by which I did NOT 
mean sh:targetClass.

Put the actual SPARQLRule against the source class so that $this refers to 
instances of that class. There is no need for TripleRule. More like this but 
using $this in the WHERE rule to iterate through the instances of the class:

add to the source class sa-input:Monsterlaag :

 sh:rule [
a sh:SPARQLRule ;
sh:prefixes sa: ;
sh:construct """
  CONSTRUCT {
 ?uri rdf:type 
sa:Project .
  }
  WHERE {
 ?someproject 
sa-input:projectNaam ?projectNaam .
 ? Uri = ….( 
projectNaam)
  }
  """ ;
  ] ;
.

but

WHERE {
$this sa-input:SomeAttrOf Monsterlaag ?value .
$this sa-input:SomeOtherAttrOf Monsterlaag ?valueother .
Etc

Cheers,
David



On 23 Sep 2021, at 12:22, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

  Ahh, ok, so in my case I would add to the source class 
sa-input:Monsterlaag :

sh:rule [
a sh:TripleRule ;
sh:subject (sh:this ATTRIBUTE projectName as URI) ;
sh:predicate rdf:type ;
sh:object sa:Project ;
  ] .

Apart from the yellow I can also think of putting the rule at the target:

sa:ProjectShape
  a sh:NodeShape ;
  sh:targetClass sa:Project ;
  sh:rule [
a sh:SPARQLRule ;
sh:prefixes sa: ;
sh:construct """
  CONSTRUCT {
 ?uri rdf:type 
sa:Project .
  }
  WHERE {
 ?someproject 
sa-input:projectNaam ?projectNaam .
 ? Uri = ….( 
projectNaam)
  }
  """ ;
  ] ;
.

Again having a similar yellow part I have to find the right predefined function 
for…

???



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

T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
E michel.bo...@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: topbraid-users@googlegroups.com 
mailto:topbraid-users@googlegroups.com>> On 
Behalf Of David Price
Sent: Thursday, September 23, 2021 1:02 PM
To: topbraid-users@googlegroups.com
Subject: Re: [topbraid-users] define transform rule

SHACL rules are defined here:

https://w3c.github.io/shacl/shacl-af/#rules

What I typically do is make a separate graph for the rules and edit it in 
Composer, in the new Files feature or in Source Code editor. You can then 
include that graph and then remove it when the conversion is finished.

You define the rules (via sh:rule referencing a sh:SPARQLRule) on the “source” 
classes, and in the WHERE clause $this is instances of that classs, and then 
CONSTRUCT instances of “target" classes.

Cheers,
David


On 23 Sep 2021, at 11:01, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

Hi David

In my input data from 

Re: [topbraid-users] define transform rule

2021-09-23 Thread David Price
Not quite and I think I confused you by mentioning “target” by which I did NOT 
mean sh:targetClass. 

Put the actual SPARQLRule against the source class so that $this refers to 
instances of that class. There is no need for TripleRule. More like this but 
using $this in the WHERE rule to iterate through the instances of the class:

> add to the source class sa-input:Monsterlaag :

>  sh:rule [
> a sh:SPARQLRule ;
> sh:prefixes sa: ;
> sh:construct """
>   CONSTRUCT {
>  ?uri rdf:type 
> sa:Project .
>   }
>   WHERE {
>  ?someproject 
> sa-input:projectNaam ?projectNaam .
>  ? Uri = ….( 
> projectNaam)
>   }
>   """ ;
>   ] ;
> .

but 

WHERE {
$this sa-input:SomeAttrOf Monsterlaag ?value .
$this sa-input:SomeOtherAttrOf Monsterlaag ?valueother .
Etc

Cheers,
David



> On 23 Sep 2021, at 12:22, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
>  wrote:
> 
>   Ahh, ok, so in my case I would add to the source class 
> sa-input:Monsterlaag :
>  
> sh:rule [
> a sh:TripleRule ;
> sh:subject (sh:this ATTRIBUTE projectName as URI) 
> ;
> sh:predicate rdf:type ;
> sh:object sa:Project ;
>   ] .
>  
> Apart from the yellow I can also think of putting the rule at the target:
>  
> sa:ProjectShape
>   a sh:NodeShape ;
>   sh:targetClass sa:Project ;
>   sh:rule [
> a sh:SPARQLRule ;
> sh:prefixes sa: ;
> sh:construct """
>   CONSTRUCT {
>  ?uri rdf:type 
> sa:Project .
>   }
>   WHERE {
>  ?someproject 
> sa-input:projectNaam ?projectNaam .
>  ? Uri = ….( 
> projectNaam)
>   }
>   """ ;
>   ] ;
> .
>  
> Again having a similar yellow part I have to find the right predefined 
> function for…
>  
> ???
>  
>  
> Dr. ir. H.M. (Michel) Bohms
> Scientist Specialist
> Structural Reliability
> T +31 (0)88 866 31 07
> M +31 (0)63 038 12 20
> E michel.bo...@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: topbraid-users@googlegroups.com 
>   > On Behalf Of David Price
> Sent: Thursday, September 23, 2021 1:02 PM
> To: topbraid-users@googlegroups.com 
> Subject: Re: [topbraid-users] define transform rule
>  
> SHACL rules are defined here:
>  
> https://w3c.github.io/shacl/shacl-af/#rules 
> 
>  
> What I typically do is make a separate graph for the rules and edit it in 
> Composer, in the new Files feature or in Source Code editor. You can then 
> include that graph and then remove it when the conversion is finished.
>  
> You define the rules (via sh:rule referencing a sh:SPARQLRule) on the 
> “source” classes, and in the WHERE clause $this is instances of that classs, 
> and then CONSTRUCT instances of “target" classes.
>  
> Cheers,
> David
> 
> 
> On 23 Sep 2021, at 11:01, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
> mailto:topbraid-users@googlegroups.com>> 
> wrote:
>  
> Hi David
>  
> In my input data from big excel I now have for instance the triple:
>  
> 
>  sa-input:projectOmschrijving "bestekk 1654, N317 , Dieren - Hoog Keppel" ;
>  
> I want to use this info to instantiate a separate Project class.
>  
> I understand that here:
> 
>  
> I have to add someway a shacl-af rule doing:
> Insert triple: " Keppel> rdf:type sa:Project
>  
> (actually I have to do that for all rows and because they are all in same 
> project I will get duplicate triples that are only 1 in the end, I 

RE: [topbraid-users] define transform rule

2021-09-23 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
  Ahh, ok, so in my case I would add to the source class 
sa-input:Monsterlaag :

sh:rule [
a sh:TripleRule ;
sh:subject (sh:this ATTRIBUTE projectName as URI) ;
sh:predicate rdf:type ;
sh:object sa:Project ;
  ] .

Apart from the yellow I can also think of putting the rule at the target:

sa:ProjectShape
  a sh:NodeShape ;
  sh:targetClass sa:Project ;
  sh:rule [
a sh:SPARQLRule ;
sh:prefixes sa: ;
sh:construct """
  CONSTRUCT {
 ?uri rdf:type 
sa:Project .
  }
  WHERE {
 ?someproject 
sa-input:projectNaam ?projectNaam .
 ? Uri = ….( 
projectNaam)
  }
  """ ;
  ] ;
.

Again having a similar yellow part I have to find the right predefined function 
for…

???



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

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

Location



[cid:image001.gif@01D7B07D.20F337D0]

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: topbraid-users@googlegroups.com  On 
Behalf Of David Price
Sent: Thursday, September 23, 2021 1:02 PM
To: topbraid-users@googlegroups.com
Subject: Re: [topbraid-users] define transform rule

SHACL rules are defined here:

https://w3c.github.io/shacl/shacl-af/#rules

What I typically do is make a separate graph for the rules and edit it in 
Composer, in the new Files feature or in Source Code editor. You can then 
include that graph and then remove it when the conversion is finished.

You define the rules (via sh:rule referencing a sh:SPARQLRule) on the “source” 
classes, and in the WHERE clause $this is instances of that classs, and then 
CONSTRUCT instances of “target" classes.

Cheers,
David


On 23 Sep 2021, at 11:01, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

Hi David

In my input data from big excel I now have for instance the triple:


 sa-input:projectOmschrijving "bestekk 1654, N317 , Dieren - Hoog Keppel" ;

I want to use this info to instantiate a separate Project class.

I understand that here:


I have to add someway a shacl-af rule doing:
Insert triple: " 
rdf:type sa:Project

(actually I have to do that for all rows and because they are all in same 
project I will get duplicate triples that are only 1 in the end, I hope)

I have to do that for all classes (and for all other classes then the first: 
add also triple relating them)

Can you give my a hint how/where to best define these insert rule?

Thx a lot, 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
E michel.bo...@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.





--
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/f994e032f1c4487c8b99e264295c6142%40tno.nl.

UK +44 (0) 7788 561308
US +1 (336) 283-0808

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

Re: [topbraid-users] define transform rule

2021-09-23 Thread David Price
SHACL rules are defined here:

https://w3c.github.io/shacl/shacl-af/#rules 


What I typically do is make a separate graph for the rules and edit it in 
Composer, in the new Files feature or in Source Code editor. You can then 
include that graph and then remove it when the conversion is finished.

You define the rules (via sh:rule referencing a sh:SPARQLRule) on the “source” 
classes, and in the WHERE clause $this is instances of that classs, and then 
CONSTRUCT instances of “target" classes.

Cheers,
David

> On 23 Sep 2021, at 11:01, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
>  wrote:
> 
> Hi David
>  
> In my input data from big excel I now have for instance the triple:
>  
> 
>  sa-input:projectOmschrijving "bestekk 1654, N317 , Dieren - Hoog Keppel" ;
>  
> I want to use this info to instantiate a separate Project class.
>  
> I understand that here:
> 
>  
> I have to add someway a shacl-af rule doing:
> Insert triple: " Keppel> rdf:type sa:Project
>  
> (actually I have to do that for all rows and because they are all in same 
> project I will get duplicate triples that are only 1 in the end, I hope)
>  
> I have to do that for all classes (and for all other classes then the first: 
> add also triple relating them)
>  
> Can you give my a hint how/where to best define these insert rule?
>  
> Thx a lot, 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
> E michel.bo...@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. 
>  
> 
> -- 
> 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-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/f994e032f1c4487c8b99e264295c6142%40tno.nl
>  
> .

UK +44 (0) 7788 561308
US +1 (336) 283-0808‬

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/E7EF9BDA-AD24-4714-B93F-4D318B20BEFF%40topquadrant.com.


[topbraid-users] define transform rule

2021-09-23 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
Hi David

In my input data from big excel I now have for instance the triple:


 sa-input:projectOmschrijving "bestekk 1654, N317 , Dieren - Hoog Keppel" ;

I want to use this info to instantiate a separate Project class.

I understand that here:
[cid:image002.png@01D7B072.B1296780]

I have to add someway a shacl-af rule doing:
Insert triple: " 
rdf:type sa:Project

(actually I have to do that for all rows and because they are all in same 
project I will get duplicate triples that are only 1 in the end, I hope)

I have to do that for all classes (and for all other classes then the first: 
add also triple relating them)

Can you give my a hint how/where to best define these insert rule?

Thx a lot, 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
E michel.bo...@tno.nl

Location



[cid:image003.gif@01D7B072.B1296780]

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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/f994e032f1c4487c8b99e264295c6142%40tno.nl.


RE: [topbraid-users] edg import xlsx

2021-09-23 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
Worked perfectly. Thx.
So my translation (you call conversion) is now working fine.
I can read all spreadsheet data acc. to the defined simple spreadsheet ontology.

Next step is the data transformation to the target ontology ….
Involving the URI creation etc.
Guess will need some study/advice ….



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

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

Location



[cid:image001.gif@01D7B06F.5664E430]

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: topbraid-users@googlegroups.com  On 
Behalf Of David Price
Sent: Wednesday, September 22, 2021 2:49 PM
To: topbraid-users@googlegroups.com
Subject: Re: [topbraid-users] edg import xlsx

I’ve never tried that, but may work.

Cheers,
David


On 22 Sep 2021, at 13:44, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

Ok my idea:

In TBC i import the xlsx (semantic table variant)
Then I export a ttl for it

I strip the data off, leaving only the one class and column properties

I import this one in edg

Then I can do import by by pattern

Selecting the one class (and prob. the attributes in the mapping…).

Strange idea?



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

T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
E michel.bo...@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: topbraid-users@googlegroups.com 
mailto:topbraid-users@googlegroups.com>> On 
Behalf Of David Price
Sent: Wednesday, September 22, 2021 2:39 PM
To: topbraid-users@googlegroups.com
Subject: Re: [topbraid-users] edg import xlsx

The entity type is the class in the ontology that the importer will make 
instances of. The current EDG graph must have an ontology in its 
settings/includes. That’s what the documentation means:

The Entity type for the imported data field identifies what type of assets you 
will be importing. Each row in the spreadsheet will be brought into EDG as an 
instance of the selected class and you will be able to map spreadsheet columns 
to the declared properties of the class.

FWIW if you create an EDG Ontologies first, you will find this which does 
generate the properties required, just not the class itself:

If you do not yet have a suitable target class: To import property definitions 
from a spreadsheet, create or select a class in the Ontology editor, then use 
Modify > Add property shapes from Spreadsheet columns...

Cheers,
David



On 22 Sep 2021, at 13:26, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

Ok, I tried Import by Pattern

But then I get:



So, it does not takes, as with TBC, the worksheet name as enity type, but it 
expects a type already available…

AS I would like the system to generate the ontology from the first row…what is 
the minimum I have to do now?


Is it true that there is no ontology generation here because:
“ Each row in the spreadsheet will be brought into EDG as an instance of the 
selected class “

So:

  1.  Each row….also the first rows typically having the attribute names
  2.  Selected class, so there should be one to select already……

It feels like:
You have to define the ontology yourself now. And just import the DATA rows….
Please confirm, thx



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

T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
E michel.bo...@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: 'Bohms, H.M. (Michel)' via TopBraid Suite Users 

[topbraid-users] prefix use in edg

2021-09-23 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
When importing an ontology in EDG (in an existing ontology)
I see the prefix is not used.

In the imported file it says:
@prefix sa: https://w3id.org/sa/def# .

In the edg/settings tab taken over:
PREFIX sa: https://w3id.org/sa/def#

But I see in the ontology:

[cid:image002.png@01D7B06E.E30FBEB0]

So no prefixes for the 4 subclasses...

Thx for help, 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
E michel.bo...@tno.nl

Location



[cid:image003.gif@01D7B06E.E30FBEB0]

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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/17e5f04bbda34910ad94ea87b746f0e4%40tno.nl.