Don,

the recommended way of moving resources (including SM scripts) from  
one file to another is to use the Triples View (Window > Show View >  
Triples).

1) Import (at least temporarily) the SM into your target file
2) Open the Triples view and select the SM script's graph
3) Locate all rdf:type triples belonging to your script. Most likely
     these will be easy to spot because the object of the triples will
     start with an sml: URI.
4) Select and drag and drop those rdf:type triples to the base graph
     (the target of your move process)
5) A confirm dialog will show up, with an option to also move all
     depending triples.  These will be the actual property values of the
     SM modules, including the sm:next triples
6) If desired, remove the owl:imports again from step 1.

Let me know if this is unclear or does not work as expected.

Regards,
Holger


On Oct 30, 2008, at 12:11 PM, donundeen wrote:

>
> yeah, I plan on doing that.
> but right now I have the script in another file with a bunch of other
> stuff. I need to get that script OUT of that file, and into a file by
> itself. I'm looking for a clean way to do that.
>
>
> On Oct 30, 2:35 pm, "Smith, Tim" <[EMAIL PROTECTED]> wrote:
>> You can put the script in a file by itself and then import it into  
>> other
>> scripts that need to use it.
>>
>> Tim
>>
>>> -----Original Message-----
>>> From: [email protected]
>>
>> [mailto:topbraid-composer-
>>
>>> [EMAIL PROTECTED] On Behalf Of donundeen
>>> Sent: Thursday, October 30, 2008 2:26 PM
>>> To: TopBraid Composer Users
>>> Subject: [tbc-users] Copy SparqlMotion Script?
>>
>>> Is there a convenient way to copy a SPARQLMotion script from one
>>> project/file to another?
>>
>>> I've decided to to move all my scripts to an include, in a related
>>> project.
>>> I thought the easiest thing would be to copy the source, but When I
>>> open the "Source Code" tab after opening a script, I only see the  
>>> last
>>> module listed, eg:
>>
>>> :ExportToRDFFile_1
>>>       a       sml:ExportToRDFFile ;
>>>       rdfs:label "Export to RDFFile_1"^^xsd:string ;
>>>       sml:baseURI "http://calaisOutput"^^xsd:string ;
>>>       sml:targetFilePath "calaisOutput.rdf"^^xsd:string .
>>
>>> instead of all the modules.
>>
>>> Is the a better way to copy a script?
> >


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