瀏覽代碼

A fairly complete alpha version

kora 3 月之前
父節點
當前提交
4aa9a8e0ca
共有 7 個文件被更改,包括 2554 次插入303 次删除
  1. 21 23
      data/man_draft.json
  2. 1448 0
      data/man_draft.rdf
  3. 836 0
      data/man_draft.ttl
  4. 248 0
      ontology_parser.py
  5. 0 138
      parse_onto_xlsx.py
  6. 0 142
      reparsing_TO_REVIEW.py
  7. 1 0
      template.rdf

+ 21 - 23
data/man_draft.json

@@ -1,11 +1,17 @@
 {
   "Entità": {
     "Manoscritto": {
+      "Sinonimi": [
+        "Codice"
+      ],
       "Attributi": [
         "Nome vulgato"
       ]
     },
     "Unità codicologica": {
+      "Sinonimi": [
+        "Sezione"
+      ],
       "Attributi": [
         "Consistenza",
         "Legatura",
@@ -47,6 +53,9 @@
       "Sottoclasse di": "Illustrazione"
     },
     "Dimensioni": {
+      "Sinonimi": [
+        "Formato"
+      ],
       "Attributi": [
         "Larghezza",
         "Lunghezza",
@@ -61,6 +70,12 @@
       ]
     },
     "Organizzazione della pagina": {
+      "Sinonimi": [
+        "Architettura della pagina",
+        "Disposizione della pagina",
+        "Utilizzazione della pagina",
+        "Impaginazione"
+      ],
       "Attributi": [
         "Descrizione pagina",
         "Tipo di scrittura pagina"
@@ -114,6 +129,11 @@
       ]
     },
     "Aggiunta": {
+      "Sinonimi": [
+        "Inserzione",
+        "Integrazione",
+        "Addizione"
+      ],
       "Attributi": [
         "Descrizione aggiunta"
       ]
@@ -300,27 +320,5 @@
       "Etichetta": "is_kept_at",
       "Inversa": "holds"
     }
-  ],
-  "Same_as": {
-    "Manoscritto": [
-      "Codice"
-    ],
-    "Unità codicologica": [
-      "Sezione"
-    ],
-    "Dimensioni": [
-      "Formato"
-    ],
-    "Organizzazione della pagina": [
-      "Architettura della pagina",
-      "Disposizione della pagina",
-      "Utilizzazione della pagina",
-      "Impaginazione"
-    ],
-    "Aggiunta": [
-      "Inserzione",
-      "Integrazione",
-      "Addizione"
-    ]
-  }
+  ]
 }

+ 1448 - 0
data/man_draft.rdf

