Skip to content

Commit

Permalink
Updated ontorefine config
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind committed Dec 20, 2024
1 parent bd8749e commit b8a3ea0
Showing 1 changed file with 287 additions and 8 deletions.
295 changes: 287 additions & 8 deletions ontorefine-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@
},
"description": "Remove rows"
},
{
"op": "core/fill-down",
"engineConfig": {
"facets": [],
"mode": "record-based"
},
"columnName": "_ - id",
"description": "Fill down cells in column _ - id"
},
{
"op": "mapping-editor/save-rdf-mapping",
"mapping": {
Expand Down Expand Up @@ -238,8 +247,13 @@
"source": "column",
"columnName": "_ - url_tickets - regular_tickets - regular_tickets"
},
"transformation": {
"language": "raw"
},
"valueType": {
"type": "literal"
"type": "iri",
"typeMappings": [],
"propertyMappings": []
}
}
]
Expand All @@ -253,7 +267,7 @@
"property": {
"valueSource": {
"source": "constant",
"constant": "performers"
"constant": "performer"
},
"transformation": {
"language": "prefix",
Expand All @@ -263,16 +277,19 @@
"values": [
{
"valueSource": {
"source": "column",
"columnName": "_ - artists - _ - name"
"source": "row_index"
},
"transformation": {
"language": "grel",
"expression": "if(cells[\"_ - artists - _ - role\"].value == 'main_attraction', cells[\"_ - artists - _ - name\"].value, null)"
},
"valueType": {
"type": "unique_bnode",
"typeMappings": [
{
"valueSource": {
"source": "constant",
"constant": "performer"
"constant": "PerformingGroup"
},
"transformation": {
"language": "prefix",
Expand Down Expand Up @@ -308,7 +325,7 @@
"property": {
"valueSource": {
"source": "constant",
"constant": "url"
"constant": "sameAs"
},
"transformation": {
"language": "prefix",
Expand All @@ -321,17 +338,41 @@
"source": "column",
"columnName": "_ - artists - _ - youtube_url"
},
"transformation": {
"language": "raw"
},
"valueType": {
"type": "literal"
"type": "iri",
"typeMappings": [],
"propertyMappings": []
}
},
{
"valueSource": {
"source": "column",
"columnName": "_ - artists - _ - spotify_id"
},
"transformation": {
"language": "raw"
},
"valueType": {
"type": "iri",
"typeMappings": [],
"propertyMappings": []
}
},
{
"valueSource": {
"source": "column",
"columnName": "_ - artists - _ - video_url"
},
"transformation": {
"language": "raw"
},
"valueType": {
"type": "literal"
"type": "iri",
"typeMappings": [],
"propertyMappings": []
}
}
]
Expand Down Expand Up @@ -395,11 +436,249 @@
}
}
]
},
{
"property": {
"valueSource": {
"source": "constant",
"constant": "copyrightNotice"
},
"transformation": {
"language": "prefix",
"expression": "schema"
}
},
"values": [
{
"valueSource": {
"source": "constant",
"constant": "© Copyright source: evenko 2024. All rights reserved."
},
"valueType": {
"type": "language_literal",
"language": {
"valueSource": {
"source": "constant",
"constant": "en"
}
}
}
},
{
"valueSource": {
"source": "constant",
"constant": "© Copyright source: evenko 2024. Tous droits réservés."
},
"valueType": {
"type": "language_literal",
"language": {
"valueSource": {
"source": "constant",
"constant": "fr"
}
}
}
}
]
}
]
}
}
]
},
{
"property": {
"valueSource": {
"source": "constant",
"constant": "performer"
},
"transformation": {
"language": "prefix",
"expression": "schema"
}
},
"values": [
{
"valueSource": {
"source": "row_index"
},
"transformation": {
"language": "grel",
"expression": "if(cells[\"_ - artists - _ - role\"].value == 'special_guest', cells[\"_ - artists - _ - name\"].value, null)"
},
"valueType": {
"type": "unique_bnode",
"typeMappings": [
{
"valueSource": {
"source": "constant",
"constant": "PerformanceRole"
},
"transformation": {
"language": "prefix",
"expression": "schema"
}
}
],
"propertyMappings": [
{
"property": {
"valueSource": {
"source": "constant",
"constant": "roleName"
},
"transformation": {
"language": "prefix",
"expression": "schema"
}
},
"values": [
{
"valueSource": {
"source": "constant",
"constant": "special_guest"
},
"valueType": {
"type": "literal"
}
}
]
},
{
"property": {
"valueSource": {
"source": "constant",
"constant": "performer"
},
"transformation": {
"language": "prefix",
"expression": "schema"
}
},
"values": [
{
"valueSource": {
"source": "row_index"
},
"transformation": {
"language": "grel",
"expression": "if(cells[\"_ - artists - _ - role\"].value == 'special_guest', cells[\"_ - artists - _ - name\"].value, null)"
},
"valueType": {
"type": "unique_bnode",
"typeMappings": [
{
"valueSource": {
"source": "constant",
"constant": "PerformingGroup"
},
"transformation": {
"language": "prefix",
"expression": "schema"
}
}
],
"propertyMappings": [
{
"property": {
"valueSource": {
"source": "constant",
"constant": "name"
},
"transformation": {
"language": "prefix",
"expression": "schema"
}
},
"values": [
{
"valueSource": {
"source": "row_index"
},
"transformation": {
"language": "grel",
"expression": "if(cells[\"_ - artists - _ - role\"].value == 'special_guest', cells[\"_ - artists - _ - name\"].value, null)"
},
"valueType": {
"type": "literal"
}
}
]
}
]
}
}
]
}
]
}
}
]
},
{
"property": {
"valueSource": {
"source": "constant",
"constant": "keyword"
},
"transformation": {
"language": "prefix",
"expression": "schema"
}
},
"values": [
{
"valueSource": {
"source": "column",
"columnName": "_ - eventTag"
},
"valueType": {
"type": "literal"
}
}
]
},
{
"property": {
"valueSource": {
"source": "constant",
"constant": "additionalType"
},
"transformation": {
"language": "prefix",
"expression": "schema"
}
},
"values": [
{
"valueSource": {
"source": "row_index"
},
"transformation": {
"language": "grel",
"expression": "if(cells[\"_ - is_music\"].value == true, \"http://kg.artsdata.ca/resource/MusicPerformance\", null)"
},
"valueType": {
"type": "iri",
"typeMappings": [],
"propertyMappings": []
}
},
{
"valueSource": {
"source": "row_index"
},
"transformation": {
"language": "grel",
"expression": "if(cells[\"_ - is_humour\"].value == true, \"http://kg.artsdata.ca/resource/ComedyPerformance\", null)"
},
"valueType": {
"type": "iri",
"typeMappings": [],
"propertyMappings": []
}
}
]
}
]
}
Expand Down

0 comments on commit b8a3ea0

Please sign in to comment.