Re: [topbraid-users] Need help in customizing widget

2015-05-19 Thread Holger Knublauch



On 5/20/15 4:25 PM, Shreelakshmi G.M wrote:

I need help in building the browser like interface for the ontology.

I started with the default SWP application based on template.
Instead of single tree as in the template, I need multiple trees on 
top level, so I am using *swa:Tree* tag for each tree.


*arg:id="classTree1" arg:onSelect="swa.loadWithResource('formWindow', 
'resource', resource)" arg:root="itterms:Generalandreference"/>*


Above you are just refreshing one window (formWindow) when selection 
changes. I believe what you'd rather want is to publish a resource 
selection event to the event hub, so that all windows that are 
subscribed to that event can refresh themselves. In the SWA default app 
this is done with a TreeGadget (instead of using a pure Tree):



?instanceSelectedEvent }\" ui:args=\"*\"/>



Have you tried that pattern?

Thanks
Holger




*ViewFormGadget* is working fine with this, but 
I*nstancesGridGadget, FormSearchGadget, GridSearchResultsGadget* are 
not working.


this is what I am using and for instances grid,

* arg:title="Instances">*
*arg:resourceSelectedEvent="{= ?instanceSelectedEvent }" ui:args="*"/>*

**

Is there any example available for this should I use 
*swa:Objects* tag, if so can I get an example for this.


Thanks,
Shreelakshmi
--
You received this message because you are subscribed to the Google 
Group "TopBraid Suite Users", the topics of which include Enterprise 
Vocabulary Network (EVN), Reference Data Manager (RDM), TopBraid 
Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web 
Pages and SPIN.

To post to this group, send email to topbraid-users@googlegroups.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 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Group "TopBraid 
Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), 
Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, TopBraid Insight, 
SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbraid-users@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


[topbraid-users] Need help in customizing widget

2015-05-19 Thread Shreelakshmi G.M
I need help in building the browser like interface for the ontology.

I started with the default SWP application based on template.
Instead of single tree as in the template, I need multiple trees on top 
level, so I am using *swa:Tree* tag for each tree.

**

*ViewFormGadget* is working fine with this, but I*nstancesGridGadget, 
FormSearchGadget, 
GridSearchResultsGadget* are not working.

this is what I am using and for instances grid,

* *
**
**

Is there any example available for this should I use *swa:Objects* tag, if 
so can I get an example for this.

Thanks,
Shreelakshmi

-- 
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, 
TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbraid-users@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] Import from xsd - was this broken in 4.4?

2015-05-19 Thread Irene Polikoff
Jack,

Looking at the detailed list of changes I see some XSD related fixes in
4.4.1 http://www.topquadrant.com/docs/versions/changes-4.4.1.txt.

Could you try with the latest release ­ 4.6?

Irene Polikoff


From:  Jack Hodges 
Reply-To:  
Date:  Tuesday, May 19, 2015 at 6:54 PM
To:  
Subject:  [topbraid-users] Import from xsd - was this broken in 4.4?

I was recently asked a question about importing an XML Schema into TBC.
Knowing how often I do this I figured that answering the question would be a
snap, but trying to import the sample schema failed miserably. I tried some
other files I had previously imported and got the same errors. So I tried
importing with an earlier version and had no problems.

Is there any chance that XSD and/or XML import were broken in 4.4? If so,
was it fixed in a later version? I don't see any recent posts mentioning it
- hence the question.

Thanks,

Jack
-- 
You received this message because you are subscribed to the Google Group
"TopBraid Suite Users", the topics of which include Enterprise Vocabulary
Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid
Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbraid-users@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, 
TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbraid-users@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


[topbraid-users] Import from xsd - was this broken in 4.4?

2015-05-19 Thread Jack Hodges
I was recently asked a question about importing an XML Schema into TBC. 
Knowing how often I do this I figured that answering the question would be 
a snap, but trying to import the sample schema failed miserably. I tried 
some other files I had previously imported and got the same errors. So I 
tried importing with an earlier version and had no problems.

Is there any chance that XSD and/or XML import were broken in 4.4? If so, 
was it fixed in a later version? I don't see any recent posts mentioning it 
- hence the question.

Thanks,

Jack

-- 
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, 
TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbraid-users@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] Newbie question

2015-05-19 Thread Irene Polikoff
Gershon, 