@@ -0,0 +1,1448 @@
+<?xml version="1.0"?>
+
+
+<!DOCTYPE rdf:RDF [
+    <!-- Link da rivedere -->
+    <!ENTITY h2iosc "http://www.h2iosc.it/onto#" >
+    <!ENTITY owl "https://www.w3.org/TR/owl-ref#" >
+    <!ENTITY rdfs "https://www.w3.org/TR/rdf11-schema#" >
+    <!ENTITY rdf "https://www.w3.org/TR/rdf11-concepts#" >
+]>
+
+
+<rdf:RDF xmlns="http://www.h2iosc.it/onto#"
+     xml:base="http://www.h2iosc.it/onto"
+     xmlns:h2iosc="http://www.h2iosc.it/onto#"
+     xmlns:owl="http://www.w3.org/2002/07/owl#"
+     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
+    <owl:Ontology rdf:about="http://www.h2iosc.it/onto#"/>
+    
+
+
+    <!-- 
+    ///////////////////////////////////////////////////////////////////////////////////////
+    //
+    // Object Properties
+    //
+    ///////////////////////////////////////////////////////////////////////////////////////
+     -->
+
+
+
+    <!-- http://www.h2iosc.it/onto#manoscritto_is_composed_by_unita_codicologica -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;manoscritto_is_composed_by_unita_codicologica">
+        <rdfs:label>is_composed_by</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;unita_codicologica"/>
+        <rdfs:domain rdf:resource="&h2iosc;manoscritto"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#unita_codicologica_is_part_of_manoscritto -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;unita_codicologica_is_part_of_manoscritto">
+        <rdfs:label>is_part_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;manoscritto_is_composed_by_unita_codicologica"/>
+        <rdfs:range rdf:resource="&h2iosc;manoscritto"/>
+        <rdfs:domain rdf:resource="&h2iosc;unita_codicologica"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#manoscritto_originated_in_origine -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;manoscritto_originated_in_origine">
+        <rdfs:label>originated_in</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;origine"/>
+        <rdfs:domain rdf:resource="&h2iosc;manoscritto"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#origine_is_origin_of_manoscritto -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;origine_is_origin_of_manoscritto">
+        <rdfs:label>is_origin_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;manoscritto_originated_in_origine"/>
+        <rdfs:range rdf:resource="&h2iosc;manoscritto"/>
+        <rdfs:domain rdf:resource="&h2iosc;origine"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#manoscritto_has_been_in_provenienza -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;manoscritto_has_been_in_provenienza">
+        <rdfs:label>has_been_in</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;provenienza"/>
+        <rdfs:domain rdf:resource="&h2iosc;manoscritto"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#provenienza_is_part_of_the_history_of_manoscritto -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;provenienza_is_part_of_the_history_of_manoscritto">
+        <rdfs:label>is_part_of_the_history_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;manoscritto_has_been_in_provenienza"/>
+        <rdfs:range rdf:resource="&h2iosc;manoscritto"/>
+        <rdfs:domain rdf:resource="&h2iosc;provenienza"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#unita_codicologica_is_composed_by_bifoglio -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;unita_codicologica_is_composed_by_bifoglio">
+        <rdfs:label>is_composed_by</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;bifoglio"/>
+        <rdfs:domain rdf:resource="&h2iosc;unita_codicologica"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#bifoglio_is_part_of_unita_codicologica -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;bifoglio_is_part_of_unita_codicologica">
+        <rdfs:label>is_part_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;unita_codicologica_is_composed_by_bifoglio"/>
+        <rdfs:range rdf:resource="&h2iosc;unita_codicologica"/>
+        <rdfs:domain rdf:resource="&h2iosc;bifoglio"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#unita_codicologica_is_composed_by_foglio -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;unita_codicologica_is_composed_by_foglio">
+        <rdfs:label>is_composed_by</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;foglio"/>
+        <rdfs:domain rdf:resource="&h2iosc;unita_codicologica"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#foglio_is_part_of_unita_codicologica -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;foglio_is_part_of_unita_codicologica">
+        <rdfs:label>is_part_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;unita_codicologica_is_composed_by_foglio"/>
+        <rdfs:range rdf:resource="&h2iosc;unita_codicologica"/>
+        <rdfs:domain rdf:resource="&h2iosc;foglio"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#manoscritto_consists_of_supporto -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;manoscritto_consists_of_supporto">
+        <rdfs:label>consists_of</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;supporto"/>
+        <rdfs:domain rdf:resource="&h2iosc;manoscritto"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#supporto_is_incorporated_in_manoscritto -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;supporto_is_incorporated_in_manoscritto">
+        <rdfs:label>is_incorporated_in</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;manoscritto_consists_of_supporto"/>
+        <rdfs:range rdf:resource="&h2iosc;manoscritto"/>
+        <rdfs:domain rdf:resource="&h2iosc;supporto"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#bifoglio_is_composed_by_foglio -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;bifoglio_is_composed_by_foglio">
+        <rdfs:label>is_composed_by</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;foglio"/>
+        <rdfs:domain rdf:resource="&h2iosc;bifoglio"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#foglio_is_part_of_bifoglio -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;foglio_is_part_of_bifoglio">
+        <rdfs:label>is_part_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;bifoglio_is_composed_by_foglio"/>
+        <rdfs:range rdf:resource="&h2iosc;bifoglio"/>
+        <rdfs:domain rdf:resource="&h2iosc;foglio"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#foglio_is_composed_by_pagina -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;foglio_is_composed_by_pagina">
+        <rdfs:label>is_composed_by</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;pagina"/>
+        <rdfs:domain rdf:resource="&h2iosc;foglio"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#pagina_is_part_of_foglio -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;pagina_is_part_of_foglio">
+        <rdfs:label>is_part_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;foglio_is_composed_by_pagina"/>
+        <rdfs:range rdf:resource="&h2iosc;foglio"/>
+        <rdfs:domain rdf:resource="&h2iosc;pagina"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#pagina_contains_illustrazione -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;pagina_contains_illustrazione">
+        <rdfs:label>contains</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;illustrazione"/>
+        <rdfs:domain rdf:resource="&h2iosc;pagina"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#illustrazione_is_contained_in_pagina -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;illustrazione_is_contained_in_pagina">
+        <rdfs:label>is_contained_in</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;pagina_contains_illustrazione"/>
+        <rdfs:range rdf:resource="&h2iosc;pagina"/>
+        <rdfs:domain rdf:resource="&h2iosc;illustrazione"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#pagina_is_written_by_mano -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;pagina_is_written_by_mano">
+        <rdfs:label>is_written_by</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;mano"/>
+        <rdfs:domain rdf:resource="&h2iosc;pagina"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#mano_writes_pagina -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;mano_writes_pagina">
+        <rdfs:label>writes</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;pagina_is_written_by_mano"/>
+        <rdfs:range rdf:resource="&h2iosc;pagina"/>
+        <rdfs:domain rdf:resource="&h2iosc;mano"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#pagina_is_described_by_organizzazione_della_pagina -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;pagina_is_described_by_organizzazione_della_pagina">
+        <rdfs:label>is_described_by</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;organizzazione_della_pagina"/>
+        <rdfs:domain rdf:resource="&h2iosc;pagina"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#organizzazione_della_pagina_describes_pagina -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;organizzazione_della_pagina_describes_pagina">
+        <rdfs:label>describes</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;pagina_is_described_by_organizzazione_della_pagina"/>
+        <rdfs:range rdf:resource="&h2iosc;pagina"/>
+        <rdfs:domain rdf:resource="&h2iosc;organizzazione_della_pagina"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#illustrazione_represents_#any -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;illustrazione_represents_#any">
+        <rdfs:label>represents</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;#any"/>
+        <rdfs:domain rdf:resource="&h2iosc;illustrazione"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto##any_is_represented_in_illustrazione -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;#any_is_represented_in_illustrazione">
+        <rdfs:label>is_represented_in</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;illustrazione_represents_#any"/>
+        <rdfs:range rdf:resource="&h2iosc;illustrazione"/>
+        <rdfs:domain rdf:resource="&h2iosc;#any"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#evento_has_time_span_periodo -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;evento_has_time_span_periodo">
+        <rdfs:label>has_time_span</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;periodo"/>
+        <rdfs:domain rdf:resource="&h2iosc;evento"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#periodo_is_time_span_of_evento -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;periodo_is_time_span_of_evento">
+        <rdfs:label>is_time_span_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;evento_has_time_span_periodo"/>
+        <rdfs:range rdf:resource="&h2iosc;evento"/>
+        <rdfs:domain rdf:resource="&h2iosc;periodo"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#evento_happens_in_luogo -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;evento_happens_in_luogo">
+        <rdfs:label>happens_in</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;luogo"/>
+        <rdfs:domain rdf:resource="&h2iosc;evento"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#luogo_is_theater_of_evento -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;luogo_is_theater_of_evento">
+        <rdfs:label>is_theater_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;evento_happens_in_luogo"/>
+        <rdfs:range rdf:resource="&h2iosc;evento"/>
+        <rdfs:domain rdf:resource="&h2iosc;luogo"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#persona_is_active_in_periodo -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;persona_is_active_in_periodo">
+        <rdfs:label>is_active_in</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;periodo"/>
+        <rdfs:domain rdf:resource="&h2iosc;persona"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#periodo_sees_activity_of_persona -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;periodo_sees_activity_of_persona">
+        <rdfs:label>sees_activity_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;persona_is_active_in_periodo"/>
+        <rdfs:range rdf:resource="&h2iosc;persona"/>
+        <rdfs:domain rdf:resource="&h2iosc;periodo"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#manoscritto_transmits_testo -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;manoscritto_transmits_testo">
+        <rdfs:label>transmits</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;testo"/>
+        <rdfs:domain rdf:resource="&h2iosc;manoscritto"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#testo_is_transmitted_by_manoscritto -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;testo_is_transmitted_by_manoscritto">
+        <rdfs:label>is_transmitted_by</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;manoscritto_transmits_testo"/>
+        <rdfs:range rdf:resource="&h2iosc;manoscritto"/>
+        <rdfs:domain rdf:resource="&h2iosc;testo"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#persona_is_author_of_testo -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;persona_is_author_of_testo">
+        <rdfs:label>is_author_of</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;testo"/>
+        <rdfs:domain rdf:resource="&h2iosc;persona"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#testo_is_authored_by_persona -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;testo_is_authored_by_persona">
+        <rdfs:label>is_authored_by</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;persona_is_author_of_testo"/>
+        <rdfs:range rdf:resource="&h2iosc;persona"/>
+        <rdfs:domain rdf:resource="&h2iosc;testo"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#pagina_includes_aggiunta -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;pagina_includes_aggiunta">
+        <rdfs:label>includes</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;aggiunta"/>
+        <rdfs:domain rdf:resource="&h2iosc;pagina"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#aggiunta_is_included_in_pagina -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;aggiunta_is_included_in_pagina">
+        <rdfs:label>is_included_in</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;pagina_includes_aggiunta"/>
+        <rdfs:range rdf:resource="&h2iosc;pagina"/>
+        <rdfs:domain rdf:resource="&h2iosc;aggiunta"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#pagina_includes_marginalia -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;pagina_includes_marginalia">
+        <rdfs:label>includes</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;marginalia"/>
+        <rdfs:domain rdf:resource="&h2iosc;pagina"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#marginalia_is_included_in_pagina -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;marginalia_is_included_in_pagina">
+        <rdfs:label>is_included_in</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;pagina_includes_marginalia"/>
+        <rdfs:range rdf:resource="&h2iosc;pagina"/>
+        <rdfs:domain rdf:resource="&h2iosc;marginalia"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#foglio_is_described_by_dimensioni -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;foglio_is_described_by_dimensioni">
+        <rdfs:label>is_described_by</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;dimensioni"/>
+        <rdfs:domain rdf:resource="&h2iosc;foglio"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#dimensioni_describes_foglio -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;dimensioni_describes_foglio">
+        <rdfs:label>describes</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;foglio_is_described_by_dimensioni"/>
+        <rdfs:range rdf:resource="&h2iosc;foglio"/>
+        <rdfs:domain rdf:resource="&h2iosc;dimensioni"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#ente_is_placed_in_luogo -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;ente_is_placed_in_luogo">
+        <rdfs:label>is_placed_in</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;luogo"/>
+        <rdfs:domain rdf:resource="&h2iosc;ente"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#luogo_has_ente -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;luogo_has_ente">
+        <rdfs:label>has</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;ente_is_placed_in_luogo"/>
+        <rdfs:range rdf:resource="&h2iosc;ente"/>
+        <rdfs:domain rdf:resource="&h2iosc;luogo"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#ente_hosts_attivita -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;ente_hosts_attivita">
+        <rdfs:label>hosts</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;attivita"/>
+        <rdfs:domain rdf:resource="&h2iosc;ente"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#attivita_takes_place_at_ente -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;attivita_takes_place_at_ente">
+        <rdfs:label>takes_place_at</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;ente_hosts_attivita"/>
+        <rdfs:range rdf:resource="&h2iosc;ente"/>
+        <rdfs:domain rdf:resource="&h2iosc;attivita"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#persona_participates_in_attivita -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;persona_participates_in_attivita">
+        <rdfs:label>participates_in</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;attivita"/>
+        <rdfs:domain rdf:resource="&h2iosc;persona"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#attivita_sees_participation_of_persona -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;attivita_sees_participation_of_persona">
+        <rdfs:label>sees_participation_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;persona_participates_in_attivita"/>
+        <rdfs:range rdf:resource="&h2iosc;persona"/>
+        <rdfs:domain rdf:resource="&h2iosc;attivita"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#manoscritto_is_identified_by_segnatura -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;manoscritto_is_identified_by_segnatura">
+        <rdfs:label>is_identified_by</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;segnatura"/>
+        <rdfs:domain rdf:resource="&h2iosc;manoscritto"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#segnatura_identifies_manoscritto -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;segnatura_identifies_manoscritto">
+        <rdfs:label>identifies</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;manoscritto_is_identified_by_segnatura"/>
+        <rdfs:range rdf:resource="&h2iosc;manoscritto"/>
+        <rdfs:domain rdf:resource="&h2iosc;segnatura"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#persona_is_witness_of_evento -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;persona_is_witness_of_evento">
+        <rdfs:label>is_witness_of</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;evento"/>
+        <rdfs:domain rdf:resource="&h2iosc;persona"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#evento_has_witness_persona -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;evento_has_witness_persona">
+        <rdfs:label>has_witness</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;persona_is_witness_of_evento"/>
+        <rdfs:range rdf:resource="&h2iosc;persona"/>
+        <rdfs:domain rdf:resource="&h2iosc;evento"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#segnatura_has_prefix_fondo -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;segnatura_has_prefix_fondo">
+        <rdfs:label>has_prefix</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;fondo"/>
+        <rdfs:domain rdf:resource="&h2iosc;segnatura"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#fondo_has_segnatura -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;fondo_has_segnatura">
+        <rdfs:label>has</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;segnatura_has_prefix_fondo"/>
+        <rdfs:range rdf:resource="&h2iosc;segnatura"/>
+        <rdfs:domain rdf:resource="&h2iosc;fondo"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#fondo_is_part_of_ente -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;fondo_is_part_of_ente">
+        <rdfs:label>is_part_of</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;ente"/>
+        <rdfs:domain rdf:resource="&h2iosc;fondo"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#ente_has_fondo -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;ente_has_fondo">
+        <rdfs:label>has</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;fondo_is_part_of_ente"/>
+        <rdfs:range rdf:resource="&h2iosc;fondo"/>
+        <rdfs:domain rdf:resource="&h2iosc;ente"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#manoscritto_is_kept_at_ente -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;manoscritto_is_kept_at_ente">
+        <rdfs:label>is_kept_at</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;ente"/>
+        <rdfs:domain rdf:resource="&h2iosc;manoscritto"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#ente_holds_manoscritto -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;ente_holds_manoscritto">
+        <rdfs:label>holds</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;manoscritto_is_kept_at_ente"/>
+        <rdfs:range rdf:resource="&h2iosc;manoscritto"/>
+        <rdfs:domain rdf:resource="&h2iosc;ente"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#fascicolo_is_subclass_of_unita_codicologica -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;fascicolo_is_subclass_of_unita_codicologica">
+        <rdfs:label>is_subclass_of</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;unita_codicologica"/>
+        <rdfs:domain rdf:resource="&h2iosc;fascicolo"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#unita_codicologica_is_superclass_of_fascicolo -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;unita_codicologica_is_superclass_of_fascicolo">
+        <rdfs:label>is_superclass_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;fascicolo_is_subclass_of_unita_codicologica"/>
+        <rdfs:range rdf:resource="&h2iosc;fascicolo"/>
+        <rdfs:domain rdf:resource="&h2iosc;unita_codicologica"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#carta_is_subclass_of_foglio -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;carta_is_subclass_of_foglio">
+        <rdfs:label>is_subclass_of</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;foglio"/>
+        <rdfs:domain rdf:resource="&h2iosc;carta"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#foglio_is_superclass_of_carta -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;foglio_is_superclass_of_carta">
+        <rdfs:label>is_superclass_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;carta_is_subclass_of_foglio"/>
+        <rdfs:range rdf:resource="&h2iosc;carta"/>
+        <rdfs:domain rdf:resource="&h2iosc;foglio"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#miniatura_is_subclass_of_illustrazione -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;miniatura_is_subclass_of_illustrazione">
+        <rdfs:label>is_subclass_of</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;illustrazione"/>
+        <rdfs:domain rdf:resource="&h2iosc;miniatura"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#illustrazione_is_superclass_of_miniatura -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;illustrazione_is_superclass_of_miniatura">
+        <rdfs:label>is_superclass_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;miniatura_is_subclass_of_illustrazione"/>
+        <rdfs:range rdf:resource="&h2iosc;miniatura"/>
+        <rdfs:domain rdf:resource="&h2iosc;illustrazione"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#decorazione_is_subclass_of_illustrazione -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;decorazione_is_subclass_of_illustrazione">
+        <rdfs:label>is_subclass_of</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;illustrazione"/>
+        <rdfs:domain rdf:resource="&h2iosc;decorazione"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#illustrazione_is_superclass_of_decorazione -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;illustrazione_is_superclass_of_decorazione">
+        <rdfs:label>is_superclass_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;decorazione_is_subclass_of_illustrazione"/>
+        <rdfs:range rdf:resource="&h2iosc;decorazione"/>
+        <rdfs:domain rdf:resource="&h2iosc;illustrazione"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#origine_is_subclass_of_evento -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;origine_is_subclass_of_evento">
+        <rdfs:label>is_subclass_of</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;evento"/>
+        <rdfs:domain rdf:resource="&h2iosc;origine"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#evento_is_superclass_of_origine -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;evento_is_superclass_of_origine">
+        <rdfs:label>is_superclass_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;origine_is_subclass_of_evento"/>
+        <rdfs:range rdf:resource="&h2iosc;origine"/>
+        <rdfs:domain rdf:resource="&h2iosc;evento"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#provenienza_is_subclass_of_evento -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;provenienza_is_subclass_of_evento">
+        <rdfs:label>is_subclass_of</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;evento"/>
+        <rdfs:domain rdf:resource="&h2iosc;provenienza"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#evento_is_superclass_of_provenienza -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;evento_is_superclass_of_provenienza">
+        <rdfs:label>is_superclass_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;provenienza_is_subclass_of_evento"/>
+        <rdfs:range rdf:resource="&h2iosc;provenienza"/>
+        <rdfs:domain rdf:resource="&h2iosc;evento"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#attivita_is_subclass_of_evento -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;attivita_is_subclass_of_evento">
+        <rdfs:label>is_subclass_of</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;evento"/>
+        <rdfs:domain rdf:resource="&h2iosc;attivita"/>
+    </owl:ObjectProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#evento_is_superclass_of_attivita -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;evento_is_superclass_of_attivita">
+        <rdfs:label>is_superclass_of</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;attivita_is_subclass_of_evento"/>
+        <rdfs:range rdf:resource="&h2iosc;attivita"/>
+        <rdfs:domain rdf:resource="&h2iosc;evento"/>
+    </owl:ObjectProperty>
+    
+
+    <!-- 
+    ///////////////////////////////////////////////////////////////////////////////////////
+    //
+    // Data properties
+    //
+    ///////////////////////////////////////////////////////////////////////////////////////
+     -->
+    
+    <!-- http://www.h2iosc.it/onto#nome_vulgato -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;nome_vulgato">
+        <rdfs:label>Nome vulgato</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;manoscritto"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#consistenza -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;consistenza">
+        <rdfs:label>Consistenza</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;unita_codicologica"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#legatura -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;legatura">
+        <rdfs:label>Legatura</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;unita_codicologica"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#fascicolazione -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;fascicolazione">
+        <rdfs:label>Fascicolazione</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;unita_codicologica"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#stato_di_conservazione -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;stato_di_conservazione">
+        <rdfs:label>Stato di conservazione</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;supporto"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#materiale -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;materiale">
+        <rdfs:label>Materiale</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;supporto"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#numerazione_bifoglio -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;numerazione_bifoglio">
+        <rdfs:label>Numerazione bifoglio</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;bifoglio"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#numerazione_foglio -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;numerazione_foglio">
+        <rdfs:label>Numerazione foglio</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;foglio"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#numerazione_pagina -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;numerazione_pagina">
+        <rdfs:label>Numerazione pagina</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;pagina"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#larghezza -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;larghezza">
+        <rdfs:label>Larghezza</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;dimensioni"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#lunghezza -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;lunghezza">
+        <rdfs:label>Lunghezza</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;dimensioni"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#unita_di_misura -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;unita_di_misura">
+        <rdfs:label>Unità di misura</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;dimensioni"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#data_mano -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;data_mano">
+        <rdfs:label>Data mano</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;mano"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#collocazione_nel_manoscritto_mano -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;collocazione_nel_manoscritto_mano">
+        <rdfs:label>Collocazione nel manoscritto mano</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;mano"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#tipo_di_scrittura_mano -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;tipo_di_scrittura_mano">
+        <rdfs:label>Tipo di scrittura mano</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;mano"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#descrizione_pagina -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;descrizione_pagina">
+        <rdfs:label>Descrizione pagina</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;organizzazione_della_pagina"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#tipo_di_scrittura_pagina -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;tipo_di_scrittura_pagina">
+        <rdfs:label>Tipo di scrittura pagina</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;organizzazione_della_pagina"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#descrizione_evento -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;descrizione_evento">
+        <rdfs:label>Descrizione evento</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;evento"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#descrizione_luogo -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;descrizione_luogo">
+        <rdfs:label>Descrizione luogo</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;luogo"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#coordinate -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;coordinate">
+        <rdfs:label>Coordinate</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;luogo"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#estensione -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;estensione">
+        <rdfs:label>Estensione</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;luogo"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#inizio -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;inizio">
+        <rdfs:label>Inizio</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;periodo"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#fine -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;fine">
+        <rdfs:label>Fine</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;periodo"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#nome -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;nome">
+        <rdfs:label>Nome</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;persona"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#ruolo -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;ruolo">
+        <rdfs:label>Ruolo</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;persona"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#sesso -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;sesso">
+        <rdfs:label>Sesso</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;persona"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#nascita -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;nascita">
+        <rdfs:label>Nascita</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;persona"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#morte -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;morte">
+        <rdfs:label>Morte</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;persona"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#descrizione -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;descrizione">
+        <rdfs:label>Descrizione</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;ente"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#vide -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;vide">
+        <rdfs:label>Vide</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;ente"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#titolo -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;titolo">
+        <rdfs:label>Titolo</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;testo"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#descrizione_aggiunta -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;descrizione_aggiunta">
+        <rdfs:label>Descrizione aggiunta</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;aggiunta"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#descrizione_marginalia -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;descrizione_marginalia">
+        <rdfs:label>Descrizione marginalia</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;marginalia"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#annotazione -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;annotazione">
+        <rdfs:label>Annotazione</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;marginalia"/>
+    </owl:DatatypeProperty>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#segnatura_numerica -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;segnatura_numerica">
+        <rdfs:label>Segnatura numerica</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;segnatura"/>
+    </owl:DatatypeProperty>
+
+    <!-- 
+    ///////////////////////////////////////////////////////////////////////////////////////
+    //
+    // Classes
+    //
+    ///////////////////////////////////////////////////////////////////////////////////////
+     -->
+
+
+    <!-- http://www.h2iosc.it/onto#manoscritto -->
+
+    <owl:Class rdf:about="&h2iosc;manoscritto">
+        <rdfs:label>Manoscritto</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#unita_codicologica -->
+
+    <owl:Class rdf:about="&h2iosc;unita_codicologica">
+        <rdfs:label>Unità codicologica</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#supporto -->
+
+    <owl:Class rdf:about="&h2iosc;supporto">
+        <rdfs:label>Supporto</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#fascicolo -->
+
+    <owl:Class rdf:about="&h2iosc;fascicolo">
+        <rdfs:label>Fascicolo</rdfs:label>
+        <rdfs:subClassOf>unita_codicologica</rdfs:subClassOf>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#bifoglio -->
+
+    <owl:Class rdf:about="&h2iosc;bifoglio">
+        <rdfs:label>Bifoglio</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#foglio -->
+
+    <owl:Class rdf:about="&h2iosc;foglio">
+        <rdfs:label>Foglio</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#carta -->
+
+    <owl:Class rdf:about="&h2iosc;carta">
+        <rdfs:label>Carta</rdfs:label>
+        <rdfs:subClassOf>foglio</rdfs:subClassOf>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#pagina -->
+
+    <owl:Class rdf:about="&h2iosc;pagina">
+        <rdfs:label>Pagina</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#illustrazione -->
+
+    <owl:Class rdf:about="&h2iosc;illustrazione">
+        <rdfs:label>Illustrazione</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#miniatura -->
+
+    <owl:Class rdf:about="&h2iosc;miniatura">
+        <rdfs:label>Miniatura</rdfs:label>
+        <rdfs:subClassOf>illustrazione</rdfs:subClassOf>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#decorazione -->
+
+    <owl:Class rdf:about="&h2iosc;decorazione">
+        <rdfs:label>Decorazione</rdfs:label>
+        <rdfs:subClassOf>illustrazione</rdfs:subClassOf>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#dimensioni -->
+
+    <owl:Class rdf:about="&h2iosc;dimensioni">
+        <rdfs:label>Dimensioni</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#mano -->
+
+    <owl:Class rdf:about="&h2iosc;mano">
+        <rdfs:label>Mano</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#organizzazione_della_pagina -->
+
+    <owl:Class rdf:about="&h2iosc;organizzazione_della_pagina">
+        <rdfs:label>Organizzazione della pagina</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#evento -->
+
+    <owl:Class rdf:about="&h2iosc;evento">
+        <rdfs:label>Evento</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#luogo -->
+
+    <owl:Class rdf:about="&h2iosc;luogo">
+        <rdfs:label>Luogo</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#periodo -->
+
+    <owl:Class rdf:about="&h2iosc;periodo">
+        <rdfs:label>Periodo</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#origine -->
+
+    <owl:Class rdf:about="&h2iosc;origine">
+        <rdfs:label>Origine</rdfs:label>
+        <rdfs:subClassOf>evento</rdfs:subClassOf>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#provenienza -->
+
+    <owl:Class rdf:about="&h2iosc;provenienza">
+        <rdfs:label>Provenienza</rdfs:label>
+        <rdfs:subClassOf>evento</rdfs:subClassOf>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#persona -->
+
+    <owl:Class rdf:about="&h2iosc;persona">
+        <rdfs:label>Persona</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#attivita -->
+
+    <owl:Class rdf:about="&h2iosc;attivita">
+        <rdfs:label>Attività</rdfs:label>
+        <rdfs:subClassOf>evento</rdfs:subClassOf>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#ente -->
+
+    <owl:Class rdf:about="&h2iosc;ente">
+        <rdfs:label>Ente</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#testo -->
+
+    <owl:Class rdf:about="&h2iosc;testo">
+        <rdfs:label>Testo</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#aggiunta -->
+
+    <owl:Class rdf:about="&h2iosc;aggiunta">
+        <rdfs:label>Aggiunta</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#marginalia -->
+
+    <owl:Class rdf:about="&h2iosc;marginalia">
+        <rdfs:label>Marginalia</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#fondo -->
+
+    <owl:Class rdf:about="&h2iosc;fondo">
+        <rdfs:label>Fondo</rdfs:label>
+    </owl:Class>
+
+
+
+
+    <!-- http://www.h2iosc.it/onto#segnatura -->
+
+    <owl:Class rdf:about="&h2iosc;segnatura">
+        <rdfs:label>Segnatura</rdfs:label>
+    </owl:Class>
+    
+</rdf:RDF>
+

