瀏覽代碼

New configuration for REALZ -- parser yet to update

kora 1 年之前
父節點
當前提交
5d0f6a598c

+ 48 - 0
FORMS/backup/tmp.ttl

@@ -0,0 +1,48 @@
+@prefix mpp: <https://palazzopretorio.prato.it/it/le-opere/alcuni-capolavori/> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix aut: <https://palazzopretorio.prato.it/it/opere/autori/> .
+@prefix crm: <http://www.cidoc-crm.org/cidoc-crm/> .
+@prefix aat: <http://vocab.getty.edu/aat/> .
+@prefix schema: <http://www.schema.org/> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+
+aut:da-benedetto-da-maiano rdf:type crm:E21_Person .
+aut:da-benedetto-da-maiano rdf:type foaf:person .
+aut:da-benedetto-da-maiano foaf:name "Benedetto di Leonardo detto Benedetto da Maiano" .
+aut:da-benedetto-da-maiano foaf:givenName "Benedetto" .
+aut:da-benedetto-da-maiano foaf:gender "M" .
+aut:da-benedetto-da-maiano rdfs:label "Benedetto di Leonardo detto Benedetto da Maiano, 1442/ 1497" .
+aut:da-benedetto-da-maiano crm:P3_has_note aut:da-benedetto-da-maiano_E62 .
+aut:da-benedetto-da-maiano crm:P98i_was_born aut:da-benedetto-da-maiano_E67 .
+aut:da-benedetto-da-maiano crm:P1_is_identified_by aut:28 .
+aut:da-benedetto-da-maiano crm:P100i_died_in aut:da-benedetto-da-maiano_E69 .
+aut:da-benedetto-da-maiano schema:hasOccupation mpp:scultore .
+
+aut:da-benedetto-da-maiano_E62 rdf:type crm:E62_String .
+aut:da-benedetto-da-maiano_E62 rdfs:label "Fonte: Museo di Palazzo Pretorio - Collezione Martini" .
+
+aut:28 rdf:type crm:E42_Identifier .
+aut:28 rdfs:label "28" .
+
+aut:da-benedetto-da-maiano_E67 rdf:type crm:E67_Birth .
+aut:da-benedetto-da-maiano_E67 rdfs:label "Nascita di Benedetto di Leonardo detto Benedetto da Maiano" .
+aut:da-benedetto-da-maiano_E67 crm:P7_took_place_at mpp:Firenze .
+aut:da-benedetto-da-maiano_E67 crm:P4_has_time-span mpp:1442 .
+
+mpp:Firenze rdf:type crm:E53_Place .
+mpp:Firenze rdfs:label "Firenze" .
+
+mpp:1442 rdf:type crm:E52_Time-Span .
+mpp:1442 rdfs:label "1442" .
+
+aut:da-benedetto-da-maiano_E69 rdf:type crm:E69_Death .
+aut:da-benedetto-da-maiano_E69 rdfs:label "Morte di Benedetto di Leonardo detto Benedetto da Maiano" .
+aut:da-benedetto-da-maiano_E69 crm:P7_took_place_at mpp:Firenze .
+aut:da-benedetto-da-maiano_E69 crm:P4_has_time-span mpp:1497 .
+
+mpp:1497 rdf:type crm:E52_Time-Span .
+mpp:1497 rdfs:label "1497" .
+
+mpp:scultore rdf:type schema:Occupation .
+mpp:scultore rdfs:label "scultore" .

+ 0 - 0
FORMS/parsers/configuration_files/descrizione_minimal.json → FORMS/backup/vecchie_configurazioni/descrizione_minimal.json


+ 200 - 34
FORMS/parsers/configuration_files/configuration.json

