Skip to content

Commit

Permalink
Merge branch '11-bug-fix' of github.com:GSS-Cogs/csv-to-csvw-action i…
Browse files Browse the repository at this point in the history
…nto 11-bug-fix
  • Loading branch information
CharlesRendle committed May 26, 2023
2 parents 526d31b + d49eda1 commit b59ac40
Show file tree
Hide file tree
Showing 7 changed files with 584 additions and 0 deletions.
6 changes: 6 additions & 0 deletions out/csv_without_config/csv-without-config.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Dimension,Value,Measure,Unit
a,0.0,length,cm
b,1.0,length,cm
c,2.0,length,cm
d,3.0,length,cm
e,4.0,length,cm
352 changes: 352 additions & 0 deletions out/csv_without_config/csv-without-config.csv-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,352 @@
{
"@context": "http://www.w3.org/ns/csvw",
"@id": "csv-without-config.csv#dataset",
"tables": [
{
"url": "csv-without-config.csv",
"tableSchema": {
"columns": [
{
"titles": "Dimension",
"name": "dimension",
"propertyUrl": "csv-without-config.csv#dimension/dimension",
"valueUrl": "dimension.csv#{+dimension}",
"required": true
},
{
"titles": "Value",
"name": "value",
"propertyUrl": "csv-without-config.csv#measure/{+measure}",
"datatype": "decimal",
"required": true
},
{
"titles": "Measure",
"name": "measure",
"propertyUrl": "http://purl.org/linked-data/cube#measureType",
"valueUrl": "csv-without-config.csv#measure/{+measure}",
"required": true
},
{
"titles": "Unit",
"name": "unit",
"propertyUrl": "http://purl.org/linked-data/sdmx/2009/attribute#unitMeasure",
"valueUrl": "csv-without-config.csv#unit/{+unit}",
"required": true
},
{
"name": "virt_type",
"virtual": true,
"propertyUrl": "rdf:type",
"valueUrl": "http://purl.org/linked-data/cube#Observation"
},
{
"name": "virt_dataset",
"virtual": true,
"propertyUrl": "http://purl.org/linked-data/cube#dataSet",
"valueUrl": "csv-without-config.csv#dataset"
}
],
"foreignKeys": [
{
"columnReference": "dimension",
"reference": {
"resource": "dimension.csv",
"columnReference": "uri_identifier"
}
}
],
"primaryKey": [
"dimension",
"measure"
],
"aboutUrl": "csv-without-config.csv#obs/{dimension}@{measure}"
}
},
{
"url": "dimension.csv",
"tableSchema": "dimension.table.json",
"suppressOutput": true
}
],
"rdfs:seeAlso": [
{
"@id": "csv-without-config.csv#component/dimension",
"@type": [
"http://purl.org/linked-data/cube#ComponentSet",
"http://purl.org/linked-data/cube#ComponentSpecification",
"http://www.w3.org/2000/01/rdf-schema#Resource"
],
"http://purl.org/linked-data/cube#componentProperty": [
{
"@id": "csv-without-config.csv#dimension/dimension"
}
],
"http://purl.org/linked-data/cube#dimension": [
{
"@id": "csv-without-config.csv#dimension/dimension"
}
],
"http://purl.org/linked-data/cube#order": [
{
"@value": 1
}
]
},
{
"@id": "csv-without-config.csv#measure/length",
"@type": [
"http://www.w3.org/1999/02/22-rdf-syntax-ns#Property",
"http://purl.org/linked-data/cube#ComponentProperty",
"http://purl.org/linked-data/cube#MeasureProperty",
"http://www.w3.org/2000/01/rdf-schema#Resource"
],
"http://www.w3.org/2000/01/rdf-schema#label": [
{
"@language": "en",
"@value": "Length"
}
],
"http://www.w3.org/2000/01/rdf-schema#range": [
{
"@id": "http://www.w3.org/2001/XMLSchema#decimal"
}
]
},
{
"@id": "csv-without-config.csv#class/dimension",
"@type": [
"http://www.w3.org/2000/01/rdf-schema#Class",
"http://www.w3.org/2000/01/rdf-schema#Resource"
]
},
{
"@id": "csv-without-config.csv#structure",
"@type": [
"http://purl.org/linked-data/cube#DataStructureDefinition",
"http://purl.org/linked-data/cube#ComponentSet",
"http://www.w3.org/2000/01/rdf-schema#Resource"
],
"http://purl.org/linked-data/cube#component": [
{
"@id": "csv-without-config.csv#component/length"
},
{
"@id": "csv-without-config.csv#component/unit"
},
{
"@id": "csv-without-config.csv#component/measure-type"
},
{
"@id": "csv-without-config.csv#component/dimension"
}
],
"http://purl.org/linked-data/cube#componentProperty": [
{
"@id": "csv-without-config.csv#dimension/dimension"
},
{
"@id": "http://purl.org/linked-data/cube#measureType"
},
{
"@id": "csv-without-config.csv#measure/length"
},
{
"@id": "http://purl.org/linked-data/sdmx/2009/attribute#unitMeasure"
}
]
},
{
"@id": "csv-without-config.csv#component/unit",
"@type": [
"http://purl.org/linked-data/cube#ComponentSet",
"http://purl.org/linked-data/cube#ComponentSpecification",
"http://www.w3.org/2000/01/rdf-schema#Resource"
],
"http://purl.org/linked-data/cube#attribute": [
{
"@id": "http://purl.org/linked-data/sdmx/2009/attribute#unitMeasure"
}
],
"http://purl.org/linked-data/cube#componentProperty": [
{
"@id": "http://purl.org/linked-data/sdmx/2009/attribute#unitMeasure"
}
],
"http://purl.org/linked-data/cube#componentRequired": [
{
"@value": true
}
],
"http://purl.org/linked-data/cube#order": [
{
"@value": 4
}
]
},
{
"@id": "csv-without-config.csv#component/measure-type",
"@type": [
"http://purl.org/linked-data/cube#ComponentSet",
"http://purl.org/linked-data/cube#ComponentSpecification",
"http://www.w3.org/2000/01/rdf-schema#Resource"
],
"http://purl.org/linked-data/cube#componentProperty": [
{
"@id": "http://purl.org/linked-data/cube#measureType"
}
],
"http://purl.org/linked-data/cube#dimension": [
{
"@id": "http://purl.org/linked-data/cube#measureType"
}
],
"http://purl.org/linked-data/cube#order": [
{
"@value": 2
}
]
},
{
"@id": "csv-without-config.csv#dimension/dimension",
"@type": [
"http://www.w3.org/1999/02/22-rdf-syntax-ns#Property",
"http://purl.org/linked-data/cube#ComponentProperty",
"http://purl.org/linked-data/cube#DimensionProperty",
"http://www.w3.org/2000/01/rdf-schema#Resource",
"http://purl.org/linked-data/cube#CodedProperty"
],
"http://purl.org/linked-data/cube#codeList": [
{
"@id": "dimension.csv#code-list"
}
],
"http://www.w3.org/2000/01/rdf-schema#label": [
{
"@language": "en",
"@value": "Dimension"
}
],
"http://www.w3.org/2000/01/rdf-schema#range": [
{
"@id": "csv-without-config.csv#class/dimension"
}
]
},
{
"@id": "csv-without-config.csv#csvcubed-build-activity",
"@type": [
"http://www.w3.org/ns/prov#Activity",
"http://www.w3.org/2000/01/rdf-schema#Resource"
],
"http://www.w3.org/ns/prov#used": [
{
"@id": "https://github.com/GSS-Cogs/csvcubed/releases/tag/v0.4.2"
}
]
},
{
"@id": "csv-without-config.csv#component/length",
"@type": [
"http://purl.org/linked-data/cube#ComponentSet",
"http://purl.org/linked-data/cube#ComponentSpecification",
"http://www.w3.org/2000/01/rdf-schema#Resource"
],
"http://purl.org/linked-data/cube#componentProperty": [
{
"@id": "csv-without-config.csv#measure/length"
}
],
"http://purl.org/linked-data/cube#measure": [
{
"@id": "csv-without-config.csv#measure/length"
}
],
"http://purl.org/linked-data/cube#order": [
{
"@value": 3
}
]
},
{
"@id": "csv-without-config.csv#dataset",
"@type": [
"http://purl.org/linked-data/cube#DataSet",
"http://www.w3.org/2000/01/rdf-schema#Resource",
"http://purl.org/linked-data/cube#Attachable",
"http://www.w3.org/ns/dcat#Dataset",
"http://www.w3.org/ns/dcat#Resource"
],
"http://purl.org/dc/terms/identifier": [
{
"@value": "Csv Without Config"
}
],
"http://purl.org/dc/terms/issued": [
{
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
"@value": "2023-05-26T10:06:39.887338"
}
],
"http://purl.org/dc/terms/modified": [
{
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
"@value": "2023-05-26T10:06:39.887338"
}
],
"http://purl.org/dc/terms/title": [
{
"@language": "en",
"@value": "Csv Without Config"
}
],
"http://purl.org/linked-data/cube#structure": [
{
"@id": "csv-without-config.csv#structure"
}
],
"http://www.w3.org/2000/01/rdf-schema#label": [
{
"@language": "en",
"@value": "Csv Without Config"
}
],
"http://www.w3.org/ns/prov#wasGeneratedBy": [
{
"@id": "csv-without-config.csv#csvcubed-build-activity"
}
]
},
{
"@id": "csv-without-config.csv#dependency/dimension",
"@type": [
"http://rdfs.org/ns/void#Dataset",
"http://www.w3.org/2000/01/rdf-schema#Resource"
],
"http://rdfs.org/ns/void#dataDump": [
{
"@id": "./dimension.csv-metadata.json"
}
],
"http://rdfs.org/ns/void#uriSpace": [
{
"@value": "dimension.csv#"
}
]
},
{
"@id": "csv-without-config.csv#unit/cm",
"@type": [
"http://www.ontology-of-units-of-measure.org/resource/om-2/Unit",
"http://www.w3.org/2000/01/rdf-schema#Resource",
"http://qudt.org/schema/qudt/Unit"
],
"http://www.w3.org/2000/01/rdf-schema#label": [
{
"@language": "en",
"@value": "cm"
}
]
}
]
}

0 comments on commit b59ac40

Please sign in to comment.