Hi,
I'm working on a little SPARQLMotion script to send location
information to google, get back lat,long data, and add that
information back into my triple store.
I'm not really sure what I'm doing, but this seems like a pretty good
sample app to figure this stuff out.
Anyways, I'm getting this error message, which is probably a result of
something dumb on my part:
my console output when I run the query is:
16:43:16.509: Compiling script...
16:43:16.509: Executing script...
16:43:16.509: - IterateOverSelect_2
16:43:16.509: - ImportSesameRemoteRepository_2
16:43:17.806: - ImportXMLFromURL_2
16:43:17.915: - ConvertXMLToRDF_1
16:43:17.931: - ApplyConstruct_1
Failed to execute SPARQLMotion script:
com.hp.hpl.jena.query.QueryParseException: Line 1, column 12: rethrew:
com.hp.hpl.jena.iri.impl.IRIImplException: Error: 0/ILLEGAL_CHARACTER
in slot 15
Error: com.hp.hpl.jena.query.QueryParseException: Line 1, column 12:
rethrew: com.hp.hpl.jena.iri.impl.IRIImplException: Error: 0/
ILLEGAL_CHARACTER in slot 15
My Construct query is:
CONSTRUCT {?x <http://topbraid.org/sxml#text> ?z} WHERE {?x <http://
topbraid.org/sxml#text> ?z}
is there anything obviously wrong here?
could that above error be caused not by the query , but the xml data
being returned by google?
-- I'm trying to attach the source of the script, but I cant' figure
out how to generate the n3 source of the entire script. how is that
done?
Don; I don't see anything obviously wrong with the script. Is there
really a newline after the 'http://'? That would be a problem. For
the sake of my own sanity, I usually use a format such as:
CONSTRUCT {?x <http://topbraid.org/sxml#text> ?z}
WHERE {?x <http://topbraid.org/sxml#text> ?z .
}
This is an OK query. The query replicates triples, so using it in
FilterByConstruct makes sense.
To export a file to N3, choose the file in the Navigator, choose
Export and Export/Merge/Convert RDF Graphs, then in the "Export into
format" pull-down, choose N3.
-- Scott
On Jul 16, 3:50 pm, donundeen <donund...@gmail.com> wrote:
> Hi,
> I'm working on a little SPARQLMotion script to send location
> information to google, get back lat,long data, and add that
> information back into my triple store.
> I'm not really sure what I'm doing, but this seems like a pretty good
> sample app to figure this stuff out.
> Anyways, I'm getting this error message, which is probably a result of
> something dumb on my part:
> my console output when I run the query is:
> 16:43:16.509: Compiling script...
> 16:43:16.509: Executing script...
> 16:43:16.509: - IterateOverSelect_2
> 16:43:16.509: - ImportSesameRemoteRepository_2
> 16:43:17.806: - ImportXMLFromURL_2
> 16:43:17.915: - ConvertXMLToRDF_1
> 16:43:17.931: - ApplyConstruct_1
> Failed to execute SPARQLMotion script:
> com.hp.hpl.jena.query.QueryParseException: Line 1, column 12: rethrew:
> com.hp.hpl.jena.iri.impl.IRIImplException: Error: 0/ILLEGAL_CHARACTER
> in slot 15
> Error: com.hp.hpl.jena.query.QueryParseException: Line 1, column 12:
> rethrew: com.hp.hpl.jena.iri.impl.IRIImplException: Error: 0/
> ILLEGAL_CHARACTER in slot 15
> My Construct query is:
> CONSTRUCT {?x <http://topbraid.org/sxml#text> ?z} WHERE {?x <http://
> topbraid.org/sxml#text> ?z}
> is there anything obviously wrong here?
> could that above error be caused not by the query , but the xml data
> being returned by google?
> -- I'm trying to attach the source of the script, but I cant' figure
> out how to generate the n3 source of the entire script. how is that
> done?
> Don; I don't see anything obviously wrong with the script. Is there
> really a newline after the 'http://'? That would be a problem. For
> the sake of my own sanity, I usually use a format such as:
> CONSTRUCT {?x <http://topbraid.org/sxml#text> ?z}
> WHERE {?x <http://topbraid.org/sxml#text> ?z .
> }
> This is an OK query. The query replicates triples, so using it in
> FilterByConstruct makes sense.
> To export a file to N3, choose the file in the Navigator, choose
> Export and Export/Merge/Convert RDF Graphs, then in the "Export into
> format" pull-down, choose N3.
> -- Scott
> On Jul 16, 3:50 pm, donundeen <donund...@gmail.com> wrote:
> > Hi,
> > I'm working on a little SPARQLMotion script to send location
> > information to google, get back lat,long data, and add that
> > information back into my triple store.
> > I'm not really sure what I'm doing, but this seems like a pretty good
> > sample app to figure this stuff out.
> > Anyways, I'm getting this error message, which is probably a result of
> > something dumb on my part:
> > my console output when I run the query is:
> > 16:43:16.509: Compiling script...
> > 16:43:16.509: Executing script...
> > 16:43:16.509: - IterateOverSelect_2
> > 16:43:16.509: - ImportSesameRemoteRepository_2
> > 16:43:17.806: - ImportXMLFromURL_2
> > 16:43:17.915: - ConvertXMLToRDF_1
> > 16:43:17.931: - ApplyConstruct_1
> > Failed to execute SPARQLMotion script:
> > com.hp.hpl.jena.query.QueryParseException: Line 1, column 12: rethrew:
> > com.hp.hpl.jena.iri.impl.IRIImplException: Error: 0/ILLEGAL_CHARACTER
> > in slot 15
> > Error: com.hp.hpl.jena.query.QueryParseException: Line 1, column 12:
> > rethrew: com.hp.hpl.jena.iri.impl.IRIImplException: Error: 0/
> > ILLEGAL_CHARACTER in slot 15
> > My Construct query is:
> > CONSTRUCT {?x <http://topbraid.org/sxml#text> ?z} WHERE {?x <http://
> > topbraid.org/sxml#text> ?z}
> > is there anything obviously wrong here?
> > could that above error be caused not by the query , but the xml data
> > being returned by google?
> > -- I'm trying to attach the source of the script, but I cant' figure
> > out how to generate the n3 source of the entire script. how is that
> > done?
Don; I think the error is as it says. There is an "illegal
character" in the query. But I can't reproduce the error, so there is
not much more I can say.
-- Scott
On Jul 17, 8:53 am, donundeen <donund...@gmail.com> wrote:
> On Jul 16, 5:36 pm, Scott Henninger <shennin...@topquadrant.com>
> wrote:
> > Don; I don't see anything obviously wrong with the script. Is there
> > really a newline after the 'http://'? That would be a problem. For
> > the sake of my own sanity, I usually use a format such as:
> > CONSTRUCT {?x <http://topbraid.org/sxml#text> ?z}
> > WHERE {?x <http://topbraid.org/sxml#text> ?z .
> > }
> > This is an OK query. The query replicates triples, so using it in
> > FilterByConstruct makes sense.
> > To export a file to N3, choose the file in the Navigator, choose
> > Export and Export/Merge/Convert RDF Graphs, then in the "Export into
> > format" pull-down, choose N3.
> > -- Scott
> > On Jul 16, 3:50 pm, donundeen <donund...@gmail.com> wrote:
> > > Hi,
> > > I'm working on a little SPARQLMotion script to send location
> > > information to google, get back lat,long data, and add that
> > > information back into my triple store.
> > > I'm not really sure what I'm doing, but this seems like a pretty good
> > > sample app to figure this stuff out.
> > > Anyways, I'm getting this error message, which is probably a result of
> > > something dumb on my part:
> > > my console output when I run the query is:
> > > 16:43:16.509: Compiling script...
> > > 16:43:16.509: Executing script...
> > > 16:43:16.509: - IterateOverSelect_2
> > > 16:43:16.509: - ImportSesameRemoteRepository_2
> > > 16:43:17.806: - ImportXMLFromURL_2
> > > 16:43:17.915: - ConvertXMLToRDF_1
> > > 16:43:17.931: - ApplyConstruct_1
> > > Failed to execute SPARQLMotion script:
> > > com.hp.hpl.jena.query.QueryParseException: Line 1, column 12: rethrew:
> > > com.hp.hpl.jena.iri.impl.IRIImplException: Error: 0/ILLEGAL_CHARACTER
> > > in slot 15
> > > Error: com.hp.hpl.jena.query.QueryParseException: Line 1, column 12:
> > > rethrew: com.hp.hpl.jena.iri.impl.IRIImplException: Error: 0/
> > > ILLEGAL_CHARACTER in slot 15
> > > My Construct query is:
> > > CONSTRUCT {?x <http://topbraid.org/sxml#text> ?z} WHERE {?x <http://
> > > topbraid.org/sxml#text> ?z}
> > > is there anything obviously wrong here?
> > > could that above error be caused not by the query , but the xml data
> > > being returned by google?
> > > -- I'm trying to attach the source of the script, but I cant' figure
> > > out how to generate the n3 source of the entire script. how is that
> > > done?
I finally found the error, when I exported the script code to n3 and
tried to load it in TBC
I had a namespace with two #'s in a row.
this happened because in my ConvertXMLToRDF module, for a BaseURI, i
specified:
http://metmuseum.org/rdf/google# , and apparently the module adds a # for you, so I had two in a row.
in any case, it seems like I could have got a better warning of that
behaviour than "Error: 0/ILLEGAL_CHARACTER
in slot 15 ", since that message is basically meaningless.
but, all better now!
On Jul 17, 3:47 pm, Scott Henninger <shennin...@topquadrant.com>
wrote:
> Don; I think the error is as it says. There is an "illegal
> character" in the query. But I can't reproduce the error, so there is
> not much more I can say.
> -- Scott
> On Jul 17, 8:53 am, donundeen <donund...@gmail.com> wrote:
> > ok, thanks for the export info. Here's the portion of that file that
> > describes the script:
> > - even without explaining how my script caused the error, can you tell
> > me what the error even means?
> > On Jul 16, 5:36 pm, Scott Henninger <shennin...@topquadrant.com>
> > wrote:
> > > Don; I don't see anything obviously wrong with the script. Is there
> > > really a newline after the 'http://'? That would be a problem. For
> > > the sake of my own sanity, I usually use a format such as:
> > > CONSTRUCT {?x <http://topbraid.org/sxml#text> ?z}
> > > WHERE {?x <http://topbraid.org/sxml#text> ?z .
> > > }
> > > This is an OK query. The query replicates triples, so using it in
> > > FilterByConstruct makes sense.
> > > To export a file to N3, choose the file in the Navigator, choose
> > > Export and Export/Merge/Convert RDF Graphs, then in the "Export into
> > > format" pull-down, choose N3.
> > > > Hi,
> > > > I'm working on a little SPARQLMotion script to send location
> > > > information to google, get back lat,long data, and add that
> > > > information back into my triple store.
> > > > I'm not really sure what I'm doing, but this seems like a pretty good
> > > > sample app to figure this stuff out.
> > > > Anyways, I'm getting this error message, which is probably a result of
> > > > something dumb on my part:
> > > > My Construct query is:
> > > > CONSTRUCT {?x <http://topbraid.org/sxml#text> ?z} WHERE {?x <http://
> > > > topbraid.org/sxml#text> ?z}
> > > > is there anything obviously wrong here?
> > > > could that above error be caused not by the query , but the xml data
> > > > being returned by google?
> > > > -- I'm trying to attach the source of the script, but I cant' figure
> > > > out how to generate the n3 source of the entire script. how is that
> > > > done?