Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://gitlab.com/hatiers/lstclean.git
05 May 2026, 03:14:37 UTC
  • Code
  • Branches (4)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/export
    • refs/heads/fonctions
    • refs/heads/master
    • refs/heads/varnish
    No releases to show
  • eb48882
  • /
  • README.md
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:bec8772f3e46fa731f2becfca2b25a9930f7ae8d
origin badgedirectory badge
swh:1:dir:eb48882623073469f7f0955f1f99be71f7aa75a5
origin badgerevision badge
swh:1:rev:ea7d3b640273b6a6e02ede5499b9cccfb8fd4078
origin badgesnapshot badge
swh:1:snp:b54cdd0c8a1819a6442200c17bca26d5fb4be805

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: ea7d3b640273b6a6e02ede5499b9cccfb8fd4078 authored by theo.roulet on 19 January 2024, 09:36:58 UTC
[fix] remove unecessary <root> elements form xml outputs
Tip revision: ea7d3b6
README.md
# LST

## Installation
* `git clone`
* Lancer `make init`
  * définir les ports apache et adminer ainsi que le mot de passe root mysql, un nom de db, un utilisateur et mot de passe mysql
  * reporter ces valeurs dans le `.env` de Symfony. L'application devrait être dispo sur `localhost:XXX` où `XXX` est le port défini pour apache.


## Données / import
* Données dans `application/data`

* Import via les commandes:
  * `php bin/console app:import-csv` (option `emptydb` pour vider la base)
  * `php bin/console app:import-article`
  * `php bin/console app:import-csv-trad` (langue optionnelle)
  * `php bin/console app:import-fonction`
  * `php bin/console app:import-fonction-collocations`
  * `php bin/console app:import-fonction-collocations`
  * `php bin/console app:import-fonction-adverbs`
  * `php bin/console app:import-routine`

* suppression:
  * `php bin/console app:delete-trad zh`
  * `php bin/console app:delete-fonctions`
  * `php bin/console app:delete-routines`

### Import JSON 
* Suppression de toutes les données (sauf users et articles) et réimport via la commande : `php bin/console app:import-json`
* Le fichier d'import json doit être placé dans `/application/data/json/` et nommé `lstdata.json`
* Les données peuvent être partielles : [cf. documentation exportJSON ](#Export-JSON-XML)


## Cache
Il y a du cache. Relancer les containers dockers suffit à l'invalider. (voir `application/src/Manager/CacheManager.php`)

```
docker-compose stop
docker-compose up -d
```

## Administration
* Commande pour donner les droits à un utilisateurs : `php bin/console app:toggleadmin <mail>`


## Divers
* Dans doctrine/adminer l'objet lexical_entry a une propriété acceptionUniq du type
  Si LEMMA = introduction_2 et N = N
  Alors acceptionUniq = introduction_N_2
  Si LEMMA = avérer_REFL_1 et N = V
  Alors acceptionUniq = avérer_V_REFL_1

* Routine perl (voir `xml-perl-transform/`) pour reconstruire les id (lemma), ajouter attribut 'acceptionUniq' et supprimer les attributs DEF CS SCS -
```
  <text>
         <front>
             <head><LST CAT="N" TYPE="MONO" LEMMA="approche"
                     DEF="Voie souvent hésitante par laquelle on cherche à cerner un problème complexe\."
                     CS="objet_scientifique" SCS="méthode">Approche</LST> linguistique pour
                     <lb/>l'<LST CAT="N" TYPE="MONO" LEMMA="analyse"
                     DEF="Décomposition en éléments\." CS="processus_cognitif" SCS="examen"
                     TERME="OUI">analyse</LST> syntaxique de corpus</head>
             <docAuthor>
```
## Export JSON-XML

- Formulaire d'export aux formats XML ou JSON disponible pour les administrateurs (`lst.demarre-shs.fr/export/options`) 
- Export personnalisable (choix de 6 groupes d'entités + exemples, sources, et langues des traductions)
- [Documentation de l'export au format XML](export-xml-readme.md) : en partie mappé sur LMF.
- [Documentation de l'export au format JSON](export-json-readme.md) : calque de la base de données, avec les relations 1-1 / 1-* factorisées dans des objets enfants de l'objet parent.
- L'export JSON est réimportable [cf Import JSON](#Import-JSON)

## Licence
GNU GENERAL PUBLIC LICENSE V3 (voir le [Guide rapide de la GPLv3](https://www.gnu.org/licenses/quick-guide-gplv3.html))

## Auteurs du code
* Arnaud Bey
* Sylvain Hatier

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API