@@ -1,36 +1,202 @@
 [
-  {
-    "csvRow": "URL",
-    "subject": "aut:#CSV_0#",
-    "predicate": "rdf:type",
-    "object": ["crm:E21_Person", "foaf:person"],
-    "ref": {"label": "MAIN", "field": "subject"},
-    "comment": "Ci si può scrivere icché si vòle."
-  },
-  {
-    "csvRow": "AUTN",
-    "subject": "_REF_:MAIN",
-    "predicate": "foaf:name",
-    "object": "#CSV_0#",
-    "comment": "I primi quattro campi sono obbligatori; gli altri opzionali o condizionali."
-  },
-  {
-    "csvRow": "AUTO",
-    "subject": "_REF_:MAIN",
-    "predicate": "foaf:givenName",
-    "object": "#CSV_0#"
-  },
-  {
-    "csvRow": "AUTZ",
-    "subject": "_REF_:MAIN",
-    "predicate": "foaf:gender",
-    "object": "#CSV_0#"
-  },
-  {
-    "csvRow": "AUTH",
-    "subject": "_REF_:MAIN",
-    "predicate": "crm:P1_is_identified_by",
-    "object": "aut:#CSV_0#",
-    "ref": "IDENTIFIER"
-  }
+    {
+        "subject": {
+          "value": "aut:#(csv:URL)#",
+          "ref": "MAIN"
+        },
+        "comment": "OPZIONALE - ci si può scrivere icché si vòle.",
+        "content": [
+            {
+              "predicate": "rdf:type",
+              "object": "crm:E21_Person"
+            },
+            {
+              "predicate": "rdf:type",
+              "object": "foaf:person"
+            },
+            {
+              "predicate": "foaf:name",
+              "object": "\"#(csv:AUTN)#\""
+            },
+            {
+              "predicate": "foaf:givenName",
+              "object": "\"#(csv:AUTO)#\""
+            },
+            {
+              "predicate": "foaf:gender",
+              "object": "\"#(csv:AUTZ)#\""
+            },
+            {
+              "predicate": "rdfs:label",
+              "object": "\"#(csv:AUTN)#, #(csv:AUTA)#\""
+            },
+            {
+              "predicate": "crm:P3_has_note",
+              "object": {
+                "value": "#(ref:MAIN)#_E62",
+                "ref": "E62"
+              }
+            },
+            {
+              "predicate": "crm:P98i_was_born",
+              "object": {
+                "value": "#(ref:MAIN)#_E67",
+                "ref": "E67"
+              }
+            },
+            {
+              "predicate": "crm:P100i_died_in",
+              "object": {
+                "value": "#(ref:MAIN)#_E69",
+                "ref": "E69"
+              }
+            },
+            {
+              "predicate": "crm:P1_is_identified_by",
+              "object": {
+                "value": "aut:#(csv:AUTH)#",
+                "ref": "E42"
+              }
+            },
+            {
+              "predicate": "schema:hasOccupation",
+              "object": {
+                "value": "mpp:#(csv:AUTQ)#",
+                "ref": "OCCUPATION"
+              }
+            }
+        ]
+    },
+    {
+      "subject": "#(obj_ref:E62)#",
+      "content": [
+          {
+            "predicate": "rdf:type",
+            "object": "crm:E62_String"
+          },
+          {
+            "predicate": "rdfs:label",
+            "object": "\"Fonte: Museo di Palazzo Pretorio - Collezione Martini\""
+          }
+      ]
+    },
+    {
+      "subject": "#(obj_ref:E42)#",
+      "content": [
+          {
+            "predicate": "rdf:type",
+            "object": "crm:E42_Identifier"
+          },
+          {
+            "predicate": "rdfs:label",
+            "object": "\"#(csv:AUTH)#\""
+          }
+      ]
+    },
+    {
+      "subject": "#(obj_ref:E67)#",
+      "content": [
+          {
+            "predicate": "rdf:type",
+            "object": "crm:E67_Birth"
+          },
+          {
+            "predicate": "rdfs:label",
+            "object": "\"Nascita di #(csv:AUTN)#\""
+          },
+          {
+            "predicate": "crm:P7_took_place_at",
+            "object": {
+              "value": "mpp:#(csv:AUTL)#",
+              "ref": "LOC-BIRTH"
+            }
+          },
+          {
+            "predicate": "crm:P4_has_time-span",
+            "object": {
+              "value": "mpp:#(csv:AUTD)#",
+              "ref": "TIME-BIRTH"
+            }
+          }
+      ]
+    },
+    {
+      "subject": "#(obj_ref:E69)#",
+      "content": [
+          {
+            "predicate": "rdf:type",
+            "object": "crm:E69_Death"
+          },
+          {
+            "predicate": "rdfs:label",
+            "object": "\"Morte di #(csv:AUTN)#\""
+          },
+          {
+            "predicate": "crm:P7_took_place_at",
+            "object": {
+              "value": "mpp:#(csv:AUTX)#",
+              "ref": "LOC-DEATH"
+            }
+          },
+          {
+            "predicate": "crm:P4_has_time-span",
+            "object": {
+              "value": "mpp:#(csv:AUTT)#",
+              "ref": "TIME-DEATH"
+            }
+          }
+      ]
+    },
+    {
+      "subject": "#(obj_ref:TIME-BIRTH)#",
+      "content": [
+          {
+            "predicate": "rdf:type",
+            "object": "crm:E52_Time-Span"
+          },
+          {
+            "predicate": "rdfs:label",
+            "object": "\"#(csv:AUTD)#\""
+          }
+      ]
+    },
+    {
+      "subject": "#(obj_ref:LOC-BIRTH)#",
+      "content": [
+          {
+            "predicate": "rdf:type",
+            "object": "crm:E53_Place"
+          },
+          {
+            "predicate": "rdfs:label",
+            "object": "\"#(csv:AUTL)#\""
+          }
+      ]
+    },
+    {
+      "subject": "#(obj_ref:TIME-DEATH)#",
+      "content": [
+          {
+            "predicate": "rdf:type",
+            "object": "crm:E52_Time-Span"
+          },
+          {
+            "predicate": "rdfs:label",
+            "object": "\"#(csv:AUTT)#\""
+          }
+      ]
+    },
+    {
+      "subject": "#(obj_ref:LOC-DEATH)#",
+      "content": [
+          {
+            "predicate": "rdf:type",
+            "object": "crm:E53_Place"
+          },
+          {
+            "predicate": "rdfs:label",
+            "object": "\"#(csv:AUTX)#\""
+          }
+      ]
+    }
 ]

+ 1 - 0
FORMS/samples/CSV/.~lock.AR20AUT_Ospedale_2.csv#

@@ -0,0 +1 @@
+,kora,koras,22.09.2022 09:06,file:///home/kora/.config/libreoffice/4;