Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -388,14 +388,14 @@ def xml_mapping(entity, label):
|
|
388 |
element_mapping = {
|
389 |
"CHRONOLOGIE": {"tag": "date"},
|
390 |
"DECOR": {"tag": "name", "attrib": {"type": "decor"}},
|
391 |
-
"EDIFICE": {"tag": "
|
392 |
"ESPECE": {"tag": "name", "attrib": {"type": "espece"}},
|
393 |
"GPE": {"tag": "placeName"},
|
394 |
-
"ID": {"tag": "
|
395 |
"LIEUDIT_SITE": {"tag": "placeName", "attrib": {"type": "lieudit_site"}},
|
396 |
"LOC": {"tag": "geogName"},
|
397 |
"MATERIAU": {"tag": "material"},
|
398 |
-
"MOBILIER": {"tag": "
|
399 |
"ORG": {"tag": "orgName"},
|
400 |
"PERSONNE": {"tag": "persName"},
|
401 |
"PEUPLE_CULTURE": {"tag": "orgName", "attrib": {"type": "peuple_culture"}},
|
@@ -682,7 +682,7 @@ def main():
|
|
682 |
|
683 |
with st.expander("Au sujet du mapping XML des entités"):
|
684 |
st.markdown(
|
685 |
-
"**Les entités ont été converties comme suit
|
686 |
st.write("")
|
687 |
|
688 |
# Display the modified XML
|
|
|
388 |
element_mapping = {
|
389 |
"CHRONOLOGIE": {"tag": "date"},
|
390 |
"DECOR": {"tag": "name", "attrib": {"type": "decor"}},
|
391 |
+
"EDIFICE": {"tag": "placeName", "attrib": {"type": "edifice"}},
|
392 |
"ESPECE": {"tag": "name", "attrib": {"type": "espece"}},
|
393 |
"GPE": {"tag": "placeName"},
|
394 |
+
"ID": {"tag": "idno", "attrib": {"type": "entite"}},
|
395 |
"LIEUDIT_SITE": {"tag": "placeName", "attrib": {"type": "lieudit_site"}},
|
396 |
"LOC": {"tag": "geogName"},
|
397 |
"MATERIAU": {"tag": "material"},
|
398 |
+
"MOBILIER": {"tag": "objectType"},
|
399 |
"ORG": {"tag": "orgName"},
|
400 |
"PERSONNE": {"tag": "persName"},
|
401 |
"PEUPLE_CULTURE": {"tag": "orgName", "attrib": {"type": "peuple_culture"}},
|
|
|
682 |
|
683 |
with st.expander("Au sujet du mapping XML des entités"):
|
684 |
st.markdown(
|
685 |
+
"**Les entités ont été converties comme suit : (en construction)** \n\n- **CHRONOLOGIE :** ```<date>``` \n- **MOBILIER :** ```<objectType>``` \n- **STRUCTURE :** ```<name type=\"structure\">``` \n- **MATERIAU :** ```<material>``` \n- **ID :** ```<idno type=\"entite\">``` \n- **TECHNIQUE_STYLE :** ```<name type=\"technique_style\">``` \n- **DECOR :** ```<name type=\"decor\">``` \n- **ESPECE :** ```<name type=\"espece\">``` \n- **EDIFICE :** ```<placeName type=\"edifice\">``` \n- **PEUPLE_CULTURE :** ```<orgName type=\"peuple_culture\">``` \n- **PERSONNE :** ```<persName>``` \n- **ORG :** ```<orgName>``` \n- **GPE :** ```<placeName>``` \n- **LOC :** ```<geogName>``` \n- **LIEUDIT_SITE :** ```<placeName type=\"lieudit_site\">```")
|
686 |
st.write("")
|
687 |
|
688 |
# Display the modified XML
|