Re: [topbraid-users] Help in importing instances to classes in Top Braid Composer

2019-07-18 Thread Irene Polikoff
Monica,

These page describes the process for importing XML when you have a 
corresponding XSD https://topbraidcomposer.org/html/Import_XSD.htm 
. Alternatively, you can 
simply open XML file by double clicking - as described here 
https://topbraidcomposer.org/html/XMap.htm 
.

Spreadsheet import will always create instances of one class. For example, if 
each row contains information about a Person including Organizations they work 
for and Countries they were born in, you can import all information as 
properties of a Person. Then, once in RDF, run some transformations to create 
instances of Organization and Country. The simplest way to do transformation is 
to select a class and then select “Extract class” in the Resource menu. This 
will open a dialog that would let you create instances of another, related 
class and move some of the data to these instances. Other ways to transform 
data include using SPARQL and SPINMap.

There are several different spreadsheet importers. The one you are referring to 
is documented here https://topbraidcomposer.org/html/Import_Spreadsheets.htm 
. Alternatively, you 
could import the same spreadsheet multiple times creating different mappings. 
For an overview of different spreadsheet import capabilities, take a look at 
https://www.topquadrant.com/download/using-topbraid-to-work-with-spreadsheet-data/?wpdmdl=15930=5d31588dcb5ba1563515021
 
.



> On Jul 19, 2019, at 1:21 AM, Monika Yadav  wrote:
> 
> Hello Sir,
> I have data in xml format.
>   I wanted to convert xml to .ttl format in top braid.
>  I am able to import from XSD to  .ttl. But instances of class does not 
> copied by converting from xsd to .ttl because xsd only have structure file. 
> Now please suggest me some way how to import instances to claases in .ttl 
> file in top braid. I have tried the option of " Import from spreadsheet tab 
> delimlited file"  .but again it has impoeted 675 instances of one class only 
> I have 8 classes and this option is not copying imstances of other classes. 
> Please help me out
> 
> -- 
> 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/4cde453b-a462-40f3-ae40-59c311513f47%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/89ED28C9-7DAF-4685-B767-5A98D5ECF0E9%40topquadrant.com.


[topbraid-users] Help in importing instances to classes in Top Braid Composer

2019-07-18 Thread Monika Yadav
Hello Sir,
I have data in xml format.
  I wanted to convert xml to .ttl format in top braid.
 I am able to import from XSD to  .ttl. But instances of class does not 
copied by converting from xsd to .ttl because xsd only have structure file. 
Now please suggest me some way how to import instances to claases in .ttl 
file in top braid. I have tried the option of " Import from spreadsheet tab 
delimlited file"  .but again it has impoeted 675 instances of one class 
only I have 8 classes and this option is not copying imstances of other 
classes. Please help me out

-- 
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/4cde453b-a462-40f3-ae40-59c311513f47%40googlegroups.com.


Re: [topbraid-users] All rules that determine whether something will have a function factory - where?

2019-07-18 Thread Holger Knublauch
Hmm, it's hard to diagnose this problem without seeing the actual files. 
And it is hard for the tool to show a list of functions that do *not* 
work, because it cannot anticipate what you're trying to call.


As a final random guess, maybe there are conflicting namespace prefixes 
assigned to different namespaces, and the system randomly picks the 
"other" one.


Holger


On 18/07/2019 23:31, Jack Hodges wrote:
This happens before and after a refresh of system registries (always 
my first check). This is with TBCME version 6.2.2. I would actually 
like to see the problem with any SPIN function or template flagged in 
the interface. Right now I don't find out until I try to execute it in 
a SPARQL tab from a vocabulary. I do not want to send these kinds of 
requests to the forum if there is documentation somewhere that I can 
print and tape onto my monitor that I can look at when I see this 
warning. Thank you.


On Wednesday, July 17, 2019 at 3:24:10 PM UTC-7, Holger Knublauch wrote:

Does this also happen after you do a refresh of the system
registries (System menu in TBC)? And are we talking about TBC or EDG?

Holger


On 18/07/2019 06:13, Jack Hodges wrote:

I continue to develop logic in spin functions and templates and
sometimes I get a function factory and sometimes I don't. Is
there document that says for a function or a template what rules
must be satisfied to avoid the "X has no function factory" error?
I am naming the files properly (e.g., foo.spin.ttl or
foo.sms.ttl), but there appear to be other requirements. If there
is no such document, does anyone have notes? Thankyou!