+ 836 - 0
data/man_draft.ttl

@@ -0,0 +1,836 @@
+#################################################################
+###  Generated with the experimental alpha version of the TTL exporter of WebVOWL (version 1.1.7)  http://visualdataweb.de/webvowl/   ###
+#################################################################
+
+@prefix : 		<http://www.h2iosc.it/onto#> .
+@prefix rdf: 		<http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rdfs: 		<http://www.w3.org/2000/01/rdf-schema#> .
+@prefix owl: 		<http://www.w3.org/2002/07/owl#> .
+@prefix xsd: 		<http://www.w3.org/2001/XMLSchema#> .
+@prefix dc: 		<http://purl.org/dc/elements/1.1/> .
+@prefix xml: 		<http://www.w3.org/XML/1998/namespace> .
+@prefix wot: 		<http://xmlns.com/wot/0.1/> .
+@prefix vs: 		<http://www.w3.org/2003/06/sw-vocab-status/ns#> .
+@prefix foaf: 		<http://xmlns.com/foaf/0.1/> .
+@prefix : 		<http://www.h2iosc.it/onto#> .
+@prefix h2iosc: 		<http://www.h2iosc.it/onto#> .
+@base 			<http://www.h2iosc.it/onto#> .
+
+<http://www.h2iosc.it/onto#> rdf:type owl:Ontology ;
+                             dc:title "undefined"@en;
+                             dc:description "undefined"@en . 
+#################################################################
+
+###  Property Definitions (Number of Property) 105 ###
+#  --------------------------- Property 0------------------------- 
+:marginalia_is_included_in_pagina rdf:type owl:ObjectProperty; 
+                                  owl:inverseOf :pagina_includes_marginalia ;
+                                  rdfs:label "marginalia_is_included_in_pagina"@IRI-based; 
+                                  rdfs:label "is_included_in"@en; 
+                                  rdfs:domain :marginalia;
+                                  rdfs:range :pagina . 
+#  --------------------------- Property 1------------------------- 
+:provenienza_is_subclass_of_evento rdf:type owl:ObjectProperty; 
+                                   owl:inverseOf :evento_is_superclass_of_provenienza ;
+                                   rdfs:label "provenienza_is_subclass_of_evento"@IRI-based; 
+                                   rdfs:label "is_subclass_of"@en; 
+                                   rdfs:domain :provenienza;
+                                   rdfs:range :evento . 
+#  --------------------------- Property 2------------------------- 
+:manoscritto_originated_in_origine rdf:type owl:ObjectProperty; 
+                                   owl:inverseOf :origine_is_origin_of_manoscritto ;
+                                   rdfs:label "manoscritto_originated_in_origine"@IRI-based; 
+                                   rdfs:label "originated_in"@en; 
+                                   rdfs:domain :manoscritto;
+                                   rdfs:range :origine . 
+#  --------------------------- Property 3------------------------- 
+:supporto_is_incorporated_in_manoscritto rdf:type owl:ObjectProperty; 
+                                         owl:inverseOf :manoscritto_consists_of_supporto ;
+                                         rdfs:label "supporto_is_incorporated_in_manoscritto"@IRI-based; 
+                                         rdfs:label "is_incorporated_in"@en; 
+                                         rdfs:domain :supporto;
+                                         rdfs:range :manoscritto . 
+#  --------------------------- Property 4------------------------- 
+:bifoglio_is_part_of_unita_codicologica rdf:type owl:ObjectProperty; 
+                                        owl:inverseOf :unita_codicologica_is_composed_by_bifoglio ;
+                                        rdfs:label "bifoglio_is_part_of_unita_codicologica"@IRI-based; 
+                                        rdfs:label "is_part_of"@en; 
+                                        rdfs:domain :bifoglio;
+                                        rdfs:range :unita_codicologica . 
+#  --------------------------- Property 5------------------------- 
+:evento_happens_in_luogo rdf:type owl:ObjectProperty; 
+                         owl:inverseOf :luogo_is_theater_of_evento ;
+                         rdfs:label "evento_happens_in_luogo"@IRI-based; 
+                         rdfs:label "happens_in"@en; 
+                         rdfs:domain :evento;
+                         rdfs:range :luogo . 
+#  --------------------------- Property 6------------------------- 
+:evento_is_superclass_of_attivita rdf:type owl:ObjectProperty; 
+                                  owl:inverseOf :attivita_is_subclass_of_evento ;
+                                  rdfs:label "evento_is_superclass_of_attivita"@IRI-based; 
+                                  rdfs:label "is_superclass_of"@en; 
+                                  rdfs:domain :evento;
+                                  rdfs:range :attivita . 
+#  --------------------------- Property 7------------------------- 
+:numerazione_pagina rdf:type owl:DatatypeProperty ;
+                    rdfs:label "numerazione_pagina"@IRI-based; 
+                    rdfs:label "Numerazione pagina"@en; 
+                    rdfs:domain :pagina;
+                    rdfs:range rdfs:Literal . 
+#  --------------------------- Property 8------------------------- 
+:descrizione_pagina rdf:type owl:DatatypeProperty ;
+                    rdfs:label "descrizione_pagina"@IRI-based; 
+                    rdfs:label "Descrizione pagina"@en; 
+                    rdfs:domain :organizzazione_della_pagina;
+                    rdfs:range rdfs:Literal . 
+#  --------------------------- Property 9------------------------- 
+:unita_di_misura rdf:type owl:DatatypeProperty ;
+                 rdfs:label "unita_di_misura"@IRI-based; 
+                 rdfs:label "Unità di misura"@en; 
+                 rdfs:domain :dimensioni;
+                 rdfs:range rdfs:Literal . 
+#  --------------------------- Property 10------------------------- 
+:sesso rdf:type owl:DatatypeProperty ;
+       rdfs:label "sesso"@IRI-based; 
+       rdfs:label "Sesso"@en; 
+       rdfs:domain :persona;
+       rdfs:range rdfs:Literal . 
+#  --------------------------- Property 11------------------------- 
+:pagina_includes_aggiunta rdf:type owl:ObjectProperty; 
+                          owl:inverseOf :aggiunta_is_included_in_pagina ;
+                          rdfs:label "pagina_includes_aggiunta"@IRI-based; 
+                          rdfs:label "includes"@en; 
+                          rdfs:domain :pagina;
+                          rdfs:range :aggiunta . 
+#  --------------------------- Property 12------------------------- 
+:evento_has_time_span_periodo rdf:type owl:ObjectProperty; 
+                              owl:inverseOf :periodo_is_time_span_of_evento ;
+                              rdfs:label "evento_has_time_span_periodo"@IRI-based; 
+                              rdfs:label "has_time_span"@en; 
+                              rdfs:domain :evento;
+                              rdfs:range :periodo . 
+#  --------------------------- Property 13------------------------- 
+:persona_is_active_in_periodo rdf:type owl:ObjectProperty; 
+                              owl:inverseOf :periodo_sees_activity_of_persona ;
+                              rdfs:label "persona_is_active_in_periodo"@IRI-based; 
+                              rdfs:label "is_active_in"@en; 
+                              rdfs:domain :persona;
+                              rdfs:range :periodo . 
+#  --------------------------- Property 14------------------------- 
+:persona_participates_in_attivita rdf:type owl:ObjectProperty; 
+                                  owl:inverseOf :attivita_sees_participation_of_persona ;
+                                  rdfs:label "persona_participates_in_attivita"@IRI-based; 
+                                  rdfs:label "participates_in"@en; 
+                                  rdfs:domain :persona;
+                                  rdfs:range :attivita . 
+#  --------------------------- Property 15------------------------- 
+:nome rdf:type owl:DatatypeProperty ;
+      rdfs:label "nome"@IRI-based; 
+      rdfs:label "Nome"@en; 
+      rdfs:domain :persona;
+      rdfs:range rdfs:Literal . 
+#  --------------------------- Property 16------------------------- 
+:estensione rdf:type owl:DatatypeProperty ;
+            rdfs:label "estensione"@IRI-based; 
+            rdfs:label "Estensione"@en; 
+            rdfs:domain :luogo;
+            rdfs:range rdfs:Literal . 
+#  --------------------------- Property 17------------------------- 
+:manoscritto_is_identified_by_segnatura rdf:type owl:ObjectProperty; 
+                                        owl:inverseOf :segnatura_identifies_manoscritto ;
+                                        rdfs:label "manoscritto_is_identified_by_segnatura"@IRI-based; 
+                                        rdfs:label "is_identified_by"@en; 
+                                        rdfs:domain :manoscritto;
+                                        rdfs:range :segnatura . 
+#  --------------------------- Property 18------------------------- 
+:descrizione_evento rdf:type owl:DatatypeProperty ;
+                    rdfs:label "descrizione_evento"@IRI-based; 
+                    rdfs:label "Descrizione evento"@en; 
+                    rdfs:domain :evento;
+                    rdfs:range rdfs:Literal . 
+#  --------------------------- Property 19------------------------- 
+:dimensioni_describes_foglio rdf:type owl:ObjectProperty; 
+                             owl:inverseOf :foglio_is_described_by_dimensioni ;
+                             rdfs:label "dimensioni_describes_foglio"@IRI-based; 
+                             rdfs:label "describes"@en; 
+                             rdfs:domain :dimensioni;
+                             rdfs:range :foglio . 
+#  --------------------------- Property 20------------------------- 
+:ente_hosts_attivita rdf:type owl:ObjectProperty; 
+                     owl:inverseOf :attivita_takes_place_at_ente ;
+                     rdfs:label "ente_hosts_attivita"@IRI-based; 
+                     rdfs:label "hosts"@en; 
+                     rdfs:domain :ente;
+                     rdfs:range :attivita . 
+#  --------------------------- Property 21------------------------- 
+:descrizione_marginalia rdf:type owl:DatatypeProperty ;
+                        rdfs:label "descrizione_marginalia"@IRI-based; 
+                        rdfs:label "Descrizione marginalia"@en; 
+                        rdfs:domain :marginalia;
+                        rdfs:range rdfs:Literal . 
+#  --------------------------- Property 22------------------------- 
+:segnatura_identifies_manoscritto rdf:type owl:ObjectProperty; 
+                                  owl:inverseOf :manoscritto_is_identified_by_segnatura ;
+                                  rdfs:label "segnatura_identifies_manoscritto"@IRI-based; 
+                                  rdfs:label "identifies"@en; 
+                                  rdfs:domain :segnatura;
+                                  rdfs:range :manoscritto . 
+#  --------------------------- Property 23------------------------- 
+:numerazione_foglio rdf:type owl:DatatypeProperty ;
+                    rdfs:label "numerazione_foglio"@IRI-based; 
+                    rdfs:label "Numerazione foglio"@en; 
+                    rdfs:domain :foglio;
+                    rdfs:range rdfs:Literal . 
+#  --------------------------- Property 24------------------------- 
+:persona_is_author_of_testo rdf:type owl:ObjectProperty; 
+                            owl:inverseOf :testo_is_authored_by_persona ;
+                            rdfs:label "persona_is_author_of_testo"@IRI-based; 
+                            rdfs:label "is_author_of"@en; 
+                            rdfs:domain :persona;
+                            rdfs:range :testo . 
+#  --------------------------- Property 25------------------------- 
+:fascicolazione rdf:type owl:DatatypeProperty ;
+                rdfs:label "fascicolazione"@IRI-based; 
+                rdfs:label "Fascicolazione"@en; 
+                rdfs:domain :unita_codicologica;
+                rdfs:range rdfs:Literal . 
+#  --------------------------- Property 26------------------------- 
+:bifoglio_is_composed_by_foglio rdf:type owl:ObjectProperty; 
+                                owl:inverseOf :foglio_is_part_of_bifoglio ;
+                                rdfs:label "bifoglio_is_composed_by_foglio"@IRI-based; 
+                                rdfs:label "is_composed_by"@en; 
+                                rdfs:domain :bifoglio;
+                                rdfs:range :foglio . 
+#  --------------------------- Property 27------------------------- 
+:inizio rdf:type owl:DatatypeProperty ;
+        rdfs:label "inizio"@IRI-based; 
+        rdfs:label "Inizio"@en; 
+        rdfs:domain :periodo;
+        rdfs:range rdfs:Literal . 
+#  --------------------------- Property 28------------------------- 
+:unita_codicologica_is_part_of_manoscritto rdf:type owl:ObjectProperty; 
+                                           owl:inverseOf :manoscritto_is_composed_by_unita_codicologica ;
+                                           rdfs:label "unita_codicologica_is_part_of_manoscritto"@IRI-based; 
+                                           rdfs:label "is_part_of"@en; 
+                                           rdfs:domain :unita_codicologica;
+                                           rdfs:range :manoscritto . 
+#  --------------------------- Property 29------------------------- 
+:ente_has_fondo rdf:type owl:ObjectProperty; 
+                owl:inverseOf :fondo_is_part_of_ente ;
+                rdfs:label "ente_has_fondo"@IRI-based; 
+                rdfs:label "has"@en; 
+                rdfs:domain :ente;
+                rdfs:range :fondo . 
+#  --------------------------- Property 30------------------------- 
+:pagina_is_described_by_organizzazione_della_pagina rdf:type owl:ObjectProperty; 
+                                                    owl:inverseOf :organizzazione_della_pagina_describes_pagina ;
+                                                    rdfs:label "pagina_is_described_by_organizzazione_della_pagina"@IRI-based; 
+                                                    rdfs:label "is_described_by"@en; 
+                                                    rdfs:domain :pagina;
+                                                    rdfs:range :organizzazione_della_pagina . 
+#  --------------------------- Property 31------------------------- 
+:unita_codicologica_is_superclass_of_fascicolo rdf:type owl:ObjectProperty; 
+                                               owl:inverseOf :fascicolo_is_subclass_of_unita_codicologica ;
+                                               rdfs:label "unita_codicologica_is_superclass_of_fascicolo"@IRI-based; 
+                                               rdfs:label "is_superclass_of"@en; 
+                                               rdfs:domain :unita_codicologica;
+                                               rdfs:range :fascicolo . 
+#  --------------------------- Property 32------------------------- 
+:mano_writes_pagina rdf:type owl:ObjectProperty; 
+                    owl:inverseOf :pagina_is_written_by_mano ;
+                    rdfs:label "mano_writes_pagina"@IRI-based; 
+                    rdfs:label "writes"@en; 
+                    rdfs:domain :mano;
+                    rdfs:range :pagina . 
+#  --------------------------- Property 33------------------------- 
+:carta_is_subclass_of_foglio rdf:type owl:ObjectProperty; 
+                             owl:inverseOf :foglio_is_superclass_of_carta ;
+                             rdfs:label "carta_is_subclass_of_foglio"@IRI-based; 
+                             rdfs:label "is_subclass_of"@en; 
+                             rdfs:domain :carta;
+                             rdfs:range :foglio . 
+#  --------------------------- Property 34------------------------- 
+<http://www.h2iosc.it/onto#illustrazione_represents_#any> rdf:type owl:ObjectProperty; 
+                                                          owl:inverseOf <http://www.h2iosc.it/onto##any_is_represented_in_illustrazione> ;
+                                                          rdfs:label "illustrazione_represents_#any"@IRI-based; 
+                                                          rdfs:label "represents"@en; 
+                                                          rdfs:domain :illustrazione;
+                                                          rdfs:range <http://www.h2iosc.it/onto##any> . 
+#  --------------------------- Property 35------------------------- 
+:origine_is_origin_of_manoscritto rdf:type owl:ObjectProperty; 
+                                  owl:inverseOf :manoscritto_originated_in_origine ;
+                                  rdfs:label "origine_is_origin_of_manoscritto"@IRI-based; 
+                                  rdfs:label "is_origin_of"@en; 
+                                  rdfs:domain :origine;
+                                  rdfs:range :manoscritto . 
+#  --------------------------- Property 36------------------------- 
+:ente_holds_manoscritto rdf:type owl:ObjectProperty; 
+                        owl:inverseOf :manoscritto_is_kept_at_ente ;
+                        rdfs:label "ente_holds_manoscritto"@IRI-based; 
+                        rdfs:label "holds"@en; 
+                        rdfs:domain :ente;
+                        rdfs:range :manoscritto . 
+#  --------------------------- Property 37------------------------- 
+:evento_is_superclass_of_provenienza rdf:type owl:ObjectProperty; 
+                                     owl:inverseOf :provenienza_is_subclass_of_evento ;
+                                     rdfs:label "evento_is_superclass_of_provenienza"@IRI-based; 
+                                     rdfs:label "is_superclass_of"@en; 
+                                     rdfs:domain :evento;
+                                     rdfs:range :provenienza . 
+#  --------------------------- Property 38------------------------- 
+:pagina_contains_illustrazione rdf:type owl:ObjectProperty; 
+                               owl:inverseOf :illustrazione_is_contained_in_pagina ;
+                               rdfs:label "pagina_contains_illustrazione"@IRI-based; 
+                               rdfs:label "contains"@en; 
+                               rdfs:domain :pagina;
+                               rdfs:range :illustrazione . 
+#  --------------------------- Property 39------------------------- 
+:fondo_is_part_of_ente rdf:type owl:ObjectProperty; 
+                       owl:inverseOf :ente_has_fondo ;
+                       rdfs:label "fondo_is_part_of_ente"@IRI-based; 
+                       rdfs:label "is_part_of"@en; 
+                       rdfs:domain :fondo;
+                       rdfs:range :ente . 
+#  --------------------------- Property 40------------------------- 
+:segnatura_has_prefix_fondo rdf:type owl:ObjectProperty; 
+                            owl:inverseOf :fondo_has_segnatura ;
+                            rdfs:label "segnatura_has_prefix_fondo"@IRI-based; 
+                            rdfs:label "has_prefix"@en; 
+                            rdfs:domain :segnatura;
+                            rdfs:range :fondo . 
+#  --------------------------- Property 41------------------------- 
+:segnatura_numerica rdf:type owl:DatatypeProperty ;
+                    rdfs:label "segnatura_numerica"@IRI-based; 
+                    rdfs:label "Segnatura numerica"@en; 
+                    rdfs:domain :segnatura;
+                    rdfs:range rdfs:Literal . 
+#  --------------------------- Property 42------------------------- 
+:pagina_is_written_by_mano rdf:type owl:ObjectProperty; 
+                           owl:inverseOf :mano_writes_pagina ;
+                           rdfs:label "pagina_is_written_by_mano"@IRI-based; 
+                           rdfs:label "is_written_by"@en; 
+                           rdfs:domain :pagina;
+                           rdfs:range :mano . 
+#  --------------------------- Property 43------------------------- 
+:tipo_di_scrittura_pagina rdf:type owl:DatatypeProperty ;
+                          rdfs:label "tipo_di_scrittura_pagina"@IRI-based; 
+                          rdfs:label "Tipo di scrittura pagina"@en; 
+                          rdfs:domain :organizzazione_della_pagina;
+                          rdfs:range rdfs:Literal . 
+#  --------------------------- Property 44------------------------- 
+:unita_codicologica_is_composed_by_foglio rdf:type owl:ObjectProperty; 
+                                          owl:inverseOf :foglio_is_part_of_unita_codicologica ;
+                                          rdfs:label "unita_codicologica_is_composed_by_foglio"@IRI-based; 
+                                          rdfs:label "is_composed_by"@en; 
+                                          rdfs:domain :unita_codicologica;
+                                          rdfs:range :foglio . 
+#  --------------------------- Property 45------------------------- 
+:annotazione rdf:type owl:DatatypeProperty ;
+             rdfs:label "annotazione"@IRI-based; 
+             rdfs:label "Annotazione"@en; 
+             rdfs:domain :marginalia;
+             rdfs:range rdfs:Literal . 
+#  --------------------------- Property 46------------------------- 
+:luogo_has_ente rdf:type owl:ObjectProperty; 
+                owl:inverseOf :ente_is_placed_in_luogo ;
+                rdfs:label "luogo_has_ente"@IRI-based; 
+                rdfs:label "has"@en; 
+                rdfs:domain :luogo;
+                rdfs:range :ente . 
+#  --------------------------- Property 47------------------------- 
+:legatura rdf:type owl:DatatypeProperty ;
+          rdfs:label "legatura"@IRI-based; 
+          rdfs:label "Legatura"@en; 
+          rdfs:domain :unita_codicologica;
+          rdfs:range rdfs:Literal . 
+#  --------------------------- Property 48------------------------- 
+:titolo rdf:type owl:DatatypeProperty ;
+        rdfs:label "titolo"@IRI-based; 
+        rdfs:label "Titolo"@en; 
+        rdfs:domain :testo;
+        rdfs:range rdfs:Literal . 
+#  --------------------------- Property 49------------------------- 
+:pagina_is_part_of_foglio rdf:type owl:ObjectProperty; 
+                          owl:inverseOf :foglio_is_composed_by_pagina ;
+                          rdfs:label "pagina_is_part_of_foglio"@IRI-based; 
+                          rdfs:label "is_part_of"@en; 
+                          rdfs:domain :pagina;
+                          rdfs:range :foglio . 
+#  --------------------------- Property 50------------------------- 
+:illustrazione_is_superclass_of_decorazione rdf:type owl:ObjectProperty; 
+                                            owl:inverseOf :decorazione_is_subclass_of_illustrazione ;
+                                            rdfs:label "illustrazione_is_superclass_of_decorazione"@IRI-based; 
+                                            rdfs:label "is_superclass_of"@en; 
+                                            rdfs:domain :illustrazione;
+                                            rdfs:range :decorazione . 
+#  --------------------------- Property 51------------------------- 
+:data_mano rdf:type owl:DatatypeProperty ;
+           rdfs:label "data_mano"@IRI-based; 
+           rdfs:label "Data mano"@en; 
+           rdfs:domain :mano;
+           rdfs:range rdfs:Literal . 
+#  --------------------------- Property 52------------------------- 
+:fine rdf:type owl:DatatypeProperty ;
+      rdfs:label "fine"@IRI-based; 
+      rdfs:label "Fine"@en; 
+      rdfs:domain :periodo;
+      rdfs:range rdfs:Literal . 
+#  --------------------------- Property 53------------------------- 
+:organizzazione_della_pagina_describes_pagina rdf:type owl:ObjectProperty; 
+                                              owl:inverseOf :pagina_is_described_by_organizzazione_della_pagina ;
+                                              rdfs:label "organizzazione_della_pagina_describes_pagina"@IRI-based; 
+                                              rdfs:label "describes"@en; 
+                                              rdfs:domain :organizzazione_della_pagina;
+                                              rdfs:range :pagina . 
+#  --------------------------- Property 54------------------------- 
+:manoscritto_consists_of_supporto rdf:type owl:ObjectProperty; 
+                                  owl:inverseOf :supporto_is_incorporated_in_manoscritto ;
+                                  rdfs:label "manoscritto_consists_of_supporto"@IRI-based; 
+                                  rdfs:label "consists_of"@en; 
+                                  rdfs:domain :manoscritto;
+                                  rdfs:range :supporto . 
+#  --------------------------- Property 55------------------------- 
+:materiale rdf:type owl:DatatypeProperty ;
+           rdfs:label "materiale"@IRI-based; 
+           rdfs:label "Materiale"@en; 
+           rdfs:domain :supporto;
+           rdfs:range rdfs:Literal . 
+#  --------------------------- Property 56------------------------- 
+<http://www.h2iosc.it/onto##any_is_represented_in_illustrazione> rdf:type owl:ObjectProperty; 
+                                                                 owl:inverseOf <http://www.h2iosc.it/onto#illustrazione_represents_#any> ;
+                                                                 rdfs:label "#any_is_represented_in_illustrazione"@IRI-based; 
+                                                                 rdfs:label "is_represented_in"@en; 
+                                                                 rdfs:domain <http://www.h2iosc.it/onto##any>;
+                                                                 rdfs:range :illustrazione . 
+#  --------------------------- Property 57------------------------- 
+:manoscritto_is_composed_by_unita_codicologica rdf:type owl:ObjectProperty; 
+                                               owl:inverseOf :unita_codicologica_is_part_of_manoscritto ;
+                                               rdfs:label "manoscritto_is_composed_by_unita_codicologica"@IRI-based; 
+                                               rdfs:label "is_composed_by"@en; 
+                                               rdfs:domain :manoscritto;
+                                               rdfs:range :unita_codicologica . 
+#  --------------------------- Property 58------------------------- 
+:descrizione rdf:type owl:DatatypeProperty ;
+             rdfs:label "descrizione"@IRI-based; 
+             rdfs:label "Descrizione"@en; 
+             rdfs:domain :ente;
+             rdfs:range rdfs:Literal . 
+#  --------------------------- Property 59------------------------- 
+:ruolo rdf:type owl:DatatypeProperty ;
+       rdfs:label "ruolo"@IRI-based; 
+       rdfs:label "Ruolo"@en; 
+       rdfs:domain :persona;
+       rdfs:range rdfs:Literal . 
+#  --------------------------- Property 60------------------------- 
+:persona_is_witness_of_evento rdf:type owl:ObjectProperty; 
+                              owl:inverseOf :evento_has_witness_persona ;
+                              rdfs:label "persona_is_witness_of_evento"@IRI-based; 
+                              rdfs:label "is_witness_of"@en; 
+                              rdfs:domain :persona;
+                              rdfs:range :evento . 
+#  --------------------------- Property 61------------------------- 
+:foglio_is_composed_by_pagina rdf:type owl:ObjectProperty; 
+                              owl:inverseOf :pagina_is_part_of_foglio ;
+                              rdfs:label "foglio_is_composed_by_pagina"@IRI-based; 
+                              rdfs:label "is_composed_by"@en; 
+                              rdfs:domain :foglio;
+                              rdfs:range :pagina . 
+#  --------------------------- Property 62------------------------- 
+:attivita_is_subclass_of_evento rdf:type owl:ObjectProperty; 
+                                owl:inverseOf :evento_is_superclass_of_attivita ;
+                                rdfs:label "attivita_is_subclass_of_evento"@IRI-based; 
+                                rdfs:label "is_subclass_of"@en; 
+                                rdfs:domain :attivita;
+                                rdfs:range :evento . 
+#  --------------------------- Property 63------------------------- 
+:illustrazione_is_superclass_of_miniatura rdf:type owl:ObjectProperty; 
+                                          owl:inverseOf :miniatura_is_subclass_of_illustrazione ;
+                                          rdfs:label "illustrazione_is_superclass_of_miniatura"@IRI-based; 
+                                          rdfs:label "is_superclass_of"@en; 
+                                          rdfs:domain :illustrazione;
+                                          rdfs:range :miniatura . 
+#  --------------------------- Property 64------------------------- 
+:nome_vulgato rdf:type owl:DatatypeProperty ;
+              rdfs:label "nome_vulgato"@IRI-based; 
+              rdfs:label "Nome vulgato"@en; 
+              rdfs:domain :manoscritto;
+              rdfs:range rdfs:Literal . 
+#  --------------------------- Property 65------------------------- 
+:ente_is_placed_in_luogo rdf:type owl:ObjectProperty; 
+                         owl:inverseOf :luogo_has_ente ;
+                         rdfs:label "ente_is_placed_in_luogo"@IRI-based; 
+                         rdfs:label "is_placed_in"@en; 
+                         rdfs:domain :ente;
+                         rdfs:range :luogo . 
+#  --------------------------- Property 66------------------------- 
+:unita_codicologica_is_composed_by_bifoglio rdf:type owl:ObjectProperty; 
+                                            owl:inverseOf :bifoglio_is_part_of_unita_codicologica ;
+                                            rdfs:label "unita_codicologica_is_composed_by_bifoglio"@IRI-based; 
+                                            rdfs:label "is_composed_by"@en; 
+                                            rdfs:domain :unita_codicologica;
+                                            rdfs:range :bifoglio . 
+#  --------------------------- Property 67------------------------- 
+:larghezza rdf:type owl:DatatypeProperty ;
+           rdfs:label "larghezza"@IRI-based; 
+           rdfs:label "Larghezza"@en; 
+           rdfs:domain :dimensioni;
+           rdfs:range rdfs:Literal . 
+#  --------------------------- Property 68------------------------- 
+:aggiunta_is_included_in_pagina rdf:type owl:ObjectProperty; 
+                                owl:inverseOf :pagina_includes_aggiunta ;
+                                rdfs:label "aggiunta_is_included_in_pagina"@IRI-based; 
+                                rdfs:label "is_included_in"@en; 
+                                rdfs:domain :aggiunta;
+                                rdfs:range :pagina . 
+#  --------------------------- Property 69------------------------- 
+:evento_is_superclass_of_origine rdf:type owl:ObjectProperty; 
+                                 owl:inverseOf :origine_is_subclass_of_evento ;
+                                 rdfs:label "evento_is_superclass_of_origine"@IRI-based; 
+                                 rdfs:label "is_superclass_of"@en; 
+                                 rdfs:domain :evento;
+                                 rdfs:range :origine . 
+#  --------------------------- Property 70------------------------- 
+:tipo_di_scrittura_mano rdf:type owl:DatatypeProperty ;
+                        rdfs:label "tipo_di_scrittura_mano"@IRI-based; 
+                        rdfs:label "Tipo di scrittura mano"@en; 
+                        rdfs:domain :mano;
+                        rdfs:range rdfs:Literal . 
+#  --------------------------- Property 71------------------------- 
+:nascita rdf:type owl:DatatypeProperty ;
+         rdfs:label "nascita"@IRI-based; 
+         rdfs:label "Nascita"@en; 
+         rdfs:domain :persona;
+         rdfs:range rdfs:Literal . 
+#  --------------------------- Property 72------------------------- 
+:coordinate rdf:type owl:DatatypeProperty ;
+            rdfs:label "coordinate"@IRI-based; 
+            rdfs:label "Coordinate"@en; 
+            rdfs:domain :luogo;
+            rdfs:range rdfs:Literal . 
+#  --------------------------- Property 73------------------------- 
+:testo_is_authored_by_persona rdf:type owl:ObjectProperty; 
+                              owl:inverseOf :persona_is_author_of_testo ;
+                              rdfs:label "testo_is_authored_by_persona"@IRI-based; 
+                              rdfs:label "is_authored_by"@en; 
+                              rdfs:domain :testo;
+                              rdfs:range :persona . 
+#  --------------------------- Property 74------------------------- 
+:pagina_includes_marginalia rdf:type owl:ObjectProperty; 
+                            owl:inverseOf :marginalia_is_included_in_pagina ;
+                            rdfs:label "pagina_includes_marginalia"@IRI-based; 
+                            rdfs:label "includes"@en; 
+                            rdfs:domain :pagina;
+                            rdfs:range :marginalia . 
+#  --------------------------- Property 75------------------------- 
+:consistenza rdf:type owl:DatatypeProperty ;
+             rdfs:label "consistenza"@IRI-based; 
+             rdfs:label "Consistenza"@en; 
+             rdfs:domain :unita_codicologica;
+             rdfs:range rdfs:Literal . 
+#  --------------------------- Property 76------------------------- 
+:attivita_sees_participation_of_persona rdf:type owl:ObjectProperty; 
+                                        owl:inverseOf :persona_participates_in_attivita ;
+                                        rdfs:label "attivita_sees_participation_of_persona"@IRI-based; 
+                                        rdfs:label "sees_participation_of"@en; 
+                                        rdfs:domain :attivita;
+                                        rdfs:range :persona . 
+#  --------------------------- Property 77------------------------- 
+:stato_di_conservazione rdf:type owl:DatatypeProperty ;
+                        rdfs:label "stato_di_conservazione"@IRI-based; 
+                        rdfs:label "Stato di conservazione"@en; 
+                        rdfs:domain :supporto;
+                        rdfs:range rdfs:Literal . 
+#  --------------------------- Property 78------------------------- 
+:foglio_is_superclass_of_carta rdf:type owl:ObjectProperty; 
+                               owl:inverseOf :carta_is_subclass_of_foglio ;
+                               rdfs:label "foglio_is_superclass_of_carta"@IRI-based; 
+                               rdfs:label "is_superclass_of"@en; 
+                               rdfs:domain :foglio;
+                               rdfs:range :carta . 
+#  --------------------------- Property 79------------------------- 
+:morte rdf:type owl:DatatypeProperty ;
+       rdfs:label "morte"@IRI-based; 
+       rdfs:label "Morte"@en; 
+       rdfs:domain :persona;
+       rdfs:range rdfs:Literal . 
+#  --------------------------- Property 80------------------------- 
+:periodo_is_time_span_of_evento rdf:type owl:ObjectProperty; 
+                                owl:inverseOf :evento_has_time_span_periodo ;
+                                rdfs:label "periodo_is_time_span_of_evento"@IRI-based; 
+                                rdfs:label "is_time_span_of"@en; 
+                                rdfs:domain :periodo;
+                                rdfs:range :evento . 
+#  --------------------------- Property 81------------------------- 
+:collocazione_nel_manoscritto_mano rdf:type owl:DatatypeProperty ;
+                                   rdfs:label "collocazione_nel_manoscritto_mano"@IRI-based; 
+                                   rdfs:label "Collocazione nel manoscritto mano"@en; 
+                                   rdfs:domain :mano;
+                                   rdfs:range rdfs:Literal . 
+#  --------------------------- Property 82------------------------- 
+:testo_is_transmitted_by_manoscritto rdf:type owl:ObjectProperty; 
+                                     owl:inverseOf :manoscritto_transmits_testo ;
+                                     rdfs:label "testo_is_transmitted_by_manoscritto"@IRI-based; 
+                                     rdfs:label "is_transmitted_by"@en; 
+                                     rdfs:domain :testo;
+                                     rdfs:range :manoscritto . 
+#  --------------------------- Property 83------------------------- 
+:provenienza_is_part_of_the_history_of_manoscritto rdf:type owl:ObjectProperty; 
+                                                   owl:inverseOf :manoscritto_has_been_in_provenienza ;
+                                                   rdfs:label "provenienza_is_part_of_the_history_of_manoscritto"@IRI-based; 
+                                                   rdfs:label "is_part_of_the_history_of"@en; 
+                                                   rdfs:domain :provenienza;
+                                                   rdfs:range :manoscritto . 
+#  --------------------------- Property 84------------------------- 
+:evento_has_witness_persona rdf:type owl:ObjectProperty; 
+                            owl:inverseOf :persona_is_witness_of_evento ;
+                            rdfs:label "evento_has_witness_persona"@IRI-based; 
+                            rdfs:label "has_witness"@en; 
+                            rdfs:domain :evento;
+                            rdfs:range :persona . 
+#  --------------------------- Property 85------------------------- 
+:descrizione_aggiunta rdf:type owl:DatatypeProperty ;
+                      rdfs:label "descrizione_aggiunta"@IRI-based; 
+                      rdfs:label "Descrizione aggiunta"@en; 
+                      rdfs:domain :aggiunta;
+                      rdfs:range rdfs:Literal . 
+#  --------------------------- Property 86------------------------- 
+:fondo_has_segnatura rdf:type owl:ObjectProperty; 
+                     owl:inverseOf :segnatura_has_prefix_fondo ;
+                     rdfs:label "fondo_has_segnatura"@IRI-based; 
+                     rdfs:label "has"@en; 
+                     rdfs:domain :fondo;
+                     rdfs:range :segnatura . 
+#  --------------------------- Property 87------------------------- 
+:foglio_is_part_of_unita_codicologica rdf:type owl:ObjectProperty; 
+                                      owl:inverseOf :unita_codicologica_is_composed_by_foglio ;
+                                      rdfs:label "foglio_is_part_of_unita_codicologica"@IRI-based; 
+                                      rdfs:label "is_part_of"@en; 
+                                      rdfs:domain :foglio;
+                                      rdfs:range :unita_codicologica . 
+#  --------------------------- Property 88------------------------- 
+:periodo_sees_activity_of_persona rdf:type owl:ObjectProperty; 
+                                  owl:inverseOf :persona_is_active_in_periodo ;
+                                  rdfs:label "periodo_sees_activity_of_persona"@IRI-based; 
+                                  rdfs:label "sees_activity_of"@en; 
+                                  rdfs:domain :periodo;
+                                  rdfs:range :persona . 
+#  --------------------------- Property 89------------------------- 
+:attivita_takes_place_at_ente rdf:type owl:ObjectProperty; 
+                              owl:inverseOf :ente_hosts_attivita ;
+                              rdfs:label "attivita_takes_place_at_ente"@IRI-based; 
+                              rdfs:label "takes_place_at"@en; 
+                              rdfs:domain :attivita;
+                              rdfs:range :ente . 
+#  --------------------------- Property 90------------------------- 
+:numerazione_bifoglio rdf:type owl:DatatypeProperty ;
+                      rdfs:label "numerazione_bifoglio"@IRI-based; 
+                      rdfs:label "Numerazione bifoglio"@en; 
+                      rdfs:domain :bifoglio;
+                      rdfs:range rdfs:Literal . 
+#  --------------------------- Property 91------------------------- 
+:illustrazione_is_contained_in_pagina rdf:type owl:ObjectProperty; 
+                                      owl:inverseOf :pagina_contains_illustrazione ;
+                                      rdfs:label "illustrazione_is_contained_in_pagina"@IRI-based; 
+                                      rdfs:label "is_contained_in"@en; 
+                                      rdfs:domain :illustrazione;
+                                      rdfs:range :pagina . 
+#  --------------------------- Property 92------------------------- 
+:decorazione_is_subclass_of_illustrazione rdf:type owl:ObjectProperty; 
+                                          owl:inverseOf :illustrazione_is_superclass_of_decorazione ;
+                                          rdfs:label "decorazione_is_subclass_of_illustrazione"@IRI-based; 
+                                          rdfs:label "is_subclass_of"@en; 
+                                          rdfs:domain :decorazione;
+                                          rdfs:range :illustrazione . 
+#  --------------------------- Property 93------------------------- 
+:miniatura_is_subclass_of_illustrazione rdf:type owl:ObjectProperty; 
+                                        owl:inverseOf :illustrazione_is_superclass_of_miniatura ;
+                                        rdfs:label "miniatura_is_subclass_of_illustrazione"@IRI-based; 
+                                        rdfs:label "is_subclass_of"@en; 
+                                        rdfs:domain :miniatura;
+                                        rdfs:range :illustrazione . 
+#  --------------------------- Property 94------------------------- 
+:foglio_is_part_of_bifoglio rdf:type owl:ObjectProperty; 
+                            owl:inverseOf :bifoglio_is_composed_by_foglio ;
+                            rdfs:label "foglio_is_part_of_bifoglio"@IRI-based; 
+                            rdfs:label "is_part_of"@en; 
+                            rdfs:domain :foglio;
+                            rdfs:range :bifoglio . 
+#  --------------------------- Property 95------------------------- 
+:manoscritto_is_kept_at_ente rdf:type owl:ObjectProperty; 
+                             owl:inverseOf :ente_holds_manoscritto ;
+                             rdfs:label "manoscritto_is_kept_at_ente"@IRI-based; 
+                             rdfs:label "is_kept_at"@en; 
+                             rdfs:domain :manoscritto;
+                             rdfs:range :ente . 
+#  --------------------------- Property 96------------------------- 
+:descrizione_luogo rdf:type owl:DatatypeProperty ;
+                   rdfs:label "descrizione_luogo"@IRI-based; 
+                   rdfs:label "Descrizione luogo"@en; 
+                   rdfs:domain :luogo;
+                   rdfs:range rdfs:Literal . 
+#  --------------------------- Property 97------------------------- 
+:manoscritto_transmits_testo rdf:type owl:ObjectProperty; 
+                             owl:inverseOf :testo_is_transmitted_by_manoscritto ;
+                             rdfs:label "manoscritto_transmits_testo"@IRI-based; 
+                             rdfs:label "transmits"@en; 
+                             rdfs:domain :manoscritto;
+                             rdfs:range :testo . 
+#  --------------------------- Property 98------------------------- 
+:manoscritto_has_been_in_provenienza rdf:type owl:ObjectProperty; 
+                                     owl:inverseOf :provenienza_is_part_of_the_history_of_manoscritto ;
+                                     rdfs:label "manoscritto_has_been_in_provenienza"@IRI-based; 
+                                     rdfs:label "has_been_in"@en; 
+                                     rdfs:domain :manoscritto;
+                                     rdfs:range :provenienza . 
+#  --------------------------- Property 99------------------------- 
+:foglio_is_described_by_dimensioni rdf:type owl:ObjectProperty; 
+                                   owl:inverseOf :dimensioni_describes_foglio ;
+                                   rdfs:label "foglio_is_described_by_dimensioni"@IRI-based; 
+                                   rdfs:label "is_described_by"@en; 
+                                   rdfs:domain :foglio;
+                                   rdfs:range :dimensioni . 
+#  --------------------------- Property 100------------------------- 
+:luogo_is_theater_of_evento rdf:type owl:ObjectProperty; 
+                            owl:inverseOf :evento_happens_in_luogo ;
+                            rdfs:label "luogo_is_theater_of_evento"@IRI-based; 
+                            rdfs:label "is_theater_of"@en; 
+                            rdfs:domain :luogo;
+                            rdfs:range :evento . 
+#  --------------------------- Property 101------------------------- 
+:vide rdf:type owl:DatatypeProperty ;
+      rdfs:label "vide"@IRI-based; 
+      rdfs:label "Vide"@en; 
+      rdfs:domain :ente;
+      rdfs:range rdfs:Literal . 
+#  --------------------------- Property 102------------------------- 
+:fascicolo_is_subclass_of_unita_codicologica rdf:type owl:ObjectProperty; 
+                                             owl:inverseOf :unita_codicologica_is_superclass_of_fascicolo ;
+                                             rdfs:label "fascicolo_is_subclass_of_unita_codicologica"@IRI-based; 
+                                             rdfs:label "is_subclass_of"@en; 
+                                             rdfs:domain :fascicolo;
+                                             rdfs:range :unita_codicologica . 
+#  --------------------------- Property 103------------------------- 
+:origine_is_subclass_of_evento rdf:type owl:ObjectProperty; 
+                               owl:inverseOf :evento_is_superclass_of_origine ;
+                               rdfs:label "origine_is_subclass_of_evento"@IRI-based; 
+                               rdfs:label "is_subclass_of"@en; 
+                               rdfs:domain :origine;
+                               rdfs:range :evento . 
+#  --------------------------- Property 104------------------------- 
+:lunghezza rdf:type owl:DatatypeProperty ;
+           rdfs:label "lunghezza"@IRI-based; 
+           rdfs:label "Lunghezza"@en; 
+           rdfs:domain :dimensioni;
+           rdfs:range rdfs:Literal . 
+###  Class Definitions (Number of Classes) 28 ###
+#  --------------------------- Class  0------------------------- 
+:evento rdf:type owl:Class; 
+        rdfs:label "evento"@IRI-based; 
+        rdfs:label "Evento"@en . 
+#  --------------------------- Class  1------------------------- 
+:unita_codicologica rdf:type owl:Class; 
+                    rdfs:label "unita_codicologica"@IRI-based; 
+                    rdfs:label "Unità codicologica"@en . 
+#  --------------------------- Class  2------------------------- 
+:dimensioni rdf:type owl:Class; 
+            rdfs:label "dimensioni"@IRI-based; 
+            rdfs:label "Dimensioni"@en . 
+#  --------------------------- Class  3------------------------- 
+:persona rdf:type owl:Class; 
+         rdfs:label "persona"@IRI-based; 
+         rdfs:label "Persona"@en . 
+#  --------------------------- Class  4------------------------- 
+:mano rdf:type owl:Class; 
+      rdfs:label "mano"@IRI-based; 
+      rdfs:label "Mano"@en . 
+#  --------------------------- Class  5------------------------- 
+:periodo rdf:type owl:Class; 
+         rdfs:label "periodo"@IRI-based; 
+         rdfs:label "Periodo"@en . 
+#  --------------------------- Class  6------------------------- 
+:fondo rdf:type owl:Class; 
+       rdfs:label "fondo"@IRI-based; 
+       rdfs:label "Fondo"@en . 
+#  --------------------------- Class  7------------------------- 
+:organizzazione_della_pagina rdf:type owl:Class; 
+                             rdfs:label "organizzazione_della_pagina"@IRI-based; 
+                             rdfs:label "Organizzazione della pagina"@en . 
+#  --------------------------- Class  8------------------------- 
+:ente rdf:type owl:Class; 
+      rdfs:label "ente"@IRI-based; 
+      rdfs:label "Ente"@en . 
+#  --------------------------- Class  9------------------------- 
+:pagina rdf:type owl:Class; 
+        rdfs:label "pagina"@IRI-based; 
+        rdfs:label "Pagina"@en . 
+#  --------------------------- Class  10------------------------- 
+:manoscritto rdf:type owl:Class; 
+             rdfs:label "manoscritto"@IRI-based; 
+             rdfs:label "Manoscritto"@en . 
+#  --------------------------- Class  11------------------------- 
+:decorazione rdf:type owl:Class; 
+             rdfs:label "decorazione"@IRI-based; 
+             rdfs:label "Decorazione"@en . 
+#  --------------------------- Class  12------------------------- 
+:bifoglio rdf:type owl:Class; 
+          rdfs:label "bifoglio"@IRI-based; 
+          rdfs:label "Bifoglio"@en . 
+#  --------------------------- Class  13------------------------- 
+:testo rdf:type owl:Class; 
+       rdfs:label "testo"@IRI-based; 
+       rdfs:label "Testo"@en . 
+#  --------------------------- Class  14------------------------- 
+:fascicolo rdf:type owl:Class; 
+           rdfs:label "fascicolo"@IRI-based; 
+           rdfs:label "Fascicolo"@en . 
+#  --------------------------- Class  15------------------------- 
+:aggiunta rdf:type owl:Class; 
+          rdfs:label "aggiunta"@IRI-based; 
+          rdfs:label "Aggiunta"@en . 
+#  --------------------------- Class  16------------------------- 
+:origine rdf:type owl:Class; 
+         rdfs:label "origine"@IRI-based; 
+         rdfs:label "Origine"@en . 
+#  --------------------------- Class  17------------------------- 
+<http://www.h2iosc.it/onto##any> rdf:type owl:Class; 
+                                 rdfs:label "#any"@IRI-based . 
+#  --------------------------- Class  18------------------------- 
+:foglio rdf:type owl:Class; 
+        rdfs:label "foglio"@IRI-based; 
+        rdfs:label "Foglio"@en . 
+#  --------------------------- Class  19------------------------- 
+:attivita rdf:type owl:Class; 
+          rdfs:label "attivita"@IRI-based; 
+          rdfs:label "Attività"@en . 
+#  --------------------------- Class  20------------------------- 
+:supporto rdf:type owl:Class; 
+          rdfs:label "supporto"@IRI-based; 
+          rdfs:label "Supporto"@en . 
+#  --------------------------- Class  21------------------------- 
+:carta rdf:type owl:Class; 
+       rdfs:label "carta"@IRI-based; 
+       rdfs:label "Carta"@en . 
+#  --------------------------- Class  22------------------------- 
+:luogo rdf:type owl:Class; 
+       rdfs:label "luogo"@IRI-based; 
+       rdfs:label "Luogo"@en . 
+#  --------------------------- Class  23------------------------- 
+:segnatura rdf:type owl:Class; 
+           rdfs:label "segnatura"@IRI-based; 
+           rdfs:label "Segnatura"@en . 
+#  --------------------------- Class  24------------------------- 
+:miniatura rdf:type owl:Class; 
+           rdfs:label "miniatura"@IRI-based; 
+           rdfs:label "Miniatura"@en . 
+#  --------------------------- Class  25------------------------- 
+:provenienza rdf:type owl:Class; 
+             rdfs:label "provenienza"@IRI-based; 
+             rdfs:label "Provenienza"@en . 
+#  --------------------------- Class  26------------------------- 
+:marginalia rdf:type owl:Class; 
+            rdfs:label "marginalia"@IRI-based; 
+            rdfs:label "Marginalia"@en . 
+#  --------------------------- Class  27------------------------- 
+:illustrazione rdf:type owl:Class; 
+               rdfs:label "illustrazione"@IRI-based; 
+               rdfs:label "Illustrazione"@en . 

