Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • F FrenchCropUsage
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

La forge institutionnelle d'INRAE étant en production depuis le 10 juin 2025, nous vous recommandons d'y créer tous vos nouveaux projets.

  • copain
  • FrenchCropUsage
  • Wiki
  • Publication sur le web

Publication sur le web · Changes

Page history
Update Publication sur le web authored Feb 20, 2023 by Bernard Stephan's avatar Bernard Stephan
Hide whitespace changes
Inline Side-by-side
Publication-sur-le-web.md
View page @ 775466d2
...@@ -315,8 +315,62 @@ s-put http://ontology.inrae.fr:3030/frenchcropusage/ default \ ...@@ -315,8 +315,62 @@ s-put http://ontology.inrae.fr:3030/frenchcropusage/ default \
frenchCropUsage_latest.ttl frenchCropUsage_latest.ttl
``` ```
### S'il y a eu un changement de version ## S'il y a eu un changement de version
### Marquage des concepts *deprecated*
```bash
export vers=3.2 # La nouvelle version
export old_vers=3.1 # L'ancienne version
# --- Y a-t-il des concepts supprimés ?
s-query --service=http://ontology.inrae.fr:3030/frenchcropusage/ """
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX fcu: <http://ontology.inrae.fr/frenchcropusage/>
SELECT ?instance WHERE {
GRAPH fcu:${old_vers} { ?instance a skos:Concept }
FILTER NOT EXISTS { GRAPH fcu:${vers} { ?instance a skos:Concept }}}"""
# --- Si c'est le cas on les marque deprecated :
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/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
INSERT { GRAPH fcu:${old_vers} {
?c owl:deprecated true
}} WHERE {
GRAPH fcu:${old_vers} { ?c a skos:Concept }
FILTER NOT EXISTS { GRAPH fcu:${vers} { ?c a skos:Concept }}
}"""
# --- Puis on supprime les dct:modified s'ils existent
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/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
WITH fcu:${old_vers} DELETE {
?c dct:modified ?m
} WHERE {
?c a skos:Concept ; owl:deprecated true ; dct:modified ?m.
}"""
# --- Et on les remplace par 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/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
INSERT { GRAPH fcu:${old_vers} {
?c dct:modified ?dt
}} WHERE {
GRAPH fcu:${old_vers} { ?c a skos:Concept; owl:deprecated true }
GRAPH fcu:${vers} { fcu:${vers} dct:modified ?dt }
}"""
```
### Mise à jour de pubby
Il faut mettre à jour la version déréférencée par [http://ontology.inrae.fr/frenchcropusage](http://ontology.inrae.fr/frenchcropusage) dans pubby. Il faut mettre à jour la version déréférencée par [http://ontology.inrae.fr/frenchcropusage](http://ontology.inrae.fr/frenchcropusage) dans pubby.
```sh ```sh
......
Clone repository
  • Add a new crop
  • Competency questions
  • Les cultures : définition et label
  • Outil Corése
  • Outil Protégé
  • Outil gitlab
  • Outil skosplay
  • Publication sur le web
  • catégorie de cultures
  • Home
  • justification de la position dans la hiérarchie
  • mapping vers les sources
  • nom de culture ambigus
  • sources