Hi !
I made as I said a little class which solve the errors from the Freebase
Turtle. I put this class in attachment, it's certainly not perfect but it
seems working. If you have any comments on it I will be happy to listen
them.
I will send an email too on the Freebase mailing list to list the
Thanks for the Java hints !
The line which goes wrong is :
ns:common.topic.description\u05e0\u05e2\u05de\u05d9
\u05de\u05dc\u05d0\u05e0\u05d9 \u05d4\u05d0\u05e8\u05d9\u05e1
\u05d4\u05d9\u05d0 \u05e9\u05d7\u05e7\u05e0\u05d9\u05ea
\u05e7\u05d5\u05dc\u05e0\u05d5\u05e2
On 13/02/14 10:29, Julien Plu wrote:
Thanks for the Java hints !
The line which goes wrong is :
ns:common.topic.description\u05e0\u05e2\u05de\u05d9
\u05de\u05dc\u05d0\u05e0\u05d9 \u05d4\u05d0\u05e8\u05d9\u05e1
\u05d4\u05d9\u05d0 \u05e9\u05d7\u05e7\u05e0\u05d9\u05ea
Ok I found, it was the characters. But now there is another bad syntax
which is for example :
ns:type.object.key ns:authority.nndb.854$002F000160374;
so problem come from the $002F which means certainly /, by what
is-it possible to replace this ? Have I to recreate all the URI myself
?
On Thursday, February 13, 2014 01:42:33 PM Andy Seaborne wrote:
On 13/02/14 12:59, Julien Plu wrote:
Ok I found, it was the characters. But now there is another bad syntax
which is for example :
ns:type.object.key ns:authority.nndb.854$002F000160374;
so problem come from the
Ok, I will try to create a little class tool which try to do this job, and
send a mail to the mailing list to warm them of these issues.
Best.
Julien.
2014-02-13 15:38 GMT+01:00 Chris_Dollin ehog.he...@gmail.com:
On Thursday, February 13, 2014 01:42:33 PM Andy Seaborne wrote:
On 13/02/14
Hi,
In getting the Turtle RDF from this URI :
https://www.googleapis.com/freebase/v1/rdf/m/020c55
A RiotNotFoundException is thrown :
org.apache.jena.riot.RiotNotFoundException: Not found: @prefix key:
http://rdf.freebase.com/key/.
@prefix ns: http://rdf.freebase.com/ns/.
@prefix owl:
Oops my bad I forgot to convert my String in InputStream :-(
Best.
Julien.
2014-02-12 13:28 GMT+01:00 Julien Plu julien@redaction-developpez.com:
Hi,
In getting the Turtle RDF from this URI :
https://www.googleapis.com/freebase/v1/rdf/m/020c55
A RiotNotFoundException is thrown :
On Wednesday, February 12, 2014 01:28:29 PM Julien Plu wrote:
Hi,
In getting the Turtle RDF from this URI :
https://www.googleapis.com/freebase/v1/rdf/m/020c55
A RiotNotFoundException is thrown :
org.apache.jena.riot.RiotNotFoundException: Not found: @prefix key:
You are trying to read from the downloaded contents of the file directly
which is not going to work. The model.read() API takes in a name of a
file/URI to read or it takes in an InputStream.
Simply pass your input stream directly to the read() call, or even simpler
pass your URI to the read()
Yes I saw my error to lately sorry for disturbing you for nothing :-(
By the way I can't pass immediately the URL to the model because the Turtle
provided by this URI (and all the others from Freebase) have unicode
characters encoded with \x so it's not valid Turtle, it's why I try to
translate
On 12/02/14 13:21, Julien Plu wrote:
Yes I saw my error to lately sorry for disturbing you for nothing :-(
By the way I can't pass immediately the URL to the model because the Turtle
provided by this URI (and all the others from Freebase) have unicode
characters encoded with \x so it's not
12 matches
Mail list logo