| ... | ... | @@ -14,14 +14,35 @@ Le fichier Readme du repertoire dev est le readme correspondant à la nouvelle v | 
| 
 | 
 | 
- les dates de modifications qui se répètent dans un même concept ou qui sont identiques à la date de création du concept.
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
### Publication du 28/02/2023
 | 
| 
 | 
 | 
###### Labels qui se terminent par un caractère incorrect
 | 
| 
 | 
 | 
- "reine des fruits (en hommage à la reine Victoria)"
 | 
| 
 | 
 | 
- "Légumineuses potagères (sèches)"
 | 
| 
 | 
 | 
##### Labels qui se terminent par un caractère incorrect
 | 
| 
 | 
 | 
*Aucun*
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
###### Concepts ayant des dates associées à un tag de langue
 | 
| 
 | 
 | 
##### Concepts ayant des dates associées à un tag de langue
 | 
| 
 | 
 | 
*Aucun*
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
###### Concepts ayant des labels identiques
 | 
| 
 | 
 | 
##### prefLabels identiques
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
| label | lang | crop1 | crop2 |
 | 
| 
 | 
 | 
|-------|------|-------|-------|
 | 
| 
 | 
 | 
| hemp |en | Chanvres | Chanvres_fibres |
 | 
| 
 | 
 | 
| parsley |en | Persils | Persils_odorants |
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
##### prefLabels qui sont altLabel d'un autre concept
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
| label | lang | crop1 | crop2 |
 | 
| 
 | 
 | 
|-------|------|-------|-------|
 | 
| 
 | 
 | 
| jardins familiaux |fr | Cultures_jardins_familiaux | Jardins |
 | 
| 
 | 
 | 
| églantier |fr | Eglantiers | Rosiers |
 | 
| 
 | 
 | 
| jardin |fr | Jardins | Zones_non_agricoles |
 | 
| 
 | 
 | 
| lupin blanc |fr | Lupins_proteagineux_blancs | Lupins_engrais_verts |
 | 
| 
 | 
 | 
| lupin blanc de printemps |fr | Lupins_proteagineux_blancs_printemps | Lupins_engrais_verts |
 | 
| 
 | 
 | 
| mélilot jaune |fr | Melilots_jaunes_engrais_verts | Melilots_fourragers |
 | 
| 
 | 
 | 
| mélilot jaune |fr | Melilots_jaunes_engrais_verts | Melilots_officinales |
 | 
| 
 | 
 | 
| mélilot officinal |fr | Melilots_officinales | Melilots_jaunes_engrais_verts |
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
##### altLabels identiques
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
| label | lang | crop1 | crop2 |
 | 
| 
 | 
 | 
|-------|------|-------|-------|
 | 
| ... | ... | @@ -32,42 +53,31 @@ Le fichier Readme du repertoire dev est le readme correspondant à la nouvelle v | 
| 
 | 
 | 
| betterave non fourragère |fr | Betteraves_potageres | Betteraves_sucrieres |
 | 
| 
 | 
 | 
| cougourde |fr | Calebasses | Courges |
 | 
| 
 | 
 | 
| carde |fr | Cardons | Poirees |
 | 
| 
 | 
 | 
| hemp |en | Chanvres | Chanvres_fibres |
 | 
| 
 | 
 | 
| chicon |fr | Chicorees_de_Bruxelles | Laitues_romaines |
 | 
| 
 | 
 | 
| chicorée endive |fr | Chicorees_frisees | Chicorees_scaroles |
 | 
| 
 | 
 | 
| chou vert |fr | Choux_frisés | Choux_verts_non_pommes |
 | 
| 
 | 
 | 
| jardin familial |fr | Cultures_jardins_familiaux | Jardins |
 | 
| 
 | 
 | 
| jardins familiaux |fr | Cultures_jardins_familiaux | Jardins |
 | 
| 
 | 
 | 
| jardins ouvriers |fr | Cultures_jardins_familiaux | Jardins |
 | 
| 
 | 
 | 
| vergers familiaux |fr | Cultures_jardins_familiaux | Jardins |
 | 
| 
 | 
 | 
| églantier |fr | Eglantiers | Rosiers |
 | 
| 
 | 
 | 
| haricot blanc |fr | Flageolets | Haricots_secs |
 | 
