Thursday, February 16, 2017

Zotero vers HAL, Zenodo et JabRef (TEI-XML; CSL JSON; BibLateX). Cas de notice de chapitre d'un livre


L'idée est d'utiliser Zotero (et sa banque de donnée et ses fonctions d'export) comme centre pour distribuer les ref biblio de notice, par exemple vers HAL (XML-TEI) et Zenodo (JSON) et JabRef qui est aussi un logiciel de référence biblio mais avec la possibilité d'insérer des metadata XMP dans un pdf.

Ici nous prenons le cas difficile de notice de chapitre d'un livre.

voir aussi:
http://stephane-mottin.blogspot.fr/2017/02/bib2hal-import-du-biblatex-vers-hal-par.html

Dans Zotero, nous avons par exemple

(et "marqueurs" ( mot-clés) qui y sont )
voir
http://stephane-mottin.blogspot.fr/2017/02/zotero-transformer-reference-livre-en.html

Pour un meilleur import/export en BibLateX de Zotero, il faut ajouter un plug-in
zotero-better-bibtex:
https://www.zotero.org/support/plugins
 https://github.com/retorquere/zotero-better-bibtex
https://github.com/retorquere/zotero-better-bibtex/wiki/Installation

Voir aussi mon post sur Bib2HAL permet de déposer un lot de publications dans HAL à partir d’un fichier BibTeX dans un portail de HAL.

L'export en TEI-XML de Zotero donne

(il n'y a pas les droits ni résumé)

<TEI xmlns="http://www.tei-c.org/ns/1.0">

<teiHeader><fileDesc><titleStmt><title>Exported from Zotero</title></titleStmt><publicationStmt><p>unpublished</p></publicationStmt><sourceDesc><p>Generated from Zotero database</p></sourceDesc></fileDesc></teiHeader>
<text>
<body>
<listBibl>

<biblStruct type="bookSection" xml:id="Mottin2011" corresp="http://zotero.org/users/766263/items/7EN94P4K">
<analytic>

<title level="a">Introduction au dimensionnement</title><author><forename>Agílio</forename><surname>Pádua</surname></author>
</analytic>
<monogr>

<title level="m">Matériaux et joints d'étanchéité pour les hautes pressions</title><idno type="ISBN">978-2-918701-04-0</idno><editor>
<forename>Stéphane</forename><surname>Mottin</surname>
</editor>
<author><forename>Patrick</forename><surname>Boissinot</surname></author><author><forename>Patrick</forename><surname>Langlois</surname></author><author><forename>Agílio</forename><surname>Pádua</surname></author>
<editor>
<forename>Gérard</forename><surname>Lelièvre</surname>
</editor><edition>[3e éd.]</edition><imprint>
<pubPlace>Meudon</pubPlace><biblScope unit="page">17-28</biblScope><publisher>MRCT-CNRS</publisher><date>2011</date><note type="url">http://www.sudoc.fr/155436619</note>
</imprint>
</monogr>
<series>

<title level="s">Intégrations [des savoirs et des savoir-faire]</title><biblScope unit="volume">18</biblScope><editor>
<forename>Stéphane</forename><surname>Mottin</surname>
</editor>
</series>
<note type="tags">
<note type="tag">Hautes pressions -- Matériaux</note>
<note type="tag">Joints d'étanchéité</note>
<note type="tag">Matériaux -- Effets des hautes pressions</note>
</note>
</biblStruct>
</listBibl>
</body>
</text>
</TEI>

format TEI-XML de HAL

Dans le cadre du réseau ARAMIS, Françoise CONIL et Laurence BESSON vous proposent une journée de “familiarisation” avec les nouvelles API de HAL V3.

A TEI conformant pivot format for the HAL back-office

voir le pdf réalisé au sein du réseau aramis:

<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:hal="http://hal.archives-ouvertes.fr">
  <text>
    <body> //Partie principale
      <listBibl>
        <biblFull> //Référence bibliographique structurée
          <titleStmt>...</titleStmt> //Mention de titre (titre, personnes, responsables)
          <editionStmt>...</editionStmt> //Edition (Fichiers)
          <publicationStmt>...</publicationStmt> //Publication (Licence)
          <seriesStmt>...</seriesStmt> //Collection
          <notesStmt>...</notesStmt> //Mention de Notes
          <sourceDesc>...</sourceDesc> //Description de la source
          <profileDesc>...</profileDesc> //Description des aspects non bibliographiques
        </biblFull>
      </listBibl>
    </body>
    <back> //Annexe
      <listOrg type="laboratories">...</listOrg> //Définition de nouvelles structures
      <listOrg type="projects">...</listOrg> //Définition de nouveaux projets (ANR, Eur)
    </back>
  </text>
</TEI>

Rem. TEI export HAL plus complet que pour l’import de HAL.

Bib2HAL

Ce billet http://carnetist.hypotheses.org/494 est un retour d’expérience à la suite d’une importante pratique d’import par lots de références dans HAL, au début (en 2011) par des versements en XML puis (depuis 2013) par des imports en BibTex grâce à Bib2HAL, outil en ligne développé par l’INRIA.
Bib2HalWeb est une application complémentaire à HAL qui permet de déposer un lot de publications sur HAL à partir d'un fichier BibTeX.
https://bib2hal.inria.fr/homepage

Nous verrons que passer du TEI-XML de Zotero à HAL est assez compliqué d'où l'intérêt par un format pivot comme BibLateX et ce type d'outils.

Coupler Zotero et Bib2Hal pour signaler massivement les publications sur HAL


préparer les fichiers BibTeX

Passer du TEI-XML Zotero au format HAL, en pratique

barré = enlever-->remplacer
<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">

<TEI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.tei-c.org/ns/1.0 http://api.archives-ouvertes.fr/documents/aofr-sword.xsd"
    xmlns="http://www.tei-c.org/ns/1.0" xmlns:hal="http://hal.archives-ouvertes.fr/">
    <text>
barré italique= enlever
<teiHeader><fileDesc><titleStmt><title>Exported from Zotero</title></titleStmt><publicationStmt><p>unpublished</p></publicationStmt><sourceDesc><p>Generated from Zotero database</p></sourceDesc></fileDesc></teiHeader>
pas de teiHeader pour HAL

Après 
<text>
<body>
<listBibl>Zotero passe à 
<biblStruct type="bookSection" xml:id="Mottin2011" corresp="http://zotero.org/users/766263/items/7EN94P4K">

HAL

<biblFull> enlever <titleStmt> </titleStmt> enlever <editionStmt> </editionStmt> enlever <notesStmt> </notesStmt> on arrive à
<sourceDesc> <biblStruct> qui va jusqu'à
</biblStruct> </sourceDesc> <profileDesc>
IL FAUT AJOUTER <biblFull> et <sourceDesc> avant <biblStruct
<biblStruct type="bookSection" xml:id="Mottin2011" corresp="http://zotero.org/users/766263/items/7EN94P4K">
<analytic>

<title level="a">Introduction au dimensionnement</title>  
<author><forename>Agílio</forename> <surname>Pádua</surname></author>
</analytic>


<biblStruct>
<analytic>
<title xml:lang="en">this is my chapter book title</title>
<title xml:lang="fr">ceci est mon titre de chapitre d'ouvrage</title>
<title xml:lang="en" type="sub">my subtitle in english</title>
<title xml:lang="fr" type="sub">mon sous-titre en français</title>
<author role="aut"><!-- %%mandatory metadata : minimum one author-->
<persName>
<forename type="first">Nouvel</forename>
<surname>Auteur</surname>
</persName>
<email>prenom.nom@structure.fr</email>
<affiliation ref="#localStruct-1"/>
</author>
<author role="aut">
<persName>
<forename type="first">Laurent</forename>
<surname>Romary</surname>
</persName>
<email>laurent.romary@inria.fr</email>
<idno type="idhal">laurentromary</idno>
<idno type="halauthor">49567</idno>
<idno type="arXiv">http://arxiv.org/a/Romary_L</idno>
<idno type="IdRef">http://www.idref.fr/060702494</idno>
<idno type="ORCID">http://orcid.org/0000-0002-0756-0508</idno>
<affiliation ref="#struct-95237"/>
<affiliation ref="#struct-118511"/>
</author>
</analytic>
On voit qu'il y a beaucoup de modifications à faire pour arriver au format HAL.
---
<monogr>

<title level="m">Matériaux et joints d'étanchéité pour les hautes pressions</title> 
<idno type="ISBN">978-2-918701-04-0</idno> 
<editor>
<forename>Stéphane</forename><surname>Mottin</surname>
</editor>
<author><forename>Patrick</forename><surname>Boissinot</surname></author><author><forename>Patrick</forename><surname>Langlois</surname></author><author><forename>Agílio</forename><surname>Pádua</surname></author>
<editor>
<forename>Gérard</forename><surname>Lelièvre</surname>
</editor> 
<edition>[3e éd.]</edition> 
<imprint>
<pubPlace>Meudon</pubPlace> 
<biblScope unit="page">17-28</biblScope><publisher>MRCT-CNRS</publisher><date>2011</date><note type="url">http://www.sudoc.fr/155436619</note>
</imprint>

</monogr>


<monogr>
<idno type="isbn">978-1-4577-0538-0</idno><!-- %%metadata isbn-->
<idno type="localRef">Référence interne</idno><!-- %%metadata localReference-->
<idno type="localRef">Référence interne 2</idno>
<title level="m">titre ouvrage</title><!-- %%mandatory metadata source-->
<editor>Éditeur scientifique</editor>
<imprint>
<publisher>Éditeur commercial</publisher><!-- %%metadata publisher-->
<pubPlace>Lieu de publication</pubPlace><!-- %%metadata publicationLocation-->
<biblScope unit="serie">Titre du volume</biblScope><!-- %%metadata serie-->
<biblScope unit="volume">Volume</biblScope><!-- %%metadata volume-->
<biblScope unit="issue">1</biblScope><!-- %%metadata issue-->
<biblScope unit="pp">2</biblScope><!-- %%metadata page-->
<date type="datePub">2016-02-03</date><!-- %%mandatory metadata date-->
</imprint>
</monogr>
On voit qu'il faut changer editor et ajout pour l'imprint au format HAL et unit="page" en "pp".

<monogr>


<idno type="isbn">9782918701064</idno>

<meeting>

<title>
troisième école "FEMTO 2008" du Réseau FEMTO de la MRCT du CNRS
</title>

<settlement>Mittelwihr</settlement>

<country key="FR">France</country>
</meeting>

<respStmt>

<resp>conferenceOrganizer</resp>

<name>Gilliot Pierre</name>
</respStmt>
<editor>Mottin Stéphane</editor> 
<imprint> 
<pubPlace>meudon</pubPlace> 
<biblScope unit="serie">Intégration des savoirs et des savoir-faire</biblScope>
<date type="datePub">2012</date> 
</imprint> 
</monogr>

<series>

<editor>Mottin Stéphane</editor>
</series>

<ref type="seeAlso">http://www.sudoc.fr/162375875</ref>

</biblStruct>

---
<series>

<title level="s">Intégrations [des savoirs et des savoir-faire]</title> 
<biblScope unit="volume">18</biblScope> 
<editor>
<forename>Stéphane</forename><surname>Mottin</surname>
</editor>
</series>
<note type="tags">
<note type="tag">Hautes pressions -- Matériaux</note>
<note type="tag">Joints d'étanchéité</note>
<note type="tag">Matériaux -- Effets des hautes pressions</note>
</note>
</biblStruct>
</listBibl>



<series>
<editor>Directeur de collection</editor><!-- %%metadata seriesEditor-->
</series>
<idno type="doi">My DOI number</idno><!-- %%example : 10.xxxx/978-3-xxx-xxxxx-x_x-->
<ref type="seeAlso">http://www.inria1.fr</ref><!-- %%metadata seeAlso-->
<ref type="seeAlso">http://www.inria2.fr</ref>
<ref type="publisher">http://www.inria.fr</ref><!-- %%metadata publisherLink-->
<relatedItem type="illustrate" target="related description"></relatedItem>


</biblStruct>

</
sourceDesc>
enlever les note "tag" pour le mettre après
ajouter après </biblStruct> </sourceDesc>
---
On a fini avec le format via Zotero.

<profileDesc>
<langUsage>
<language ident="en"/><!-- %%mandatory metadata language-->
</langUsage>
<textClass>
<keywords scheme="author">
<term xml:lang="en">keywords_2_en</term><!-- %%metadata keyword-->
<term xml:lang="en">keywords_en</term>
<term xml:lang="fr">keywords_fr</term>
<term xml:lang="fr">keywords_2_fr</term>
</keywords>
<classCode scheme="classification">PACS</classCode><!-- %%metadata classification-->
<classCode scheme="halDomain" n="info">Computer Science [cs]</classCode>
<classCode scheme="halDomain" n="info.eiah">Computer Science [cs]/Technology for Human Learning</classCode>
<classCode scheme="halTypology" n="COUV">Book sections</classCode><!-- %%mandatory metadata-->
</textClass>
<abstract xml:lang="en">resume_en</abstract><!-- %%metadata abstract-->
<abstract xml:lang="fr">resume_fr</abstract>
<particDesc>
<org type="consortium">Collaboration/Projet</org><!-- %%metadata collaboration-->
<org type="consortium">Collaboration/Projet 2</org>
</particDesc>

</profileDesc>
Il faut donc insérer ici les mots-clés et le résumé/sommaire
---

</biblFull>
</listBibl>
</body>
avant </listBibl> mettre </biblFull>
</listBibl>
</body>

la partie <back> finale serait à enlever?


Le TEI-XML complet de HAL pour un chapitre de livre

https://github.com/CCSDForge/HAL/blob/master/Sword/COUV.xml
voir
http://stephane-mottin.blogspot.fr/2017/02/format-file-2-import-into-hal-xml-tei.html

<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.tei-c.org/ns/1.0 http://api.archives-ouvertes.fr/documents/aofr-sword.xsd"
    xmlns="http://www.tei-c.org/ns/1.0" xmlns:hal="http://hal.archives-ouvertes.fr/">
    <text>
        <body>
            <listBibl>
                <biblFull>
                    <titleStmt>
                        <funder ref="#projanr-25468"/><!-- %%metadata anrProject : identifiant du projet anr déjà présent dans le référentiel AuréHAL-->
                        <funder ref="#projanr-33390"/>
                        <funder ref="#projeurop-88718"/><!-- %%metadata europeanProject : identifiant du projet européen déjà présent dans le référentiel AuréHAL-->
                        <funder ref="#projeurop-89284"/>
                        <funder ref="#localProjeurop-1"/><!-- %%metadata europeanProject : nouveau projet européen non présent dans le référentiel AuréHAL-->
                        <funder>Financement 1</funder><!-- %%metadata funding-->
                        <funder>Financement 2</funder>
                    </titleStmt>
                    <editionStmt>
                        <edition>
                            <date type="whenWritten">2016</date><!-- %%metadata writingDate-->
                            <ref type="file" subtype="author" n="1" target="ftp://ftp.ccsd.cnrs.fr/test.pdf"><!-- %%metadata file-->
                            <date notBefore="2017-01-01"/>
                            </ref>
                        </edition>
                    </editionStmt>
                    <notesStmt>
                        <note type="commentary">Commentaire</note><!-- %%metadata comment-->
                        <note type="audience" n="2"/><!-- %%mandatory metadata audience-->
                        <note type="popular" n="0"/><!-- %%mandatory metadata popularLevel-->
                    </notesStmt>
                    <sourceDesc>
                        <biblStruct>
                            <analytic>
                                <title xml:lang="en">this is my chapter book title</title><!-- %%mandatory metadata title : at least one title, any language-->
                                <title xml:lang="fr">ceci est mon titre de chapitre d'ouvrage</title>
                                <title xml:lang="en" type="sub">my subtitle in english</title>
                                <title xml:lang="fr" type="sub">mon sous-titre en français</title>
                                <author role="aut"><!-- %%mandatory metadata : minimum one author-->
                                    <persName>
                                        <forename type="first">Nouvel</forename>
                                        <surname>Auteur</surname>
                                    </persName>
                                    <email>prenom.nom@structure.fr</email>
                                    <affiliation ref="#localStruct-1"/>
                                </author>
                                <author role="aut">
                                    <persName>
                                        <forename type="first">Laurent</forename>
                                        <surname>Romary</surname>
                                    </persName>
                                    <email>laurent.romary@inria.fr</email>
                                    <idno type="idhal">laurentromary</idno>
                                    <idno type="halauthor">49567</idno>
                                    <idno type="arXiv">http://arxiv.org/a/Romary_L</idno>
                                    <idno type="IdRef">http://www.idref.fr/060702494</idno>
                                    <idno type="ORCID">http://orcid.org/0000-0002-0756-0508</idno>
                                    <affiliation ref="#struct-95237"/>
                                    <affiliation ref="#struct-118511"/>
                                </author>
                            </analytic>
                            <monogr>
                                <idno type="isbn">978-1-4577-0538-0</idno><!-- %%metadata isbn-->
                                <idno type="localRef">Référence interne</idno><!-- %%metadata localReference-->
                                <idno type="localRef">Référence interne 2</idno>
                                <title level="m">titre ouvrage</title><!-- %%mandatory metadata source-->
                                <editor>Éditeur scientifique</editor>
                                <imprint>
                                    <publisher>Éditeur commercial</publisher><!-- %%metadata publisher-->
                                    <pubPlace>Lieu de publication</pubPlace><!-- %%metadata publicationLocation-->
                                    <biblScope unit="serie">Titre du volume</biblScope><!-- %%metadata serie-->
                                    <biblScope unit="volume">Volume</biblScope><!-- %%metadata volume-->
                                    <biblScope unit="issue">1</biblScope><!-- %%metadata issue-->
                                    <biblScope unit="pp">2</biblScope><!-- %%metadata page-->
                                    <date type="datePub">2016-02-03</date><!-- %%mandatory metadata date-->
                                </imprint>
                            </monogr>
                            <series>
                                <editor>Directeur de collection</editor><!-- %%metadata seriesEditor-->
                            </series>
                            <idno type="doi">My DOI number</idno><!-- %%example : 10.xxxx/978-3-xxx-xxxxx-x_x-->
                            <ref type="seeAlso">http://www.inria1.fr</ref><!-- %%metadata seeAlso-->
                            <ref type="seeAlso">http://www.inria2.fr</ref>
                            <ref type="publisher">http://www.inria.fr</ref><!-- %%metadata publisherLink-->
                            <relatedItem type="illustrate" target="related description"></relatedItem>
                        </biblStruct>
                    </sourceDesc>
                    <profileDesc>
                        <langUsage>
                            <language ident="en"/><!-- %%mandatory metadata language-->
                        </langUsage>
                        <textClass>
                            <keywords scheme="author">
                                <term xml:lang="en">keywords_2_en</term><!-- %%metadata keyword-->
                                <term xml:lang="en">keywords_en</term>
                                <term xml:lang="fr">keywords_fr</term>
                                <term xml:lang="fr">keywords_2_fr</term>
                            </keywords>
                            <classCode scheme="classification">PACS</classCode><!-- %%metadata classification-->
                            <classCode scheme="halDomain" n="info">Computer Science [cs]</classCode><!-- %%mandatory metadata domain-->
                            <classCode scheme="halDomain" n="info.eiah">Computer Science [cs]/Technology for Human Learning</classCode>
                            <classCode scheme="halTypology" n="COUV">Book sections</classCode><!-- %%mandatory metadata-->
                        </textClass>
                        <abstract xml:lang="en">resume_en</abstract><!-- %%metadata abstract-->
                        <abstract xml:lang="fr">resume_fr</abstract>
                        <particDesc>
                            <org type="consortium">Collaboration/Projet</org><!-- %%metadata collaboration-->
                            <org type="consortium">Collaboration/Projet 2</org>
                        </particDesc>
                    </profileDesc>
                </biblFull>
            </listBibl>
        </body>
        <back>
            <listOrg type="laboratories">
                <org type="laboratory" xml:id="localStruct-1">
                    <orgName>Mon nouveau laboratoire</orgName>
                    <orgName type="acronym">MNL</orgName>
                    <desc>
                        <address>
            <addrLine>adresse du laboratoire</addrLine>
            <country key="FR"/>
            </address>
                        <ref type="url">http://ccsd.cnrs.fr</ref>
                    </desc>
                    <listRelation>
                        <relation active="#localStruct-2"/>
                        <relation active="#struct-300009"/>
                    </listRelation>
                </org>
                <org type="institution" xml:id="localStruct-2">
                    <orgName>Institut Test</orgName>
                    <desc>
                        <address>
            <country key="FR"/>
            </address>
                    </desc>
                </org>
                <org type="institution" xml:id="struct-300009">
                    <orgName>INRIA</orgName>
                    <desc>
                        <address>
            <country key="FR"/>
            </address>
                        <ref type="url">http://www.inria.fr</ref>
                    </desc>
                </org>
            </listOrg>
            <listOrg type="projects">
            <org type="europeanProject" xml:id="localProjeurop-1">
                <idno type="program">REGPOT</idno>
                <idno type="number">204727</idno>
                <idno type="call">FP7-REGPOT-2007-1</idno>
                <orgName>ESTSPACE</orgName>
                <desc>Expose capacity of the Estonian Space Research and Technology through High Quality Partnership in Europe</desc>
                <date type="start">2008-03-01</date>
                <date type="end">2011-02-28</date>
            </org>
            </listOrg>
        </back>
    </text>
</TEI>

Un export TEI de HAL

https://hal.archives-ouvertes.fr/hal-01429337v1/tei

Conclusion pour Zotero->HAL

  1. Rentrer le 1er article-chapitre dans HAL à la main et faire un export TEI
    puis avec ce .XML changer (par programmation; ces 3 champs suivants existent dans un tableur)
    • auteur(s)  article, 
    • titre article, 
    • page de l'article.
      sauvegarder ces xx-HAL.xml (et importer dans Zotero?)
  2. On a déjà tous les BibLateX de ces articles (voir à la fin de ce post) et on programme pour une utilisation pour bib2HAL.
    On peut aussi utiliser le format pivot bibLateX puis des scripts pour Zotero puis Bib2HAL. Voir mon autre post sur Bib2HAL.
  3. Une autre solution plus coûteuse en temps:
    Entrer dans Zotero  avec un premier complet (les 3 champs  ci-dessus)
    On a une banque de données avec diverses possibilités d'export.
    L'avantage de cette méthode est que l'on a une banque de donnée et des export (bibTeX, JSON...)
    • puis faire un export TEI
    • puis avec le 1er article fait dans HAL, copier/coller les 3 champs auteur/titre/page issu de ces export TEI (qui sont déjà au format), 
    • sauvegarder ces nouveaux xx-HAL.xml.