Jack
-- 
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 topbrai...@googlegroups.com .
To view this discussion on the web visit

https://groups.google.com/d/msgid/topbraid-users/19451735-f65c-4b08-b1e8-6c5875e9aee4%40googlegroups.com

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


--
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/37ecd910-22aa-420f-86b4-927d031e8d7d%40googlegroups.com 
.

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


--
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/17a65970-f032-c300-9471-d7ee7aca946c%40topquadrant.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] How to pass parameter into inner ui:call

2019-07-18 Thread AdrianP
Thanks, Holger.  That did the trick.

On Tuesday, July 16, 2019 at 6:34:16 PM UTC-6, Holger Knublauch wrote:
>
> Ah Ok, if the issue is to convert a string (teamId) to a URI then maybe try
>
> {= IRI(CONCAT("http://namespace-whatever#; , 
> str(?teamId))) }
>
> Holger
>
>
> On 17/07/2019 10:18, AdrianP wrote:
>
> Thanks, Holger. 
>
> I actually tried to simplify the real code but in doing so I realize I 
> made it misleading.  The parameter for the outer ui:call is not teamId in 
> the actual use case.  It's something that could return multiple teamIds, 
> say something like jerseyColor.  Multiple teams could result but I'd be 
> looking for the players and their former teams for multiple teams by the 
> current teamId.  Does that make sense?
>
> I hadn't noticed the inconsistently escaped double-quotes. They are like 
> that in the real code too.  Seems like that would cause issues but it's 
> (mostly) working as expected except for the parameter to the inner 
> ui:call.  Worth noting that with my small sample set so far I'm only 
> getting one "team" back so far so perhaps the quote issue would reveal 
> itself once I expand my testing.
>
> Should I be trying to ui:concat with formerTeam: and ?teamId   ?   I 
> played around with that but could not get the syntax right.
>
> Thank you, Adrian.
>
> On Tuesday, July 16, 2019 at 5:21:39 PM UTC-6, Holger Knublauch wrote: 
>>
>> Hi Adrian,
>> On 17/07/2019 04:05, AdrianP wrote:
>>
>> Hello,
>>
>> I'm trying to create the following JSON structure for return from a web 
>> service call:
>>
>> "players" : [
>> {
>> "playerId" : "123",
>> "playerName" : "JD Martinez",
>> "playerCurrentTeam" : "Boston Redsox",
>> "teamId" : "1000",
>> "playerFormerTeams" : [
>> "Diamondbacks",
>> "Tigers",
>> "Astros"
>> ]
>> },
>> {
>> "playerId" : "456",
>> "playerName" : "Chris Sale",
>> "playerCurrentTeam" : "Boston Redsox",
>> "teamId" : "1000",
>> "playerFormerTeams" : [
>> "Whitesox",
>> "Dodgers"
>> ]
>> }
>> ]
>>
>> I'm being given access to two SPIN templates to call:
>> 1. returns all current players for a team whose value is passed in as a 
>> parameter.
>> 2. returns all former teams for player whose value is a result of the id 
>> in the first template (1000 in the case above).
>>
>> @prefix former_team:  
>>  .
>>
>> 
>> 
>> 
>> > int-spin:PlayersByTeamIdTemplate }\" ui:varName=\"rs\">
>> > ui:bindVars="?playerId,?playerName,?playerCurrentTeam,?teamId" 
>> ui:resultSet="{= ?rs }">
>> 
>> 
>> 
>> 
>> 
>> > int-spin:FormerTeamsByIdTemplate }\" ui:varName=\"pft_rs\">
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> How do I pass in the teamId result from the first query 
>> (PlayersByTeamIdTemplate) to the second query (FormerTeamsByIdTemplate)?
>> In the example above I've hard-coded it (former_team:1000 to prove it 
>> works and it does (there is a prefix for "former_team").
>>
>> I've tried things like arg:pft=\"{= former_team:?teamId }\" but that 
>> doesn't work.
>>
>> Have you also tried arg:pft="{= ?teamId }"? If that doesn't work, could 
>> you send us the definition of the int-spin:FormerTeamsByIdTemplate query so 
>> that I can see what else could be mismatching?
>>
>> Looking at the snippet above I also do wonder why the " characters are 
>> sometimes escaped with \ and sometimes not...
>>
>> Regards,
>> Holger
>>
>> -- 
> 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 topbrai...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/f308799b-25a1-449c-9f11-564f1c2a8189%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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/c01109b1-ac33-407a-903b-c39cf67ad38b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] Re: qudt revisited