| 
 | 
 | 
| haricot coco |fr | Flageolets | Haricots_secs |
 | 
| 
 | 
 | 
| haricot nain |fr | Haricots | Haricots_verts |
 | 
| 
 | 
 | 
| haricot à rames |fr | Haricots | Haricots_verts |
 | 
| 
 | 
 | 
| haricot grain |fr | Haricots_demi_sec | Haricots_secs |
 | 
| 
 | 
 | 
| jardin |fr | Jardins | Zones_non_agricoles |
 | 
| 
 | 
 | 
| lupin bleu |fr | Lupins_engrais_verts | Lupins_fourragers |
 | 
| 
 | 
 | 
| lupin bleu |fr | Lupins_engrais_verts | Lupins_proteagineux |
 | 
| 
 | 
 | 
| lupin jaune |fr | Lupins_engrais_verts | Lupins_proteagineux |
 | 
| 
 | 
 | 
| lupin blanc |fr | Lupins_engrais_verts | Lupins_proteagineux_blancs |
 | 
| 
 | 
 | 
| lupin blanc de printemps |fr | Lupins_engrais_verts | Lupins_proteagineux_blancs_printemps |
 | 
| 
 | 
 | 
| lupin bleu |fr | Lupins_fourragers | Lupins_proteagineux |
 | 
| 
 | 
 | 
| petit trèfle jaune |fr | Lupulines | Melilots_fourragers |
 | 
| 
 | 
 | 
| mélilot jaune |fr | Melilots_fourragers | Melilots_jaunes_engrais_verts |
 | 
| 
 | 
 | 
| mélilot jaune |fr | Melilots_fourragers | Melilots_officinales |
 | 
| 
 | 
 | 
| mélilot jaune |fr | Melilots_jaunes_engrais_verts | Melilots_officinales |
 | 
| 
 | 
 | 
| mélilot officinal |fr | Melilots_jaunes_engrais_verts | Melilots_officinales |
 | 
| 
 | 
 | 
| mûre |fr | Muriers | Ronces |
 | 
| 
 | 
 | 
| brugnon |fr | Nectariniers | Pechers |
 | 
| 
 | 
 | 
| pavot bleu |fr | Oeillettes | Pavots_ornementaux |
 | 
| 
 | 
 | 
| pamplemousse |fr | Pamplemoussiers | Pomelos |
 | 
| 
 | 
 | 
| parsley |en | Persils | Persils_odorants |
 | 
| 
 | 
 | 
| persil cultivé |fr | Persils | Persils_odorants |
 | 
| 
 | 
 | 
| radis blanc |fr | Radis_chinois | Radis_potagers |
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
# Marche à suivre pour la publication
 | 
| 
 | 
 | 
## Outils
 | 
| 
 | 
 | 
La publication nécessite un [serveur SPARQL Apache jena-fuseki](https://jena.apache.org/documentation/fuseki2/).
 | 
| ... | ... | @@ -124,7 +134,7 @@ s-post http://localhost:3030/fcu default \ | 
| 
 | 
 | 
s-post http://localhost:3030/fcu default \
 | 
| 
 | 
 | 
  frenchCropUsage_thesaurus_latest.ttl
 | 
| 
 | 
 | 
```
 | 
| 
 | 
 | 
8. Recherche de labels qui ne terminent pas par un caractère alphanumérique, **et on écrit les erreurs dans le wiki, sur la page de publication**.
 | 
| 
 | 
 | 
8. Recherche de labels qui ne terminent pas par un caractère alphanumérique, **et on écrit les erreurs dans le wiki, sur la page de publication**. On ne relèvera toutefois pas les parenthèses fermantes.
 | 
| 
 | 
 | 
```sh
 | 
| 
 | 
 | 
s-query --service=http://localhost:3030/fcu """
 | 
| 
 | 
 | 
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
 | 
| ... | ... | @@ -148,10 +158,35 @@ FILTER NOT EXISTS { ?c a skos:Concept }}""" | 
| 
 | 
 | 
```
 | 
| 
 | 
 | 
11. Labels redondants
 | 
| 
 | 
 | 
```bash
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
##### prefLabels identiques
 | 
| 
 | 
 | 
export QUERY="""PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
 | 