If your goal is to infer new facts, you should look into SPIN rules. Both
SPIN rules and constraints are SPARQL based. The difference is that rules
add new inferred triples, while constraints only check for conformance to
the model and raise constraint violation errors/warning.

I have not seen examples of owl:complementOf in action. I don¹t think it is
used much, probably for the reasons explained in my e-mail. I believe it
would better suit a constraint checking use case then the inferencing use
case. For example, you could say that class A is a complement of class B.
Then, if there are triples {:X a :A. :X a :B.}, you would get a constraint
violation. Of course, the same violation will be raised if you said that :A
was disjoint with :B.

If you are not specifically interested in using owl:complementOf and simply
want an example of how one could infer that a drink that doesn¹t have
caffeine or alcohol, then in SPIN you would attach to :Drink class a rule
that uses SPARQL to looks for all drinks without caffeine and without
alcohol and infer {?this a :HealthyDrink} triple.

If you are looking for a more general rule that would work not just with
drinks but other models you create and you want to use owl:ComplementOf to
document the relationships between classes, then a rule would probably be
attached to some high level class (may be owl:Thing) and it would look for
all resources that are members of a class which subclasses are in the
complementOf relationship. Then, if there is no triple indicating membership
in one of those classes, infer that they are members of the other.

Regards,

Irene Polikoff


From:  Gershon Pollatschek 
Reply-To:  
Date:  Tuesday, May 19, 2015 at 8:51 AM
To:  
Subject:  Re: [topbraid-users] Newbie question

Hi Irene, all,

I will definitively need to look at SPIN constraints. I do have a question
regarding ComplementOf. I cannot find any working example of this in action
and would really like to use this functionality.

Thanks again for your assistance.
Gershon

Am Mittwoch, 13. Mai 2015 18:14:51 UTC+2 schrieb Irene Polikoff:
> Gershon,
> 
> You defined drink as a parent class for alcoholic and caffein classes. This
> means that every member of these classes is also a member of the drink class.
> You then said that healthy is an equivalent class to drink which means that
> every member of the drink class is a member of the healthy class (and vice
> versa). With this, beer, as a member of the alcoholic class, is a member of
> the drink class and a member of the healthy class.
> 
> You then said that healthy is disjoint with alcoholic and caffein. Since it
> contradicts definitions described above, for the model to stay consistent, it
> can only mean that alcoholic and caffein must have no members ­ they can only
> be empty sets.
> 
> You also defined unhealthy as an intersection, so only those drinks that are
> both alcoholic and have caffein would be inferred as unhealthy and you don¹t
> have any of those.
> 
> You could say that unhealthy is a union of alcoholic and caffein and drink is
> a union of healthy and unhealthy. And healthy is a complement of unhealthy.
> This would mean that any drink that is known to be a member of the healthy
> class, can't be a member of the unhealthy class (and vice versa).
> 
> But the open world assumption used in OWL will not allow you to infer that a
> drink that is not explicitly specified to be a member of the unhealthy class,
> must be a member of the healthy class. This is because in the open world, the
> fact that we only know about {:milk a :drink} triple and do not have {:milk a
> :unhealthy} triple doesn¹t mean that such triple may not be discovered in the
> future. In other words, open world doesn¹t support negation as failure. As a
> result, cardinalities, complements and a few other things are not as useful in
> OWL as one may expect.
> 
> I would recommend looking into SPIN
> (http://www.topquadrant.com/technology/sparql-rules-spin/ and
> http://spinrdf.org/spinstack.html) where inferences can use closed world
> assumptions.
> 
> Hope this helps,
> 
> Irene Polikoff
> 
> From:  Gershon Pollatschek  >
> Reply-To:   >
> Date:  Wednesday, May 13, 2015 at 7:41 AM
> To:   >
> Subject:  [topbraid-users] Newbie question
> 
> Hello all,
> 
> I am trying to create a sub-class, which includes all instances that are NOT
> included in a sibling class. I tried ComplementOf and using "no NameOfSibling
> and no NameOfSibling". Both did not perform as expected. In the example
> attached, healty drinks are to be defined as drinks which have no caffeine or
> alcohol.
> 
> I checked all the messages in this group but could not find a solution.
> 
> Could you please point me in the right direction? I am standing on the hosa,
> as they say in german...:-)
> 
> Thank you for your help.
> Gershon
> 
> -- 
> You received this message because you are subscribed to the Google Group
> "TopBraid Suite Users", the topics of which include Enterprise

