import{R as r}from"./Root-rl66e6VO.js";import o from"./Sparql-CfZfA8ED.js";import a from"./Isbn-NWqHK3JK.js";import"./index-D02r7Zsc.js";class l extends r{constructor(){super(),this.endpoint="https://data.bnf.fr/sparql"}async getBnfInfos(t){var e=new o(this.endpoint);return await e.query(this.sparqlQuery(t))}getIsbn(t){return new a(t)}sparqlQuery(t){return`PREFIX bnf-onto: <http://data.bnf.fr/ontology/bnf-onto/>

                PREFIX dcterms: <http://purl.org/dc/terms/>

                PREFIX rdarelationships: <http://rdvocab.info/RDARelationshipsWEMI/>

                PREFIX foaf: <http://xmlns.com/foaf/0.1/>


                Select ?title ?editor ?authorName ?date where {

                    ?manifestation dcterms:title ?title;

                        dcterms:publisher ?editor;

                        dcterms:date ?date;

                        rdarelationships:expressionManifested ?expression.

                    ?expression <http://data.bnf.fr/vocabulary/roles/r70> ?author.


                    ?author foaf:name ?authorName.

                    {

                        ?manifestation bnf-onto:isbn "${t.getFormatedISBN()}"

                    } UNION {

                        ?manifestation bnf-onto:isbn "${t.getFormatedISBN10()}"

                    }

                }`}}export{l as default};
