Ancestris - Forum

Ancestris Support => ENGLISH => Topic started by: arvernes on October 04, 2012, 20:07:37

Title: SPARQL Report
Post by: arvernes on October 04, 2012, 20:07:37
Hi,
this is the error I got when I tried to run the SPARQL Report :

*** exception caught
java.io.FileNotFoundException:  (No such file or directory)
   at java.io.RandomAccessFile.open(Native Method)
   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:216)
   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:101)
   at genjreports.rdf.ReportRdf.getQuery(ReportRdf.java:296)
   at genjreports.rdf.ReportRdf.start(ReportRdf.java:100)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at genj.report.Report.start(Report.java:806)
   at genj.report.Runner.run(Runner.java:68)
   at java.lang.Thread.run(Thread.java:662)


Francois
Title: Re: SPARQL Report
Post by: JoPol on October 04, 2012, 20:46:17
It is not a bug, just not a nice error message.
see http://forum.ancestris.org/index.php?topic=63.0
(and http://forum.ancestris.org/index.php?topic=65.0)
Title: Re : SPARQL Report
Post by: arvernes on October 04, 2012, 21:00:25
OK, Would it be possible to catch those NPE and send a warning message to the user ? Francois
Title: Re: SPARQL Report
Post by: JoPol on October 05, 2012, 06:27:20
Of course. But I have a full time job and I'm not jumping through hoops to install NetBeans and the learning curve to work with it. I hope someone else jumps in. It is OK with me me if someone even wishes to completely redesign the user interface.
Title: Re : SPARQL Report
Post by: jmb on October 05, 2012, 08:53:06
François,
Le message d'erreur que tu cites semble juste signaler une anomalie de procédure.
Il apparait dans de nombreuses circonstances allant de l'absence de requête au fichier de sortie verrouillé en écriture.
Pour le moment j'ai juste réussi à surmonter tous ces écueils et à produire quelque chose mais pas ce que je veux.
Je communiquerai dès que j'aurai entrevu la sortie.
Title: Re: SPARQL Report
Post by: JoPol on October 05, 2012, 09:10:33
I don't understand everything of #4, to avoid possible cofusion: the exception is thrown because the user did not specify a query file in the options tab. The help pages have examples of these queries.
Title: Re6 : SPARQL Report
Post by: jmb on October 05, 2012, 16:47:33
Voilà ce que j'ai réussi à produire et comment avec SPARQL Report.
On peut utiliser Ancestris 0.7 ou 0.8béta (contrairement à ce qui est indiqué pour 0.8).
Les réglages d'options que j'ai utilisés sont dans le fichier "Options_SPARQL" ci-joint.
J'ai utilisé un fichier de règles et un de requête fournis en exemple.
NB: les adresses des fichiers doivent être complètes.
Compte-rendu d'exécution:
 16:50:41.906 converting
 16:50:45.221 applying rules
 16:55:41.539 rules completed
écriture C:\users\moi\dropbox\testancestris\gedcom.n3
 16:55:48.473 executing query
 16:55:49.993 query executed
 16:55:49.998 query completed
écriture C:\users\moi\dropbox\testancestris\report.txt
Les fichiers gedcom.n3 et report.txt sont visualisables avec un éditeur de texte.