CRISalid-esr / svp-harvester

Sovisu+ publications harvester as microservice
Other
3 stars 2 forks source link

Unknown data source from Idref #609

Open E-Bara opened 1 month ago

E-Bara commented 1 month ago

When wollecting data with idref harvester with that id: idref:027060918

That uri is returned and is unknown to the harvester: http://id.erudit.org/iderudit/1005770ar#id

2024-06-05 10:36:54.818 | ERROR | app.harvesters.abstract_harvester:handle_error:312 - Error while fetching Idref sparql endpoint for query : PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX bibo: <http://purl.org/ontology/bibo/> PREFIX marcrel: <http://id.loc.gov/vocabulary/relators/> select distinct ?pub ?role ?type ?title ?altLabel ?note ?contributor ?contributorRole ?contributorName ?contributorFamilyName ?contributorGivenName ?subject_uri ?subject_label ?doi where { ?pub ?role <http://www.idref.fr/027060918/id> . OPTIONAL {?pub rdf:type ?type } . OPTIONAL {?pub bibo:doi ?doi} . OPTIONAL {?pub ?contributorRole ?contributor . ?contributor a foaf:Person . ?contributor foaf:name ?contributorName . ?contributor foaf:familyName ?contributorFamilyName . ?contributor foaf:givenName ?contributorGivenName . FILTER(STR(?contributorRole) = STR(marcrel:aut) || STR(?contributorRole) = STR(marcrel:cmp) || STR(?contributorRole) = STR(marcrel:ths) || STR(?contributorRole) = STR(marcrel:edt) || STR(?contributorRole) = STR(marcrel:pbd) || STR(?contributorRole) = STR(marcrel:trl) || STR(?contributorRole) = STR(marcrel:aui) || STR(?contributorRole) = STR(marcrel:drt) || STR(?contributorRole) = STR(marcrel:opn) || STR(?contributorRole) = STR(marcrel:ill) || STR(?contributorRole) = STR(marcrel:prt) || STR(?contributorRole) = STR(marcrel:mus) || STR(?contributorRole) = STR(marcrel:pra) || STR(?contributorRole) = STR(marcrel:clb) || STR(?contributorRole) = STR(marcrel:act) || STR(?contributorRole) = STR(marcrel:ctb) || STR(?contributorRole) = STR(marcrel:sng) || STR(?contributorRole) = STR(marcrel:fmo) || STR(?contributorRole) = STR(marcrel:cnd) || STR(?contributorRole) = STR(marcrel:ant) || STR(?contributorRole) = STR(marcrel:sec) || STR(?contributorRole) = STR(marcrel:sce) || STR(?contributorRole) = STR(marcrel:ive) || STR(?contributorRole) = STR(marcrel:pbl) || STR(?contributorRole) = STR(marcrel:pht) || STR(?contributorRole) = STR(marcrel:exp) || STR(?contributorRole) = STR(marcrel:auc) || STR(?contributorRole) = STR(marcrel:ctg) || STR(?contributorRole) = STR(marcrel:com) || STR(?contributorRole) = STR(marcrel:nrt) || STR(?contributorRole) = STR(marcrel:dte) || STR(?contributorRole) = STR(marcrel:dnr) || STR(?contributorRole) = STR(marcrel:art) || STR(?contributorRole) = STR(marcrel:egr) || STR(?contributorRole) = STR(marcrel:adp) || STR(?contributorRole) = STR(marcrel:cur) || STR(?contributorRole) = STR(marcrel:cwt) || STR(?contributorRole) = STR(marcrel:bsl) || STR(?contributorRole) = STR(marcrel:aft) || STR(?contributorRole) = STR(marcrel:mte) || STR(?contributorRole) = STR(marcrel:asn) || STR(?contributorRole) = STR(marcrel:prf) || STR(?contributorRole) = STR(marcrel:lbt) || STR(?contributorRole) = STR(marcrel:arr) || STR(?contributorRole) = STR(marcrel:ivr) || STR(?contributorRole) = STR(marcrel:rth) || STR(?contributorRole) = STR(marcrel:dgc) || STR(?contributorRole) = STR(marcrel:dub) || STR(?contributorRole) = STR(marcrel:aqt) || STR(?contributorRole) = STR(marcrel:grt) || STR(?contributorRole) = STR(marcrel:ccp) || STR(?contributorRole) = STR(marcrel:cmm) || STR(?contributorRole) = STR(marcrel:pro) || STR(?contributorRole) = STR(marcrel:rcp) || STR(?contributorRole) = STR(marcrel:orm) || STR(?contributorRole) = STR(marcrel:osp) || STR(?contributorRole) = STR(marcrel:lyr) || STR(?contributorRole) = STR(marcrel:ann) || STR(?contributorRole) = STR(marcrel:prd) || STR(?contributorRole) = STR(marcrel:flm) || STR(?contributorRole) = STR(marcrel:sad) || STR(?contributorRole) = STR(marcrel:wde) || STR(?contributorRole) = STR(marcrel:dto) || STR(?contributorRole) = STR(marcrel:aus) || STR(?contributorRole) = STR(marcrel:ltg) || STR(?contributorRole) = STR(marcrel:spn) || STR(?contributorRole) = STR(marcrel:chr) || STR(?contributorRole) = STR(marcrel:col) || STR(?contributorRole) = STR(marcrel:rtm) || STR(?contributorRole) = STR(marcrel:bkd) || STR(?contributorRole) = STR(marcrel:dnc) || STR(?contributorRole) = STR(marcrel:etr) || STR(?contributorRole) = STR(marcrel:res) || STR(?contributorRole) = STR(marcrel:bnd) || STR(?contributorRole) = STR(marcrel:pop) || STR(?contributorRole) = STR(marcrel:rce) || STR(?contributorRole) = STR(marcrel:voc) || STR(?contributorRole) = STR(marcrel:pfr) || STR(?contributorRole) = STR(marcrel:ilu) || STR(?contributorRole) = STR(marcrel:ins) || STR(?contributorRole) = STR(marcrel:org) || STR(?contributorRole) = STR(marcrel:hnr) || STR(?contributorRole) = STR(marcrel:prg) || STR(?contributorRole) = STR(marcrel:crr) || STR(?contributorRole) = STR(marcrel:cll) || STR(?contributorRole) = STR(marcrel:bpd) || STR(?contributorRole) = STR(marcrel:pdr) || STR(?contributorRole) = STR(marcrel:anm) || STR(?contributorRole) = STR(marcrel:csp) || STR(?contributorRole) = STR(marcrel:wam) || STR(?contributorRole) = STR(marcrel:dgg) || STR(?contributorRole) = STR(marcrel:rev) || STR(?contributorRole) = STR(marcrel:tyd) || STR(?contributorRole) = STR(marcrel:dst) || STR(?contributorRole) = STR(marcrel:scr) || STR(?contributorRole) = STR(marcrel:sll) || STR(?contributorRole) = STR(marcrel:isb) || STR(?contributorRole) = STR(marcrel:tyg) || STR(?contributorRole) = STR(marcrel:cns) || STR(?contributorRole) = STR(marcrel:bdd) || STR(?contributorRole) = STR(marcrel:lso) || STR(?contributorRole) = STR(marcrel:sgn) || STR(?contributorRole) = STR(marcrel:lse) || STR(?contributorRole) = STR(marcrel:bjd) || STR(?contributorRole) = STR(marcrel:scl) || STR(?contributorRole) = STR(marcrel:asg) || STR(?contributorRole) = STR(marcrel:frg) || STR(?contributorRole) = STR(marcrel:mon) || STR(?contributorRole) = STR(marcrel:cph) || STR(?contributorRole) = STR(marcrel:ppm) || STR(?contributorRole) = STR(marcrel:stm) || STR(?contributorRole) = STR(marcrel:ppt) || STR(?contributorRole) = STR(marcrel:rbr) || STR(?contributorRole) = STR(marcrel:cmt) || STR(?contributorRole) = STR(marcrel:inv) || STR(?contributorRole) = STR(marcrel:unknow) || STR(?contributorRole) = STR(marcrel:oth) || STR(?contributorRole) = STR(marcrel:pth)) . } . OPTIONAL {?pub dc:title ?title} . OPTIONAL {?pub skos:altLabel ?altLabel} . OPTIONAL {?pub skos:note ?note} . OPTIONAL {?pub dcterms:subject ?subject_uri . ?subject_uri skos:prefLabel ?subject_label } . } LIMIT 10000 with error ExternalEndpointFailure Unknown data source for uri http://id.erudit.org/iderudit/1005770ar#id