2019-07-18 Thread Anne Wilson
Thank you, Michel.   If the underlying resources are not available, that
also seems like a barrier.

On Thu, Jul 18, 2019 at 12:46 AM 'Bohms, H.M. (Michel)' via TopBraid Suite
Users  wrote:

> I will.
>
> Complexity is ok imho, it’s just that it takes so long to have the
> resources available/online.
>
>
>
>
>
>
>
>
>
>
>
> Dr. ir. H.M. (Michel) Böhms
> Senior Data Scientist
>
> T +31888663107
> M +31630381220
> 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.
>
>
>
>
>
>
>
>
>
> *Van:* topbraid-users@googlegroups.com  
> *Namens
> *AW
> *Verzonden:* woensdag 17 juli 2019 17:06
> *Aan:* TopBraid Suite Users 
> *Onderwerp:* [topbraid-users] Re: qudt revisited
>
>
>
> Hi Michel,
>
>
>
> Just writing to say that I'm interested in following your experience with
> QUDT.We looked into using it at one point.The complexity was
> daunting, and we decided against it for something much simpler of our own
> design.   I hope you'll post further about your experience.
>
>
>
> Anne
>
> --
> 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/a55edefd-58d7-40dc-9ba8-7f900593dcb9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/f99e9bbee1d24ab1a11ed6c2f8d8a7ac%40tno.nl
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMyStHq58tEC0u3o9YKd7Q-35KCqvK3XgBS3%3DibzL8oiPDs%3DLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] All rules that determine whether something will have a function factory - where?

2019-07-18 Thread Jack Hodges
This happens before and after a refresh of system registries (always my 
first check). This is with TBCME version 6.2.2. I would actually like to 
see the problem with any SPIN function or template flagged in the 
interface. Right now I don't find out until I try to execute it in a SPARQL 
tab from a vocabulary. I do not want to send these kinds of requests to the 
forum if there is documentation somewhere that I can print and tape onto my 
monitor that I can look at when I see this warning. Thank you.

On Wednesday, July 17, 2019 at 3:24:10 PM UTC-7, Holger Knublauch wrote:
>
> Does this also happen after you do a refresh of the system registries 
> (System menu in TBC)? And are we talking about TBC or EDG?
>
> Holger
>
>
> On 18/07/2019 06:13, Jack Hodges wrote:
>
> I continue to develop logic in spin functions and templates and sometimes 
> I get a function factory and sometimes I don't. Is there document that says 
> for a function or a template what rules must be satisfied to avoid the "X 
> has no function factory" error? I am naming the files properly (e.g., 
> foo.spin.ttl or foo.sms.ttl), but there appear to be other requirements. If 
> there is no such document, does anyone have notes? Thankyou! 
>
> Jack
> -- 
> 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 topbrai...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/19451735-f65c-4b08-b1e8-6c5875e9aee4%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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/37ecd910-22aa-420f-86b4-927d031e8d7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [topbraid-users] Re: qudt revisited

2019-07-18 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
I will.
Complexity is ok imho, it’s just that it takes so long to have the resources 
available/online.






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


T +31888663107
M +31630381220
E michel.bo...@tno.nl

Location



[cid:image001.gif@01D53D4D.9DF20E00]

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.









Van: topbraid-users@googlegroups.com  Namens AW
Verzonden: woensdag 17 juli 2019 17:06
Aan: TopBraid Suite Users 
Onderwerp: [topbraid-users] Re: qudt revisited

Hi Michel,

Just writing to say that I'm interested in following your experience with QUDT. 
   We looked into using it at one point.The complexity was daunting, and we 
decided against it for something much simpler of our own design.   I hope 
you'll post further about your experience.

Anne
--
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/a55edefd-58d7-40dc-9ba8-7f900593dcb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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/f99e9bbee1d24ab1a11ed6c2f8d8a7ac%40tno.nl.
For more options, visit https://groups.google.com/d/optout.