Author Topic: SPARQL Report  (Read 8152 times)

0 Members and 1 Guest are viewing this topic.

Offline arvernes

  • Administrator
  • Hero Member
  • *****
  • Posts: 684
  • Pep den a dle heuilh e Donkadur
    • View Profile
    • Arvernes web site
SPARQL Report
« 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
Met ’drokfen ket evit teñzorioù va Frankiz !

Offline JoPol

  • VIP
  • Sr. Member
  • *
  • Posts: 28
    • View Profile
Re: SPARQL Report
« Reply #1 on: October 04, 2012, 20:46:17 »

Offline arvernes

  • Administrator
  • Hero Member
  • *****
  • Posts: 684
  • Pep den a dle heuilh e Donkadur
    • View Profile
    • Arvernes web site
Re : SPARQL Report
« Reply #2 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
Met ’drokfen ket evit teñzorioù va Frankiz !

Offline JoPol

  • VIP
  • Sr. Member
  • *
  • Posts: 28
    • View Profile
Re: SPARQL Report
« Reply #3 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.

Offline jmb

  • VIP
  • Sr. Member
  • *
  • Posts: 29
    • View Profile
Re : SPARQL Report
« Reply #4 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.

Offline JoPol

  • VIP
  • Sr. Member
  • *
  • Posts: 28
    • View Profile
Re: SPARQL Report
« Reply #5 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.

Offline jmb

  • VIP
  • Sr. Member
  • *
  • Posts: 29
    • View Profile
Re6 : SPARQL Report
« Reply #6 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.