+ 248 - 0
ontology_parser.py

@@ -0,0 +1,248 @@
+# %%
+import csv
+import json
+
+# BASIC CONFIGURATION
+DATA_FOLDER = './data/'
+ONTO_FILENAME = 'man_draft' # No extension!
+
+ent_filename = ONTO_FILENAME + '_entities.csv'
+rel_filename = ONTO_FILENAME + '_relations.csv'
+# %%
+
+# PART I: parse xlsx to (multiple) csv
+
+# CONFIGURATION
+XLSX_FILENAME = ONTO_FILENAME + '.xlsx'
+ENTITIES_SHEETNAME = 'Entità'
+RELATIONS_SHEETNAME = 'Relazioni'
+# %%
+# Import xlsx through openpyxl
+import openpyxl as op
+
+input_data = op.load_workbook(DATA_FOLDER + XLSX_FILENAME) # Explicitly specify the encoding??
+
+entities_sheet = input_data[ENTITIES_SHEETNAME]
+relations_sheet = input_data[RELATIONS_SHEETNAME]
+# %%
+# Export sheet data to csv
+with open(DATA_FOLDER + ent_filename, 'w', encoding='utf-8') as out_file:
+    writer = csv.writer(out_file)
+    writer.writerows(entities_sheet.values)
+
+with open(DATA_FOLDER + rel_filename, 'w', encoding='utf-8') as out_file:
+    writer = csv.writer(out_file)
+    writer.writerows(relations_sheet.values)
+# %%
+# PART II: collect csv data into a 'pre-ontology' structure
+
+# Read csv files back in (or use them directly as starting points)
+HEADER_ROW = True
+
+# Not difficult to add more keys (column names)
+ENTITIES_COLUMN_LABEL = 'ENTITÀ'
+ATTRIBUTES_COLUMN_LABEL = 'ATTRIBUTO (LITERAL)'
+SAMEAS_COLUMN_LABEL = 'SAME AS'
+#
+RELATION_FIRST_COLUMN_LABEL = 'ENTITÀ 1'
+RELATION_SECOND_COLUMN_LABEL = 'ENTITÀ 2'
+RELATION_NAME_COLUMN_LABEL = 'NOME RELAZIONE'
+INVERSE_RELATION_COLUMN_LABEL = 'NOME RELAZIONE INVERSA'
+#
+
+
+with open(DATA_FOLDER + ent_filename, 'r', encoding='utf-8') as in_file:
+    if HEADER_ROW:
+        reader = csv.DictReader(in_file)
+    else:
+        reader = csv.DictReader(in_file, fieldnames=[RELATION_FIRST_COLUMN_LABEL, RELATION_SECOND_COLUMN_LABEL, RELATION_NAME_COLUMN_LABEL, INVERSE_RELATION_COLUMN_LABEL])
+    entities = [row for row in reader]
+
+with open(DATA_FOLDER + rel_filename, 'r', encoding='utf-8') as in_file:
+    if HEADER_ROW:
+        reader = csv.DictReader(in_file)
+    else:
+        reader = csv.DictReader(in_file, fieldnames=[ENTITIES_COLUMN_LABEL, ATTRIBUTES_COLUMN_LABEL, SAMEAS_COLUMN_LABEL])
+    relations = [row for row in reader]
+# %%
+# From here on, work with the 'entities' and 'relations' lists of dicts. Arrange them in a nested structure, for convenience
+
+def dict_lists_to_json(entities_local, relations_local):
+
+    entity = {}
+
+    current_entity = None
+    for row in entities_local:
+        entity_name = row.get(ENTITIES_COLUMN_LABEL)
+        attribute_name = row.get(ATTRIBUTES_COLUMN_LABEL)
+        same_as_row = row.get(SAMEAS_COLUMN_LABEL)
+        same_as_list = same_as_row.split(',') if same_as_row else []
+
+        if entity_name:
+            current_entity = entity_name
+            entity[current_entity] = {}
+
+        if current_entity and attribute_name:
+            if not entity[current_entity].get('Attributi'):
+                entity[current_entity]['Attributi'] = []
+            entity[current_entity]['Attributi'].append(attribute_name)
+
+        if current_entity and same_as_list:
+            entity[current_entity]['Sinonimi'] = [s.strip() for s in same_as_list]
+
+    # Add subclass information
+    for row in relations_local:
+        entity1 = row.get(RELATION_FIRST_COLUMN_LABEL)
+        entity2 = row.get(RELATION_SECOND_COLUMN_LABEL)
+        label = row.get(RELATION_NAME_COLUMN_LABEL)
+
+        if label == "is_subclass_of":
+            if entity1 in entity:
+                entity[entity1]["Sottoclasse di"] = entity2
+
+    # Construct relations
+    entity_relations = []
+    for row in relations_local:
+        if row[RELATION_NAME_COLUMN_LABEL] != "is_subclass_of":
+            relation = {
+                "Entità 1": row[RELATION_FIRST_COLUMN_LABEL],
+                "Entità 2": row[RELATION_SECOND_COLUMN_LABEL],
+                "Etichetta": row[RELATION_NAME_COLUMN_LABEL],
+                "Inversa": row[INVERSE_RELATION_COLUMN_LABEL]
+            }
+            entity_relations.append(relation)
+
+    # Create final JSON structure
+    data = {
+        "Entità": entity,
+        "Relazioni": entity_relations
+    }
+
+    return data
+# %%
+json_data = dict_lists_to_json(entities, relations)
+
+# Export data
+with open(DATA_FOLDER + ONTO_FILENAME + '.json', 'w') as out_json:
+    json.dump(json_data, out_json, indent=2, ensure_ascii=False)
+# %%
+# Re-read the data and do a consistency check
+entity_set = set(json_data['Entità'].keys())
+
+entity_relations_set = {ent for rel in json_data['Relazioni'] for ent in [rel['Entità 1'], rel['Entità 2']]}
+
+# The check
+if not entity_relations_set.issubset(entity_set):
+    print(entity_relations_set.difference(entity_set))
+
+# Commento su #any
+# %%
+# RDF Templates
+with open('./template.rdf', 'r') as in_file:
+    RAW_RDF = in_file.read()
+
+ENTITY_TEMPLATE = '''
+    <!-- http://www.h2iosc.it/onto##NAME# -->
+
+    <owl:Class rdf:about="&h2iosc;#NAME#">
+        <rdfs:label>#LABEL#</rdfs:label>
+        <rdfs:subClassOf>#PARENT#</rdfs:subClassOf>
+    </owl:Class>
+'''
+SUBCLASS_STRING = "        <rdfs:subClassOf>#PARENT#</rdfs:subClassOf>\n"
+
+OBJECT_PROPERTY_TEMPLATE = '''
+    <!-- http://www.h2iosc.it/onto##NAME# -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;#NAME#">
+        <rdfs:label>#LABEL#</rdfs:label>
+        <rdfs:range rdf:resource="&h2iosc;#RANGE#"/>
+        <rdfs:domain rdf:resource="&h2iosc;#DOMAIN#"/>
+    </owl:ObjectProperty>
+'''
+
+OBJECT_PROPERTY_INVERSE_TEMPLATE = '''
+    <!-- http://www.h2iosc.it/onto##NAME# -->
+
+    <owl:ObjectProperty rdf:about="&h2iosc;#NAME#">
+        <rdfs:label>#LABEL#</rdfs:label>
+        <owl:inverseOf rdf:resource="&h2iosc;#INV#"/>
+        <rdfs:range rdf:resource="&h2iosc;#RANGE#"/>
+        <rdfs:domain rdf:resource="&h2iosc;#DOMAIN#"/>
+    </owl:ObjectProperty>
+'''
+
+DATATYPE_PROPERTY_TEMPLATE = '''
+    <!-- http://www.h2iosc.it/onto##NAME# -->
+
+    <owl:DatatypeProperty rdf:about="&h2iosc;#NAME#">
+        <rdfs:label>#LABEL#</rdfs:label>
+        <rdfs:domain rdf:resource="&h2iosc;#DOMAIN#"/>
+    </owl:DatatypeProperty>
+'''
+
+# Utility
+def normalize_label(label):
+    return label.lower().replace(' ', '_').replace('à', 'a').replace('è', 'e').replace('é', 'e').replace('ì', 'i').replace('ò', 'o').replace('ù', 'u')
+# %%
+# CREATE RDF OUTPUT
+def create_rdf(data):
+    entities_rdf_list = []
+    datatype_properties_rdf_list = []
+    for label, ent in data['Entità'].items():
+        
+        entity_name = normalize_label(label)
+        entity_rdf = ENTITY_TEMPLATE.replace('#LABEL#', label).replace('#NAME#', entity_name)
+
+        # Subclasses
+        if 'Sottoclasse di' in ent.keys():
+            parent = ent['Sottoclasse di']
+            data['Relazioni'].append({"Entità 1": label,
+                "Entità 2": parent,
+                "Etichetta": "is_subclass_of", "Inversa": "is_superclass_of"})
+            entity_rdf = entity_rdf.replace('#PARENT#', normalize_label(parent))
+        else:
+            entity_rdf = entity_rdf.replace(SUBCLASS_STRING, '')
+
+        entities_rdf_list.append(entity_rdf)
+        
+        if not ent.get('Attributi'):
+            continue
+        for datatype_label in ent['Attributi']:
+            datatype_name = normalize_label(datatype_label)
+            datatype_properties_rdf_list.append(
+                DATATYPE_PROPERTY_TEMPLATE.replace('#LABEL#', datatype_label).replace(
+                    '#NAME#', datatype_name
+                ).replace('#DOMAIN#', entity_name)
+            )
+
+    relations_rdf_list = []
+    for rel in data['Relazioni']:
+        label = rel['Etichetta']
+        inverse_label = rel['Inversa']
+        domain = normalize_label(rel['Entità 1'])
+        range1 = normalize_label(rel['Entità 2'])
+        name = domain + '_' + normalize_label(label) + '_' + range1
+        inverse_name = range1 + '_' + normalize_label(inverse_label) + '_' + domain
+        #
+        relation_rdf = OBJECT_PROPERTY_TEMPLATE.replace('#NAME#', name).replace('#LABEL#', label).replace('#DOMAIN#', domain).replace('#RANGE#', range1)
+        #
+        relation_inverse_rdf = OBJECT_PROPERTY_INVERSE_TEMPLATE.replace('#NAME#', inverse_name).replace('#LABEL#', inverse_label).replace('#DOMAIN#', range1).replace('#RANGE#', domain).replace('#INV#', name)
+        #
+        relation_full_rdf = relation_rdf + '\n\n\n' + relation_inverse_rdf
+        relations_rdf_list.append(relation_full_rdf)
+    
+    to_out = RAW_RDF.replace(ENTITY_TEMPLATE, '\n\n\n'.join(entities_rdf_list)).replace(DATATYPE_PROPERTY_TEMPLATE, '\n\n\n'.join(datatype_properties_rdf_list)
+    ).replace(OBJECT_PROPERTY_INVERSE_TEMPLATE, '\n\n\n'.join(relations_rdf_list))
+
+    return to_out
+# %%
+rdf_data = create_rdf(json_data)
+
+# Export
+with open(DATA_FOLDER + ONTO_FILENAME + '.rdf', 'w') as out_file:
+    out_file.write(rdf_data)
+# %%
+# https://service.tib.eu/webvowl/
+
+# %%

