Swirrl / ons-data-export

Temporary repo to keep track of the extraction of data between the PMD3 backed alpha for the COGS project, and the PMD4 staging server.
0 stars 0 forks source link

data fix: multiple labels on dimensions #12

Closed jennet closed 4 years ago

jennet commented 4 years ago

Additional labels for dimensions were imported as part of the data pulled from the alpha:

?dim ?lbl
http://purl.org/linked-data/cube#measureType "Measure Type"@en
http://purl.org/linked-data/cube#measureType "measure type"@en
http://purl.org/linked-data/sdmx/2009/dimension#refPeriod "Period"@en
http://purl.org/linked-data/sdmx/2009/dimension#refPeriod "Reference Period"@en
http://gss-data.org.uk/def/dimension/flow "Flow"@en
http://gss-data.org.uk/def/dimension/flow "Flow"
http://gss-data.org.uk/def/dimension/trade-partner-geography "Trade Partner Geography"
http://gss-data.org.uk/def/dimension/trade-partner-geography "HMRC Partner Geography"@en
http://gss-data.org.uk/def/dimension/product "SITC 4"@en
http://gss-data.org.uk/def/dimension/product "Product"
http://gss-data.org.uk/def/dimension/trade-reporter-geography "Trade Reporter Geography"
http://gss-data.org.uk/def/dimension/trade-reporter-geography "HMRC Reporter Region"@en

As muttnik only supports a single label for dimensions, the temporary fix is to remove additional labels and go with the following:


@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://gss-data.org.uk/graph/components> {

    <http://purl.org/linked-data/sdmx/2009/dimension#refPeriod> rdfs:label "Reference Period"@en .

    <http://gss-data.org.uk/def/dimension/flow> rdfs:label "Flow"@en .

    <http://gss-data.org.uk/def/dimension/trade-partner-geography> rdfs:label "HMRC Partner Geography"@en .

    <http://gss-data.org.uk/def/dimension/product> rdfs:label "Product"@en .

    <http://gss-data.org.uk/def/dimension/trade-reporter-geography> rdfs:label "HMRC Reporter Region"@en .

}
jennet commented 4 years ago

These have had manual fixes on cogs-staging but will require further discussion, as each time additional data is pulled from ONS alpha, the problem is reintroduced

jennet commented 4 years ago

see issue #24