Re: [topbraid-users] Newbie question

2015-05-19 Thread Gershon Pollatschek
Hi Irene, all,

I will definitively need to look at SPIN constraints. I do have a question 
regarding ComplementOf. I cannot find any working example of this in action 
and would really like to use this functionality.

Thanks again for your assistance.
Gershon

Am Mittwoch, 13. Mai 2015 18:14:51 UTC+2 schrieb Irene Polikoff:
>
> Gershon,
>
> You defined drink as a parent class for alcoholic and caffein classes. 
> This means that every member of these classes is also a member of the drink 
> class. You then said that healthy is an equivalent class to drink which 
> means that every member of the drink class is a member of the healthy class 
> (and vice versa). With this, beer, as a member of the alcoholic class, is a 
> member of the drink class and a member of the healthy class.
>
> You then said that healthy is disjoint with alcoholic and caffein. Since 
> it contradicts definitions described above, for the model to stay 
> consistent, it can only mean that alcoholic and caffein must have no 
> members – they can only be empty sets.
>
> You also defined unhealthy as an intersection, so only those drinks that 
> are both alcoholic and have caffein would be inferred as unhealthy and you 
> don’t have any of those.
>
> You could say that unhealthy is a union of alcoholic and caffein and drink 
> is a union of healthy and unhealthy. And healthy is a complement of 
> unhealthy. This would mean that any drink that is known to be a member of 
> the healthy class, can't be a member of the unhealthy class (and vice 
> versa).
>
> But the open world assumption used in OWL will not allow you to infer that 
> a drink that is not explicitly specified to be a member of the unhealthy 
> class, must be a member of the healthy class. This is because in the open 
> world, the fact that we only know about {:milk a :drink} triple and do not 
> have {:milk a :unhealthy} triple doesn’t mean that such triple may not be 
> discovered in the future. In other words, open world doesn’t support 
> negation as failure. As a result, cardinalities, complements and a few 
> other things are not as useful in OWL as one may expect.
>
> I would recommend looking into SPIN (
> http://www.topquadrant.com/technology/sparql-rules-spin/ and 
> http://spinrdf.org/spinstack.html) where inferences can use closed world 
> assumptions.
>
> Hope this helps,
>
> Irene Polikoff
>
> From: Gershon Pollatschek >
> Reply-To: >
> Date: Wednesday, May 13, 2015 at 7:41 AM
> To: >
> Subject: [topbraid-users] Newbie question
>
> Hello all,
>
> I am trying to create a sub-class, which includes all instances that are 
> NOT included in a sibling class. I tried ComplementOf and using "no 
> NameOfSibling and no NameOfSibling". Both did not perform as expected. In 
> the example attached, healty drinks are to be defined as drinks which have 
> no caffeine or alcohol.
>
> I checked all the messages in this group but could not find a solution.
>
> Could you please point me in the right direction? I am standing on the 
> hosa, as they say in german...:-)
>
> Thank you for your help.
> Gershon
>
> -- 
> You received this message because you are subscribed to the Google Group 
> "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
> Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid 
> Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
> To post to this group, send email to topbrai...@googlegroups.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-user...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, 
TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbraid-users@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


[topbraid-users] Re: Newbie question

2015-05-19 Thread Gershon Pollatschek
Hi Irene,

This helps. I made "unhealty drinks" a subclass of thing and the logic 
works like a charm...:-)

Thank you - this is very much appreciated.

Have a great day.
Gershon

Am Mittwoch, 13. Mai 2015 16:01:47 UTC+2 schrieb Gershon Pollatschek:
>
> Hello all,
>
> I am trying to create a sub-class, which includes all instances that are 
> NOT included in a sibling class. I tried ComplementOf and using "no 
> NameOfSibling and no NameOfSibling". Both did not perform as expected. In 
> the example attached, healty drinks are to be defined as drinks which have 
> no caffeine or alcohol.
>
> I checked all the messages in this group but could not find a solution.
>
> Could you please point me in the right direction? I am standing on the 
> hosa, as they say in german...:-)
>
> Thank you for your help.
> Gershon
>

-- 
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, 
TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbraid-users@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.