+ 0 - 138
parse_onto_xlsx.py

@@ -1,138 +0,0 @@
-# %%
-import csv
-import json
-
-# CONFIGURATION
-DATA_FOLDER = './data/'
-XLSX_FILENAME = 'man_draft.xlsx'
-ENTITIES_SHEETNAME = 'Entità'
-RELATIONS_SHEETNAME = 'Relazioni'
-#
-HEADER_ROW = True
-#
-ENTITIES_COLUMN_LABEL = 'ENTITÀ'
-ATTRIBUTES_COLUMN_LABEL = 'ATTRIBUTO (LITERAL)'
-SAMEAS_COLUMN_LABEL = 'SAME AS'
-#
-RELATION_FIRST_COLUMN_LABEL = 'ENTITÀ 1'
-RELATION_SECOND_COLUMN_LABEL = 'ENTITÀ 2'
-RELATION_NAME_COLUMN_LABEL = 'NOME RELAZIONE'
-INVERSE_RELATION_COLUMN_LABEL = 'NOME RELAZIONE INVERSA'
-
-# %%
-# Import xlsx through openpyxl
-import openpyxl as op
-
-input_data = op.load_workbook(DATA_FOLDER + XLSX_FILENAME)
-
-entities_sheet = input_data[ENTITIES_SHEETNAME]
-relations_sheet = input_data[RELATIONS_SHEETNAME]
-# %%
-# Conversion utility: from openpyxl object to csv-style list of dicts
-def sheet_to_dict_list(openpyxl_sheet, keys, header_row_local=True):
-
-    if header_row_local:
-        headers = next(openpyxl_sheet.values)
-        indices = {key: headers.index(key) for key in keys}
-    else:
-        indices = {key: int(key) for key in keys}
-
-    output = []
-    for sheet_row in openpyxl_sheet.values:
-
-        # Get row data as dict
-        out_row = {key: sheet_row[indices[key]]for key in keys if indices[key]>-1}
-        output.append(out_row)
-
-    if header_row_local:
-        output = output[1:]
-
-    return output
-# %%
-# Define csv-style list of dicts for entities and relations
-
-# Collect headers (column names) for the Entities Sheet
-ent_keys = [ENTITIES_COLUMN_LABEL, ATTRIBUTES_COLUMN_LABEL, SAMEAS_COLUMN_LABEL]
-# Convert
-entities = sheet_to_dict_list(entities_sheet, ent_keys, HEADER_ROW)
-# Export
-basename = XLSX_FILENAME[:XLSX_FILENAME.rfind('.')]
-ent_filename = basename + '_entities.csv'
-with open(DATA_FOLDER + ent_filename, 'w') as out_file:
-    writer = csv.DictWriter(out_file, ent_keys)
-    writer.writeheader()
-    writer.writerows(entities)
-
-# Collect headers (column names) for the Relations Sheet
-rel_keys = [RELATION_FIRST_COLUMN_LABEL, RELATION_SECOND_COLUMN_LABEL, RELATION_NAME_COLUMN_LABEL,INVERSE_RELATION_COLUMN_LABEL]
-# Convert
-relations = sheet_to_dict_list(relations_sheet, rel_keys, HEADER_ROW)
-# Export
-rel_filename = basename + '_relations.csv'
-with open(DATA_FOLDER + rel_filename, 'w') as out_file:
-    writer = csv.DictWriter(out_file, rel_keys)
-    writer.writeheader()
-    writer.writerows(relations)
-# %%
-# From here on, work with the 'entities' and 'relations' lists of dicts
-
-def dict_lists_to_json(entities_local, relations_local):
-
-    entity = {}
-    same_as = {}
-
-    current_entity = None
-    for row in entities_local:
-        entity_name = row.get(ENTITIES_COLUMN_LABEL)
-        attribute_name = row.get(ATTRIBUTES_COLUMN_LABEL)
-        same_as_row = row.get(SAMEAS_COLUMN_LABEL)
-        same_as_list = same_as_row.split(',') if same_as_row else []
-
-        if entity_name:
-            current_entity = entity_name
-            entity[current_entity] = {}
-
-        if current_entity and attribute_name:
-            if not entity[current_entity].get('Attributi'):
-                entity[current_entity]['Attributi'] = []
-            entity[current_entity]['Attributi'].append(attribute_name)
-
-        if current_entity and same_as_list:
-            same_as[current_entity] = [s.strip() for s in same_as_list]
-
-    # Add subclass information
-    for row in relations_local:
-        entity1 = row.get(RELATION_FIRST_COLUMN_LABEL)
-        entity2 = row.get(RELATION_SECOND_COLUMN_LABEL)
-        label = row.get(RELATION_NAME_COLUMN_LABEL)
-
-        if label == "is_subclass_of":
-            if entity1 in entity:
-                entity[entity1]["Sottoclasse di"] = entity2
-
-    # Construct relations
-    entity_relations = []
-    for row in relations_local:
-        if row['NOME RELAZIONE'] != "is_subclass_of":
-            relation = {
-                "Entità 1": row['ENTITÀ 1'],
-                "Entità 2": row['ENTITÀ 2'],
-                "Etichetta": row['NOME RELAZIONE'],
-                "Inversa": row['NOME RELAZIONE INVERSA']
-            }
-            entity_relations.append(relation)
-
-    # Create final JSON structure
-    data = {
-        "Entità": entity,
-        "Relazioni": entity_relations,
-        "Same_as": same_as
-    }
-
-    return data
-# %%
-json_data = dict_lists_to_json(entities, relations)
-
-with open(DATA_FOLDER + basename + '.json', 'w') as out_json:
-    json.dump(json_data, out_json, indent=2, ensure_ascii=False)
-# %%

