diff --git a/ontorefine/config.json b/ontorefine/config.json index c0a8bd2..80e0ee3 100644 --- a/ontorefine/config.json +++ b/ontorefine/config.json @@ -6356,6 +6356,986 @@ ] }, "description": "Save RDF Mapping" + }, + { + "op": "mapping-editor/save-rdf-mapping", + "mapping": { + "baseIRI": "http://example.com/base", + "namespaces": { + "schema": "http://schema.org/", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "sp_org": "https://scenepro.ca/organization", + "sp_venue": "https://scenepro.ca/venue" + }, + "subjectMappings": [ + { + "subject": { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - id" + }, + "transformation": { + "language": "prefix", + "expression": "sp_org" + } + }, + "typeMappings": [ + { + "valueSource": { + "source": "constant", + "constant": "Organization" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + } + ], + "propertyMappings": [ + { + "property": { + "valueSource": { + "source": "constant", + "constant": "name" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - name" + }, + "valueType": { + "type": "language_literal", + "language": { + "valueSource": { + "source": "constant", + "constant": "fr" + } + } + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "description" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - description" + }, + "valueType": { + "type": "language_literal", + "language": { + "valueSource": { + "source": "constant", + "constant": "fr" + } + } + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "telephone" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "row_index" + }, + "transformation": { + "language": "grel", + "expression": "\"+1-\" + cells[\"_ - diffusers - _ - phone\"].value.replace(\" \", \"-\") + if(cells[\"_ - diffusers - _ - phonePostNumber\"].value != \"\", \";ext=\"+cells[\"_ - diffusers - _ - phonePostNumber\"].value , \"\")" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "email" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - email" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "url" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - website" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "logo" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - logo" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "identifier" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - wikidataId" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "foundingDate" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - dateFoundation" + }, + "valueType": { + "type": "datatype_literal", + "datatype": { + "valueSource": { + "source": "constant", + "constant": "dateTime" + }, + "transformation": { + "language": "prefix", + "expression": "xsd" + } + } + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "address" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - address1" + }, + "transformation": { + "language": "raw" + }, + "valueType": { + "type": "unique_bnode", + "typeMappings": [ + { + "valueSource": { + "source": "constant", + "constant": "PostalAddress" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + } + ], + "propertyMappings": [ + { + "property": { + "valueSource": { + "source": "constant", + "constant": "streetAddress" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "row_index" + }, + "transformation": { + "language": "grel", + "expression": "cells[\"_ - diffusers - _ - address1\"].value + cells[\"_ - diffusers - _ - address2\"].value" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "addressCountry" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - country" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "postalCode" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - zipCode" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "addressLocality" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - city" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "addressRegion" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - otherState" + }, + "valueType": { + "type": "literal" + } + } + ] + } + ] + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "sameAs" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - socialMediaAccounts - socialMediaAccounts" + }, + "valueType": { + "type": "literal" + } + }, + { + "valueSource": { + "source": "row_index" + }, + "transformation": { + "language": "grel", + "expression": "\"http://www.wikidata.org/entity/\" + cells[\"_ - diffusers - _ - wikidataId\"].value" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "http://www.wikidata.org/prop/direct/P10503" + }, + "transformation": { + "language": "raw" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - neq" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "location" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - id" + }, + "valueType": { + "type": "unique_bnode", + "typeMappings": [ + { + "valueSource": { + "source": "constant", + "constant": "Role" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + } + ], + "propertyMappings": [ + { + "property": { + "valueSource": { + "source": "constant", + "constant": "roleName" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "constant", + "constant": "gestionnaire" + }, + "valueType": { + "type": "language_literal", + "language": { + "valueSource": { + "source": "constant", + "constant": "fr" + } + } + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": " location" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - id" + }, + "transformation": { + "language": "prefix", + "expression": "sp_venue" + }, + "valueType": { + "type": "iri", + "typeMappings": [], + "propertyMappings": [] + } + } + ] + } + ] + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "additionalType" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - organizationTypes - organizationTypes" + }, + "valueType": { + "type": "literal" + } + } + ] + } + ] + }, + { + "subject": { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - id" + }, + "transformation": { + "language": "prefix", + "expression": "sp_venue" + } + }, + "typeMappings": [ + { + "valueSource": { + "source": "constant", + "constant": "Place" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + } + ], + "propertyMappings": [ + { + "property": { + "valueSource": { + "source": "constant", + "constant": "name" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - name" + }, + "valueType": { + "type": "language_literal", + "language": { + "valueSource": { + "source": "constant", + "constant": "fr" + } + } + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "description" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - description" + }, + "valueType": { + "type": "language_literal", + "language": { + "valueSource": { + "source": "constant", + "constant": "fr" + } + } + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "email" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - email" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "identifier" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - wikidataId" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "image" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - photo" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "maximumAttendeeCapacity" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - configurations - _ - capacity" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "sameAs" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - artsdataUri" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "telephone" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - phone" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "url" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - website" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "address" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - address1" + }, + "valueType": { + "type": "unique_bnode", + "typeMappings": [ + { + "valueSource": { + "source": "constant", + "constant": "PostalAddress" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + } + ], + "propertyMappings": [ + { + "property": { + "valueSource": { + "source": "constant", + "constant": "streetAddress" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - address1" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "addressCountry" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - country" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "postalCode" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - zipCode" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": "addressLocality" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - city" + }, + "valueType": { + "type": "literal" + } + } + ] + }, + { + "property": { + "valueSource": { + "source": "constant", + "constant": " addressRegion" + }, + "transformation": { + "language": "prefix", + "expression": "schema" + } + }, + "values": [ + { + "valueSource": { + "source": "column", + "columnName": "_ - diffusers - _ - venues - _ - otherState" + }, + "valueType": { + "type": "literal" + } + } + ] + } + ] + } + } + ] + } + ] + } + ] + }, + "description": "Save RDF Mapping" } ] } \ No newline at end of file