| 
 | 
 | 
SELECT ?label (lang(?label) AS ?lang) ?crop1 ?crop2 WHERE {
 | 
| 
 | 
 | 
?crop1 a skos:Concept; skos:prefLabel ?label.
 | 
| 
 | 
 | 
?crop2 a skos:Concept; skos:prefLabel ?label.
 | 
| 
 | 
 | 
FILTER (str(?crop1) < str(?crop2))} ORDER BY ?crop1"""
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
curl --silent -H "Accept: text/csv" --data "query=$QUERY" \
 | 
| 
 | 
 | 
  http://localhost:3030/fcu/query |
 | 
| 
 | 
 | 
  sed -e 's/^/| /;s/["\r]//g;s/http[^,]*cropusage./ /g;s/,/ |/g;s/$/ |/'
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
##### prefLabels qui sont altLabel d'un autre concept
 | 
| 
 | 
 | 
export QUERY="""PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
 | 
| 
 | 
 | 
SELECT ?label (lang(?label) AS ?lang) ?crop1 ?crop2 WHERE {
 | 
| 
 | 
 | 
?crop1 a skos:Concept; skos:prefLabel ?label.
 | 
| 
 | 
 | 
?crop2 a skos:Concept; skos:altLabel ?label.
 | 
| 
 | 
 | 
FILTER (str(?crop1) != str(?crop2))} ORDER BY ?crop1"""
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
curl --silent -H "Accept: text/csv" --data "query=$QUERY" \
 | 
| 
 | 
 | 
  http://localhost:3030/fcu/query |
 | 
| 
 | 
 | 
  sed -e 's/^/| /;s/["\r]//g;s/http[^,]*cropusage./ /g;s/,/ |/g;s/$/ |/'
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
##### altLabels identiques
 | 
| 
 | 
 | 
export QUERY="""PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
 | 
| 
 | 
 | 
SELECT ?label (lang(?label) AS ?lang) ?crop1 ?crop2 WHERE {
 | 
| 
 | 
 | 
?crop1 a skos:Concept; skos:prefLabel|skos:altLabel ?label.
 | 
| 
 | 
 | 
?crop2 a skos:Concept; skos:prefLabel|skos:altLabel ?label.
 | 
| 
 | 
 | 
?crop1 a skos:Concept; skos:altLabel ?label.
 | 
| 
 | 
 | 
?crop2 a skos:Concept; skos:altLabel ?label.
 | 
| 
 | 
 | 
FILTER (str(?crop1) < str(?crop2))} ORDER BY ?crop1"""
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
curl --silent -H "Accept: text/csv" --data "query=$QUERY" \
 | 
| ... | ... | @@ -306,7 +341,7 @@ WITH fcu:${old_vers} DELETE { | 
| 
 | 
 | 
}"""
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
# --- Et on les remplace par dct:modified de la nouvelle version
 | 
| 
 | 
 | 
# --- Et on les remplace par le dct:modified de la nouvelle version
 | 
| 
 | 
 | 
s-update --service=http://ontology.inrae.fr:3030/frenchcropusage/ """
 | 
| 
 | 
 | 
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
 | 
| 
 | 
 | 
PREFIX fcu:  <http://ontology.inrae.fr/frenchcropusage/>
 | 
| ... | ... | @@ -336,7 +371,7 @@ sudo systemctl restart tomcat9.service | 
| 
 | 
 | 
sudo micro /etc/apache2/sites-available/proxy-jena.conf
 | 
| 
 | 
 | 
# Adapter la réécriture de la condition /frenchcropusage/def :
 | 
| 
 | 
 | 
#  RewriteCond "%{REQUEST_URI}" "/frenchcropusage/def/?$"
 | 
| 
 | 
 | 
#  RewriteRule "/frenchcropusage/def/?$" "http://ontology.inrae.fr/frenchcropusage/def/1.0" [P,L]
 | 
| 
 | 
 | 
#  RewriteRule "/frenchcropusage/def/?$" "http://ontology.inrae.fr/frenchcropusage/def/1.1" [P,L]
 | 
| 
 | 
 | 
sudo systemctl restart apache2.service
 | 
| 
 | 
 | 
```
 | 
| 
 | 
 | 
 | 
| ... | ... |  |