Morten, note the black boxes around
the text and the OK button. You need to hit <return> or
click OK for the text area data to be committed.
-- Scott
On 4/29/2013 7:38 AM, morten forfang
wrote:
Hello again,
I'm trying to follow the SPARQLMotionTutorial
(http://www.topquadrant.com/sparqlmotion/tutorial/SPARQLMotionTutorial.pdf)
and I feel embarrassed to not being able to complete exercise 1
even. Bear over with me, it's probably something mundane I'm doing
wrongly.
At step 15 I get an error instead of a new ttl. I include some
screenshots, the error and the exercise 1 .ttl file.
To me as a layman it seems the script error points to a missing
attribute in the LoadUSRegions. I get a feeling this is related to
my additional question below. If I with the debugger run each of
the script elements individually (LoadUSRegions and LoadCountries)
they both fail with an error. If I delete these two, and save the
xml file from http://www.topquadrant.com/topbraid/countries as
countries.xml in my TBC project and drag both US-regions.owl and
countries.xml onto the sparqlmotion graphical composer and connect
these to a new ExportAll, then the two (LoadUSRegions and
LoadCountries) execute (I can in the debugger see there is an
output from each of them). The ExportAll still fails though, due
to a missing string in the baseURI. This also seems related to the
additional question below.
--
Additionally there is another thing I don't understand;
- Looking at the attached screenshots, in the "Edit export all" I
have put in baseURI and targetFilePath. In the .ttl file (after
saving :-D) I find no reference to these. Likewise in the "Edit
LoadUSRegions" I have input a baseURI. In the .ttl there is no
reference to the baseuri here either. Likewise for the url in the
"Edit LoadCountries". It's in the GUI but not in the .ttl file.
I'm thinking if the sparqlmotion interpreter depends on the file I
have attached at the end of this message, then it does make sense
that I get all the errors mentioned above.
Anyway, I'm a newbie, so I expect there to be some stupid little
thing I haven't done or grasped. I'm grateful for any and all
assistance.
Best regards,
Morten F.
-----------------------Error from executing the entire
script---------
Message:Could not execute SPARQLMotion script
Stack trace:
java.lang.reflect.InvocationTargetException
at
org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction$1.run(AbstractExecuteSPARQLMotionAction.java:153)
at
org.topbraidcomposer.core.util.ThreadUtil$1$1.run(ThreadUtil.java:64)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.topbraid.spin.sparqlmotion.modules.SMException: the
string value is missing for sourceFilePath
at
org.topbraid.spin.sparqlmotion.modules.AbstractSMModule.getConfigString(AbstractSMModule.java:494)
at
org.topbraid.spin.sparqlmotion.modules.AbstractSMModule.getConfigString(AbstractSMModule.java:456)
at
org.topbraid.spin.sparqlmotion.modules.AbstractSMModule.getConfigString(AbstractSMModule.java:443)
at
org.topbraid.spin.sparqlmotion.modules.AbstractSMModule.getConfigFile(AbstractSMModule.java:363)
at
org.topbraid.spin.sparqlmotion.lib.internal.ImportRDFFromWorkspaceModule.getBaseURI(ImportRDFFromWorkspaceModule.java:48)
at
org.topbraid.spin.sparqlmotion.lib.internal.ImportRDFFromWorkspaceModule.createGraph(ImportRDFFromWorkspaceModule.java:25)
at
org.topbraid.spin.sparqlmotion.modules.AbstractSMModule.getRDFOutput(AbstractSMModule.java:863)
at
org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.executeModule(ExecutionEngineImpl.java:178)
at
org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.execute(ExecutionEngineImpl.java:120)
at
org.topbraidcomposer.sparqlmotion.views.console.SPARQLMotionConsole.execute(SPARQLMotionConsole.java:79)
at
org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction$1.run(AbstractExecuteSPARQLMotionAction.java:142)
... 2 more
Session Data:
eclipse.buildId=unknown
java.version=1.7.0_17
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
----------------------~/TBCMEWorkspace/SparqlMotion-tutorial.com/exercise1.ttl-------------
# baseURI: http://SparqlMotion-tutorial.com/exercise1
# imports: http://topbraid.org/sparqlmotionlib
@prefix :
<http://SparqlMotion-tutorial.com/exercise1#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sm: <http://topbraid.org/sparqlmotion#> .
@prefix sml: <http://topbraid.org/sparqlmotionlib#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://SparqlMotion-tutorial.com/exercise1>
rdf:type owl:Ontology ;
owl:imports <http://topbraid.org/sparqlmotionlib> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string
.
:ExportAll
rdf:type sml:ExportToRDFFile .
:LoadCountries
rdf:type sml:ImportRDFFromURL ;
sm:next :ExportAll .
:LoadUSRegions
rdf:type sml:ImportRDFFromWorkspace ;
sm:next :ExportAll ;
sml:ignoreImports "false"^^xsd:boolean .
--
-- 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 Ensemble, 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 Ensemble, 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.
|