Thanks for that. 

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Holger
Knublauch
Sent: Tuesday, 2 December 2008 4:27
To: [email protected]
Subject: [tbc-users] Re: SparqlMotion CreateMap


Yes and (for the record) in the next version (3.0) of TBC, no SELECT
query at all will be necessary for sml:CreateMap, in which case the
system will simply run the default query that Scott has outlined below.

Holger


On Nov 30, 2008, at 7:38 PM, Scott Henninger wrote:

>
> Stuart;  The sml:selectQuery property in CreateMap is the SPARQL query

> that returns a resource that has geo:lat and geo:long values.  I.e.
> your IterateOverSelect is not necessary - put the query directly into 
> the CreateMap module.  Also, the query results have to be a subject 
> (subject as in SOP) with the lat/long properties (not lat/long 
> variables).  Here is a general query that will get all resources that 
> can be mapped:
>
> SELECT ?subject
> WHERE
> {  ?subject geo:lat ?objx .
>   ?subject geo:long ?objy .
> }
>
> You can put that directly into your CreateMap module.
> -- Scott
>
> On Nov 30, 3:39 am, "Stewart Wallace"
> <[EMAIL PROTECTED]> wrote:
>> I am trying the get a CreateMap working at the end of an SM script 
>> and can't seem to get a result.
>>
>> I have tried two approachs.
>>
>> The first comprises:
>>
>> - an sml:importCurrentRDF - no problems there
>> - an sml:SelectResource to get user input on a resource (selecting a 
>> particular subClass) which is bound to a variable 'orgtype' - no 
>> problems there
>> - an sml:BindBySelect  which runs this query - SELECT ?orgs WHERE {? 
>> orgs
>> rdf:type ?orgtype} - it should return 19 triples
>> - ?orgs is passed to CreateMap which has the query SELECT ?orgs ?lat 
>> ?long WHERE {?orgs geo:lat ?lat. ?orgs geo:long ?long. }
>>
>> The map shows but with only one node on it.  The console tells me 
>> that orgs 
>> =http://www.owl-ontologies.com/unnamed0.owl#Bookshop_1_Abbeys-
>> this is a valid value but only one value - not the 19 I want to see 
>> on the map.
>>
>> I wondered if I needed to iterate over the various values returned by

>> the sml:BindBySelect - so the second approach comprises:
>>
>> - an sml:importCurrentRDF - no problems there
>> - an sml:SelectResource to get user input on a resource (selecting a 
>> particular subClass) which is bound to a variable 'orgtype' - no 
>> problems there
>> - an sml:IterateOverSelect which runs the query SELECT ?orgs WHERE 
>> {?orgs rdf:type ?orgtype} (same as above)
>> - the sml:IterateOverSelect has a body which runs the query SELECT ? 
>> orgs
>> ?lat ?long WHERE {?orgs geo:lat ?lat. ?orgs geo:long ?long. }
>> - the sml:IterateOverSelect is followed by the sml:CreateMap
>>
>> The IterateOverSelect appears to iterate over the expected 19 
>> instances but the map shows nothing.
>>
>> I don't really understand what should be in the CreateMap module - it

>> has the slot for the selectQuery but what should go in there if it is

>> being passed the necessary results (lat, long and all) by the 
>> IterateOverSelect?  I can't find an example in the doco which 
>> actually shows the inside of a CreateMap module.
>>
>> Any assistance much appreciated.
>>
>> Stewart Wallace
>>
>> _____________________________________________________________________
>> __________________________ This email and any files transmitted with 
>> it are intended solely for the use of the addressee(s) and may 
>> contain information that is confidential or subject to legal 
>> privilege. If you receive this email and you are not the addressee 
>> (or responsible for delivery of the email to the addressee), please 
>> note that any copying, distribution or use of this email is 
>> prohibited and as such, please disregard the contents of the email, 
>> delete the email and notify the sender immediately.
>> _____________________________________________________________________
>> __________________________
> >





_______________________________________________________________________________________________
This email and any files transmitted with it are intended solely for the use of 
the addressee(s)
and may contain information that is confidential or subject to legal privilege. 
If you receive this
email and you are not the addressee (or responsible for delivery of the email 
to the
addressee), please note that any copying, distribution or use of this email is 
prohibited
and as such, please disregard the contents of the email, delete the email and 
notify the sender
immediately.
_______________________________________________________________________________________________


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to