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
16 April 2026, 05:12:41 UTC
  • Code
  • Branches (4)
  • Releases (0)
  • Visits
Revision f208a17be3b3b7921f476ac0fc2dc5dcb078635a authored by hatiers on 18 February 2025, 10:42:43 UTC, committed by hatiers on 18 February 2025, 10:42:43 UTC
Edit about.html.twig / MAJ lien ortolang et publis ALSIC
1 parent 1c6750b
  • Files
  • Changes
    • Branches
    • Releases
    • HEAD
    • refs/heads/export
    • refs/heads/fonctions
    • refs/heads/master
    • refs/heads/varnish
    • f208a17be3b3b7921f476ac0fc2dc5dcb078635a
    No releases to show
  • 52df7bf
  • /
  • 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.

  • revision
  • directory
  • content
  • snapshot
origin badgerevision badge
swh:1:rev:f208a17be3b3b7921f476ac0fc2dc5dcb078635a
origin badgedirectory badge
swh:1:dir:52df7bf5589d3131ab4a8612bbe2aedbf41c32cf
origin badgecontent badge
swh:1:cnt:bec8772f3e46fa731f2becfca2b25a9930f7ae8d
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.

  • revision
  • directory
  • content
  • 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: f208a17be3b3b7921f476ac0fc2dc5dcb078635a authored by hatiers on 18 February 2025, 10:42:43 UTC
Edit about.html.twig / MAJ lien ortolang et publis ALSIC
Tip revision: f208a17
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
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

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