diff --git a/.github/workflows/scenepro-entities.yml b/.github/workflows/scenepro-entities.yml index 96fb7e9..0146d14 100644 --- a/.github/workflows/scenepro-entities.yml +++ b/.github/workflows/scenepro-entities.yml @@ -31,17 +31,13 @@ jobs: run: | curl 'https://raw.githubusercontent.com/culturecreates/artsdata-planet-scenepro/main/ontorefine/mapping.json' >> mapping.json - - name: Cat mapping file - run: | - cat mapping.json - - name: Transform entities in JSON to RDF id: step-5 run: | /opt/ontorefine/dist/bin/ontorefine-cli \ transform entities.json \ -u http://localhost:7333 \ - --configurations mapping.json \ + --configurations config.json \ -f json >> scenepro-entities.ttl - name: Commit changes to GitHub diff --git a/ontorefine/config.json b/ontorefine/config.json new file mode 100644 index 0000000..7206abd --- /dev/null +++ b/ontorefine/config.json @@ -0,0 +1,862 @@ +{ + "importOptions": [ + { + "recordPath": [ + "_" + ], + "limit": -1, + "trimStrings": false, + "guessCellValueTypes": false, + "storeEmptyStrings": true, + "includeFileSources": false, + "includeArchiveFileName": false, + "disableAutoPreview": true, + "projectName": "scenepro_full", + "projectTags": [], + "fileSource": "scenepro.json", + "archiveFileName": null + } + ], + "operations": [ + { + "op": "core/fill-down", + "engineConfig": { + "facets": [], + "mode": "record-based" + }, + "columnName": "_ - diffusers - _ - id", + "description": "Fill down cells in column _ - diffusers - _ - id" + }, + { + "op": "core/fill-down", + "engineConfig": { + "facets": [], + "mode": "record-based" + }, + "columnName": "_ - diffusers - _ - id", + "description": "Fill down cells in column _ - diffusers - _ - id" + }, + { + "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": "http://schema.org/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": "column", + "columnName": "_ - diffusers - _ - phone" + }, + "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": "column", + "columnName": "_ - diffusers - _ - address1" + }, + "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" + } + } + ] + } + ] + }, + { + "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 diff --git a/ontorefine/mapping.json b/ontorefine/mapping.json deleted file mode 100644 index 2dabcdf..0000000 --- a/ontorefine/mapping.json +++ /dev/null @@ -1,818 +0,0 @@ -{ - "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": "http://schema.org/venue" - }, - "subjectMappings": [ - { - "propertyMappings": [ - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "name" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - name", - "source": "column" - }, - "valueType": { - "type": "language_literal", - "language": { - "valueSource": { - "source": "constant", - "constant": "fr" - } - } - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "description" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - description", - "source": "column" - }, - "valueType": { - "type": "language_literal", - "language": { - "valueSource": { - "source": "constant", - "constant": "fr" - } - } - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "telephone" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - phone", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "email" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - email", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "url" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - website", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": " logo" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - logo", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "identifier" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - wikidataId", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "foundingDate" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - dateFoundation", - "source": "column" - }, - "valueType": { - "type": "datatype_literal", - "datatype": { - "transformation": { - "expression": "xsd", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "dateTime" - } - } - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "address" - } - }, - "values": [ - { - "transformation": { - "language": "raw" - }, - "valueSource": { - "columnName": "_ - diffusers - _ - address1", - "source": "column" - }, - "valueType": { - "propertyMappings": [ - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "streetAddress" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - address1", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "addressCountry" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - country", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "postalCode" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - zipCode", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "addressLocality" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - city", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "addressRegion" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - otherState", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - } - ], - "type": "unique_bnode", - "typeMappings": [ - { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "PostalAddress" - } - } - ] - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "sameAs" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - socialMediaAccounts - socialMediaAccounts", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - } - ], - "subject": { - "transformation": { - "expression": "sp_org", - "language": "prefix" - }, - "valueSource": { - "columnName": "_ - diffusers - _ - id", - "source": "column" - } - }, - "typeMappings": [ - { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "Organization" - } - } - ] - }, - { - "propertyMappings": [ - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "name" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - name", - "source": "column" - }, - "valueType": { - "type": "language_literal", - "language": { - "valueSource": { - "source": "constant", - "constant": "fr" - } - } - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "description" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - description", - "source": "column" - }, - "valueType": { - "type": "language_literal", - "language": { - "valueSource": { - "source": "constant", - "constant": "fr" - } - } - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "email" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - email", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "identifier" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - wikidataId", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "image" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - photo", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "maximumAttendeeCapacity" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - configurations - _ - capacity", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "sameAs" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - artsdataUri", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "telephone" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - phone", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "url" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - website", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "address" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - address1", - "source": "column" - }, - "valueType": { - "propertyMappings": [ - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "streetAddress" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - address1", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "addressCountry" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - country", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "postalCode" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - zipCode", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "addressLocality" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - city", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - }, - { - "property": { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": " addressRegion" - } - }, - "values": [ - { - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - otherState", - "source": "column" - }, - "valueType": { - "type": "literal" - } - } - ] - } - ], - "type": "unique_bnode", - "typeMappings": [ - { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "PostalAddress" - } - } - ] - } - } - ] - } - ], - "subject": { - "transformation": { - "expression": "sp_venue", - "language": "prefix" - }, - "valueSource": { - "columnName": "_ - diffusers - _ - venues - _ - id", - "source": "column" - } - }, - "typeMappings": [ - { - "transformation": { - "expression": "schema", - "language": "prefix" - }, - "valueSource": { - "source": "constant", - "constant": "Place" - } - } - ] - } - ] -} \ No newline at end of file