vasaura
November 22, 2022, 2:58pm
1
I would like to reconcile my data with data exposed through a sparql endpoint service (databnf ). I tryed the grefine-rdf-extension but doesn't seem to work. I use the 3.6.2 of OpenRefine and 1.4.0 of grefine-rdf-extension
I've installed the extension and it's displayed on the OpenRefine interface, so I suppose the installation worked well, but the connection to the sparql endpoint doesn't seem to work. I have the following message when I try to access the service from the reconciliation window.
HTTP ERROR 404 Not Found
URI:
/extension/rdf-extension/services/databnf
STATUS:
404
MESSAGE:
Not Found
SERVLET:
refine
Did somebody managed to make this extension work or have another solution for reconciling data against SPARQL endpoints?
Thank for any hint
Hi and welcome!
Iâve just tried it and it works for me.
Can you confirm how you are adding the SPARQL endpoint as a reconciliation service? I did the following:
Click the RDF extension menu
Choose âAdd reconcilation serviceâ
Choose âBased on SPARQL endpointâ
Fill out details:
Name: BNF
Endpoint URL: Ăditeur SPARQL de data.bnf.fr
Graph URI: blank
Type: Generic SPARQL
Label properties: rdfs:label
Once thatâs done:
Reconcile â Start Reconciling (from column menu)
Choose âBNFâ
Choose âReconcile against no particular typeâ
Click âStart reconcilingâ
On a single cell containing the string âMitterandâ I got back three suggested matches. In the console I can see the SPARQL request is returning :
{ "q0": { "result": [ { "id": "http://data.bnf.fr/temp-work/31f29276c592cff6dde6b84f9be72066/#about", "name": "François Mitterand ou \"Cet homme est dangereux\"", "score": 0.1914893388748169, "match": false, "type": [ { "id": "http://rdvocab.info/uri/schema/FRBRentitiesRDA/Work", "name": "http://rdvocab.info/uri/schema/FRBRentitiesRDA/Work" }, { "id": "http://rdaregistry.info/Elements/c/#C10001", "name": "http://rdaregistry.info/Elements/c/#C10001" } ] }, { "id": "http://data.bnf.fr/temp-work/b63432052972f46efa6c0ca329f49376/#about", "name": "\"La force injuste de la loi\", François Mitterand", "score": 0.1875, "match": false, "type": [ { "id": "http://rdvocab.info/uri/schema/FRBRentitiesRDA/Work", "name": "http://rdvocab.info/uri/schema/FRBRentitiesRDA/Work" }, { "id": "http://rdaregistry.info/Elements/c/#C10001", "name": "http://rdaregistry.info/Elements/c/#C10001" } ] }, { "id": "http://data.bnf.fr/temp-work/f2ff72771c447a8768ddffa4486be6e3/#about", "name": "Le disciple ou Les dix leçons que Jospin apprit de Mitterand", "score": 0.1499999761581421, "match": false, "type": [ { "id": "http://rdvocab.info/uri/schema/FRBRentitiesRDA/Work", "name": "http://rdvocab.info/uri/schema/FRBRentitiesRDA/Work" }, { "id": "http://rdaregistry.info/Elements/c/#C10001", "name": "http://rdaregistry.info/Elements/c/#C10001" } ] } ] } }
1 Like
vasaura
November 22, 2022, 4:49pm
3
Hi ostephens,
Thanks so much for trying.
I think I followed the same steps.
Here is a screen shot:
the result apears on the next window (french interface, so the message is in French, hope itâs ok) with the following message : âDĂ©solĂ©, aucun type nâa pu ĂȘtre identifiĂ© pour vos donnĂ©es. Merci de lâindiquer ci-dessous.â ("Sorry, no type could be identified for your data. Please indicate this below.),
and when I click on âAccĂšs au service de lâAPIâ (up-right corner), I land on the 404 error message I cited above.
Certanly, I missed something, but I donât know where to look.
Does this message appear when you try to do the reconciliation? If so, are you selecting a specific type to be used for the reconciliation?
vasaura
November 22, 2022, 5:05pm
5
yes, youâre right. When choosing the type, we must activate the checkbox âRĂ©concilier sans type particulierâ. Now the service works.
thank you so much.
1 Like