Skip to content

Commit

Permalink
update documentation: 'collection' instead of 'collections'
Browse files Browse the repository at this point in the history
  • Loading branch information
philippepons committed Feb 15, 2024
1 parent cf21806 commit e095204
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 52 deletions.
49 changes: 1 addition & 48 deletions docs/cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,6 @@ Il convient de déclarer chacune de ces unités documentaires.
|position |document |TEI file |`data/ENCPOS_AAAA/ENCPOS_AAAA_NN.xml`|
|section |fragment |TEI node |`/TEI/text/boby/div`|

<!-- **Collections**. Il suffit d’organiser le dossier `data/` en collections et sous-collections par défaut. Les métadonnées peuvent être déportées dans un TSV (ici `default_collections_titles.tsv`).
**Documents**. Les documents correspondent aux fichiers XML/TEI.
**Fragments**. La hiérarchie des fragments est déclarée, pour chaque document, grâce à l’élément <a href="https://www.tei-c.org/release/doc/tei-p5-doc/fr/html/ref-citeStructure.html" target="_blank">`citeStructure`</a> du `teiHeader` :
???+ example "Example de `tei:citeStructure`"
```xml
<citeStructure unit="chapter" match="/TEI/text/body/div" use="position()">
<citeData use="head" property="dc:title"/>
</citeStructure>
```
-->
#### Corpus de test

Le corpus de test est disponible : <a href="https://github.com/chartes/dots_documentation/tree/dev/data_test/periodiques/encpos_by_abstract" target="_blank">https://github.com/chartes/dots_documentation/tree/dev/data_test/periodiques/encpos_by_abstract</a>.
Expand Down Expand Up @@ -126,7 +112,7 @@ Il contient les métadonnées descriptives des ressources : `default_collections

Le fichier `dots_metadata_mapping.xml` est important. Il permet de :

- lister et qualifier les métadonnées partagées via le endpoint DTS Collections ;
- lister et qualifier les métadonnées partagées via le endpoint DTS Collection ;
- déclarer leur localisation.

Ces métadonnées peuvent être inscrites "en dure" dans le document `dots_metadata_mapping.xml`. Autrement dit, la valeur est inscrite directement dans le document XML.
Expand Down Expand Up @@ -233,39 +219,6 @@ Il convient de déclarer chacune de ces unités documentaires.
|position |fragment |TEI node |`/TEI/text/boby/div[@type='position]'`|
|section |fragment |TEI node |`/TEI/text/boby/div[@type='position]/div`|


<!--**Collections**. Il suffit d’organiser le dossier `data/` en collections et sous-collections par défaut.
{{ macro_collapse_card_api_doc(
verb_http="get",
url="http://localhost:8080/api/dts/collection?id=ENCPOS_c2")
}}
**Documents**. Les documents correspondent aux fichiers XML/TEI.
**Fragments**. La hiérarchie des fragments est déclarée, pour chaque document, grâce à l’élément `citeStructure` du `teiHeader` :
???+ example "`citeStructure`"
```xml
<citeStructure unit="position" match="/TEI/text/body/div[@type='position']" use="@xml:id">
<citeData use="head" property="dc:title"/>
<citeStructure unit="chapter" match="div" use="position()">
<citeData use="head" property="dc:title"/>
</citeStructure>
</citeStructure>
```
{{ macro_collapse_card_api_doc(
verb_http="get",
url="http://localhost:8080/api/dts/navigation?id=ENCPOS_1972_c2")
}}
{{ macro_collapse_card_api_doc(
verb_http="get",
url="http://localhost:8080/api/dts/navigation?id=ENCPOS_1972_c2&ref=ENCPOS_1972_18")
}}
-->
#### Corpus de test

Le corpus de test est disponible : <a href="https://github.com/chartes/dots_documentation/tree/dev/data_test/periodiques/encpos_by_volume" target="_blank">https://github.com/chartes/dots_documentation/tree/dev/data_test/periodiques/encpos_by_volume</a>.
Expand Down
2 changes: 1 addition & 1 deletion docs/dots-project-folder.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Vous pouvez structurer vos documents en collections et sous-collections hiérarc
tartuffe.xml
```

??? example "Le projet contient des collections"
??? example "Le projet contient des sous-collections"

```
theater_project/
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Publishers of digital text collections can use the DTS API to help them make the

Using DoTS, you can

- with the DTS Collections endpoint:
- with the DTS Collection endpoint:
- Retrieve lists of collection members.
- Retrieve metadata about individual collection items.
- with the DTS Navigation endpoint:
Expand Down
4 changes: 2 additions & 2 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.3",
"info": {
"title": "DoTS - OpenAPI 3.0",
"description": "**Documentation and specification of the [DTS API](https://distributed-text-services.github.io/specifications/) implementation by [DoTS](https://github.com/chartes/dots).** \n\n DoTS is a suite of XQuery tools in [BaseX](https://basex.org/) designed to provide a resolver for the DTS API. \n \n This API offers an access to the endpoints :\n * Base API Endpoint \n * collections (navigating collections) \n * navigation (list of passages accessible for navigation from a given reference within a resource) \n * document (acces to the content of document) ",
"description": "**Documentation and specification of the [DTS API](https://distributed-text-services.github.io/specifications/) implementation by [DoTS](https://github.com/chartes/dots).** \n\n DoTS is a suite of XQuery tools in [BaseX](https://basex.org/) designed to provide a resolver for the DTS API. \n \n This API offers an access to the endpoints :\n * Base API Endpoint \n * collection (navigating collections) \n * navigation (list of passages accessible for navigation from a given reference within a resource) \n * document (acces to the content of document) ",
"license": {
"name": "MIT",
"url": "https://opensource.org/licenses/MIT"
Expand Down Expand Up @@ -51,7 +51,7 @@
}
}
},
"/dts/collections": {
"/dts/collection": {
"get": {
"tags": [
"default"
Expand Down

0 comments on commit e095204

Please sign in to comment.