Hi Tim,
you can use smf:exec to execute an executable from SPARQLMotion. For
example, if you create a Windows batch file my.bat and save it in the
root folder, you can call it from SPARQLMotion (or SWP or whatever) via
BIND (smf:exec("/my.bat") AS ?dummy) .
or instantiate smf:exec as a Function module in your SPARQLMotion
script. Note that \ in SPARQL strings is an escape character, so may
want to use forward-slashes for path expressions.
HTH
Holger
On 9/21/2013 9:48, Tim Smith wrote:
Ok. I don't know how common this is. I'll just create a rename
script. Is there a way to execute it from SPARQLMotion?
Thanks,
Tim
On Sep 20, 2013 7:26 PM, "Scott Henninger" <[email protected]
<mailto:[email protected]>> wrote:
Put another way, the path of least resistance is to modify the
file extensions to .xml. While we could do the processing, 1)
what otherextension names are there and 2) we'd need acouple of
months for this to percolate to a sufficiently high priority.
-- Scott
On 9/21/2013 1:17 AM, Holger Knublauch wrote:
Hi Tim,
I see no alternative to pre-processing with a batch process.
Holger
On 9/21/2013 6:55, Tim Smith wrote:
Hi,
I have a commercial package that generates XML files. I have a
schema for these files and have created a .ttl ontology for said
schema so I can easily process these files.
However, the vendor outputs the files as *.cvxml instead of *.xml.
This seems to be preventing TBC from properly processing these
files.
So, I added an association in TBC's preferences associating
.cvxml with the TBC Semantic XML editor expecting this to tell
TBC that this is really an XML document.
However, this still does not enable TBC to open the docs as
semantic XML and map them into the ontology.
When I try to open any .cvxml file (located in the workspace, of
course) I get the "does not contain a valid base URI" error
message and it will not open it.
When I rename the .cvxml file to .xml it works exactly as
desired/expected - no change to the content of the file.
So, how do I tell TBC (and TBL in the future) that these files
are to be treated as .xml files?
If I can't do that - how do I rename a file from within TBC/TBL?
The end game I'm going for is to have a SM script find all of
the .cvxml files in a directory tree (using tops:files), convert
the XML to rdf, aggregate all the files into one large graph and
do a bunch of processing on the resulting graph.
There are 1000's of files so I can't rename them by hand and
really want to keep all processing inside TBC/L so I would like
to avoid a shell script/bat file rename approach.
Your thoughts are most appreciated!
Thanks,
Tim
--
-- You received this message because you are subscribed to the
Google
Group "TopBraid Suite Users", the topics of which include
Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid
Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:[email protected]>
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
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 [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include
Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid
Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:topbraid-users%[email protected]>
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
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 [email protected]
<mailto:topbraid-users%[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise
Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid
Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
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-users?hl=en
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL
Web Pages and SPIN.
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-users?hl=en
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.