+ 0 - 142
reparsing_TO_REVIEW.py

@@ -1,142 +0,0 @@
-# %%
-import json
-import csv
-
-with open('./etc/man_draft.json', 'r') as in_file:
-    data = json.load(in_file)
-# %%
-entity_rels = {ent for rel in data['Relazioni'] for ent in [rel['Entità 1'], rel['Entità 2']]}
-# %%
-entities = set(data['Entità'].keys())
-entities.add('#any') # For compatibility
-# %%
-# Consistency check
-if not entity_rels.issubset(entities):
-    print(entity_rels.difference(entities))
-# %%
-with open('./dat/template.rdf', 'r') as in_file:
-    raw_rdf = in_file.read()
-
-entity_template = '''
-    <!-- http://www.h2iosc.it/onto##NAME# -->
-
-    <owl:Class rdf:about="&h2iosc;#NAME#">
-        <rdfs:label>#LABEL#</rdfs:label>
-        <rdfs:subClassOf>#PARENT#</rdfs:subClassOf>
-    </owl:Class>
-'''
-subclass_string = "        <rdfs:subClassOf>#PARENT#</rdfs:subClassOf>\n"
-
-object_property_template = '''
-    <!-- http://www.h2iosc.it/onto##NAME# -->
-
-    <owl:ObjectProperty rdf:about="&h2iosc;#NAME#">
-        <rdfs:label>#LABEL#</rdfs:label>
-        <rdfs:range rdf:resource="&h2iosc;#RANGE#"/>
-        <rdfs:domain rdf:resource="&h2iosc;#DOMAIN#"/>
-    </owl:ObjectProperty>
-'''
-
-object_property_inverse_template = '''
-    <!-- http://www.h2iosc.it/onto##NAME# -->
-
-    <owl:ObjectProperty rdf:about="&h2iosc;#NAME#">
-        <rdfs:label>#LABEL#</rdfs:label>
-        <owl:inverseOf rdf:resource="&h2iosc;#INV#"/>
-        <rdfs:range rdf:resource="&h2iosc;#RANGE#"/>
-        <rdfs:domain rdf:resource="&h2iosc;#DOMAIN#"/>
-    </owl:ObjectProperty>
-'''
-
-datatype_property_template = '''
-    <!-- http://www.h2iosc.it/onto##NAME# -->
-
-    <owl:DatatypeProperty rdf:about="&h2iosc;#NAME#">
-        <rdfs:label>#LABEL#</rdfs:label>
-        <rdfs:domain rdf:resource="&h2iosc;#DOMAIN#"/>
-    </owl:DatatypeProperty>
-'''
-
-
-def label_to_name(label):
-    return label.replace(' ', '_').replace('à', 'a').replace('è', 'e').replace('é', 'e').replace('ì', 'i').replace('ò', 'o').replace('ù', 'u')
-
-
-datatype_xsd = {
-    "#string": 'string',
-    '#uri': '#uri',
-    '#number': 'decimal',
-    '#date': 'date',
-    '#coordinates': '#coordinates'
-}
-
-entities_rdf_list = []
-entities_csv = []
-datatype_properties_rdf_list = []
-same_as = list(data['Same_as'].keys())
-for label, ent in data['Entità'].items():
-    
-    entity_name = label_to_name(label)
-    entity_rdf = entity_template.replace('#LABEL#', label).replace('#NAME#', entity_name)
-
-    # Subclasses
-    if 'Sottoclasse di' in ent.keys():
-        parent = ent['Sottoclasse di']
-        data['Relazioni'].append({"Entità 1": label,
-            "Entità 2": parent,
-            "Etichetta": "is_subclass_of", "Inversa": "is_superclass_of"})
-        entity_rdf = entity_rdf.replace('#PARENT#', label_to_name(parent))
-    else:
-        entity_rdf = entity_rdf.replace(subclass_string, '')
-
-    entities_rdf_list.append(entity_rdf)
-    #
-    if label in same_as:
-        entities_csv.append( [label, "", ', '.join(data['Same_as'][label])] )
-    else:
-        entities_csv.append([label, "", ""])
-    for datatype_label, datatype_val in ent.items():
-        if not isinstance(datatype_val, str) or not datatype_val.startswith('#'):
-            continue
-        entities_csv.append(["", datatype_label, ""])
-        datatype_name = label_to_name(datatype_label)
-        datatype_properties_rdf_list.append(
-            datatype_property_template.replace('#LABEL#', datatype_label).replace(
-                '#NAME#', datatype_name
-            ).replace('#DOMAIN#', entity_name)
-        )
-
-relations_rdf_list = []
-relations_csv = []
-for rel in data['Relazioni']:
-    label = rel['Etichetta']
-    inverse_label = rel['Inversa']
-    domain = label_to_name(rel['Entità 1'])
-    range1 = label_to_name(rel['Entità 2'])
-    relations_csv.append([rel['Entità 1'], rel['Entità 2'], rel['Etichetta'], rel['Inversa']])
-    name = domain + '_' + label_to_name(label) + '_' + range1
-    inverse_name = range1 + '_' + label_to_name(inverse_label) + '_' + domain
-    #
-    relation_rdf = object_property_template.replace('#NAME#', name).replace('#LABEL#', label).replace('#DOMAIN#', domain).replace('#RANGE#', range1)
-    #
-    relation_inverse_rdf = object_property_inverse_template.replace('#NAME#', inverse_name).replace('#LABEL#', inverse_label).replace('#DOMAIN#', range1).replace('#RANGE#', domain).replace('#INV#', name)
-    #
-    relation_full_rdf = relation_rdf + '\n\n\n' + relation_inverse_rdf
-    relations_rdf_list.append(relation_full_rdf)
-
-
-with open('./etc/draft.rdf', 'w') as out_file:
-    to_out = raw_rdf.replace(entity_template, '\n\n\n'.join(entities_rdf_list)).replace(
-        datatype_property_template, '\n\n\n'.join(datatype_properties_rdf_list)
-    ).replace(object_property_inverse_template, '\n\n\n'.join(relations_rdf_list))
-    out_file.write(to_out)
-# %%
-with open('./etc/entities.csv', 'w') as out_csv:
-    writer = csv.writer(out_csv)
-    writer.writerow(['ENTITÀ', 'ATTRIBUTO (LITERAL)', 'SAME AS'])
-    writer.writerows(entities_csv)
-with open('./etc/relations.csv', 'w') as out_csv:
-    writer = csv.writer(out_csv)
-    writer.writerow(['ENTITÀ 1', 'ENTITÀ 2', 'NOME RELAZIONE', 'NOME RELAZIONE INVERSA'])
-    writer.writerows(relations_csv)
-# %%

+ 1 - 0
template.rdf

@@ -48,6 +48,7 @@
     ///////////////////////////////////////////////////////////////////////////////////////
      -->
     
+    <!-- http://www.h2iosc.it/onto##NAME# -->
 
     <owl:DatatypeProperty rdf:about="&h2iosc;#NAME#">
         <rdfs:label>#LABEL#</rdfs:label>