jdp1ps commented 1 month ago

@E-Bara Erudit data source is not supported at this time. Here is the detailed procedure from ABES/Idref.

Pour aller d'un idref de Personne aux métadonnées d'un document Erudit, en 4 étapes :

  1. soit l'idref 168137380
  2. on requête data.idref : https://data.idref.fr/sparql?default-graph-uri=&query=select+DISTINCT+%3Furi%2C+%3Fcitation%2C+%3FdatePub%0D%0Awhere+%7B%0D%0A%3Furi+marcrel%3Aaut+%3Chttp%3A%2F%2Fwww.idref.fr%2F168137380%2Fid%3E.%0D%0A%3Furi+dcterms%3AbibliographicCitation+%3Fcitation.%0D%0AOPTIONAL+%7B%3Furi+dc%3Adate+%3FdatePub.%7D%0D%0AFILTER+%28regex%28%3Furi%2C+%27erudit%27+%29%29%0D%0A%0D%0A%7D%0D%0AORDER+by+%3FdatePub&format=application%2Fsparql-results%2Bjson&timeout=0&debug=on&run=+Run+Query+ qui donne en résultat des URI, exemple http://id.erudit.org/iderudit/1076459ar#id
  3. On passe chaque URI à l'entrepôt OAI-PMH Erudit : http://oai.erudit.org/oai/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai:erudit.org:1076459ar (autres formats de métadonnées possibles : nlm et oai_openaire)