diff --git a/4_invalid_examples.csv b/4_invalid_examples.csv new file mode 100644 index 0000000000000000000000000000000000000000..2b32fde25c5f450c51364eb045aa4da64af96f60 --- /dev/null +++ b/4_invalid_examples.csv @@ -0,0 +1,5 @@ +ID;example_point +1;{"type": "Point","coordinates": [30.0, 10.0] +2;{"type": "Point","coordinates": [30.0, abc]} +3;{"type": "ausdenkli","coordinates": [30, 20.0]} +4;{"type": "Point","coordinates": [30.0, ]} \ No newline at end of file diff --git a/4_valid_examples.csv b/4_valid_examples.csv index ee43c92a94b9cb93f29bcf8d5939670a7c0e7f94..5dfcf63e72b8b8efb2a92c95f72948c3a3fe2fa8 100644 --- a/4_valid_examples.csv +++ b/4_valid_examples.csv @@ -1,6 +1,5 @@ -Kreis Gemeinde Anlage Leistung Nabenhöhe Rotordurchmesser AN_RW AN_HW Status -Ostholstein Schönwalde am Bungsberg 0001 - 1 WKA Siemens SWT.3.0-113 - 3,0 MW 3000 kW Nennleist. Rotor. 92,5 113 32616585 6005019 vor Inbetriebnahme -Kiel Kiel 0001 - WKA 1 Nordex N131 3000 kW Nennleist. Rotor. 134 131 32571605 6013660 im Gen.Verf. -Dithmarschen Albersdorf 0006 - WKA 6 Vestas V 112 3.3 MW G10/2014/016 3300 kW Nennleist. Rotor. 94 112 32516771 5998370 in Betrieb -Dithmarschen Friedrichskoog 0006 - WKA 6 G10/2017/024 Enercon E92 TES 2350 kW Nennleist. Rotor. 103,9 92 32495906 5985254 im Gen.Verf. -Dithmarschen Wöhrden 0002 - WKA Nordex N131/3600 3600 kW Nennleist. Rotor. 32496854 6001866 im Gen.Verf. \ No newline at end of file +ID;example_point +1;{"type": "Point","coordinates": [30.0, 10.0]} +2;{"type": "Point","coordinates": [30.0, 15.0]} +3;{"type": "Point","coordinates": [30.0, 20.0]} +4;{"type": "Point","coordinates": [30.0, 25.0]} \ No newline at end of file diff --git a/schema.json b/schema.json index 0f3c7bcc5f3d8f8410b61a5ded10468f5951506e..1d1a63de5ecebc4e2e12bda7472446f22d264347 100644 --- a/schema.json +++ b/schema.json @@ -1,155 +1,32 @@ { - "$schema": "https://specs.frictionlessdata.io/schemas/table-schema.json", - "name": "nitratmessdienst_schleswig-holstein", - "title": "Nitratmessdienst Schleswig-Holstein", - "description": "Daten des Nitratmessdienstes Schleswig-Holsteins basierend auf Beprobungen von Praxisflächen sowie Versuchsflächen der Landwirtschaftskammer Schleswig-Holsteins", - "countryCode": "DE", - "path": "https://opendata.schleswig-holstein.de/schema/nmd-sh.json", - "created": "2023-12-28", - "lastModified": "2024-02-26", - "version": "0.2.0", - "contributors": [ - { - "title": "Dr. Jesper Zedlitz", - "email": "jesper.zedlitz@stk.landsh.de", - "organisation": "Staatskanzlei Schleswig-Holstein", - "role": "author" - } - ], - "fields": [ - { - "name": "Region_ID", - "type": "integer" - }, - { - "name": "Messung_ID", - "type": "integer" - }, - { - "name": "NMD_ID", - "type": "integer", - "constraints": { - "minimum": 1, - "maximum": 2 - } - }, - { - "name": "Region", - "type": "string", - "constraints": { - "enum": [ - "Marsch", - "Östliches Hügelland", - "Geest", - "Östliches Hügelland südlicher Teil", - "Östliches Hügelland nördlicher Teil", - "Östliches Hügelland mittlerer Teil" - ] - } - }, - { - "name": "Datum", - "type": "date", - "format": "%d.%m.%Y" - }, - { - "name": "Kulturart", - "type": "string", - "constraints": { - "enum": [ - "Spelzweizen", - "Winterfutterbsen", - "Kleegras", - "Gemüse", - "Grassamenvermehrung", - "Ackergras", - "Winterroggen", - "Winterweizen", - "Sommerung", - "Zwischenfrucht", - "Winterraps", - "Wintertriticale", - "Wintergerste", - "Kohl" - ] - } - }, - { - "name": "Vorfrucht", - "type": "string", - "constraints": { - "enum": [ - "Ackerbohne", - "Rüben", - "Mais/Stangenbohnen", - "Grassamenvermehrung", - "Spelzweizen", - "Ackergras", - "Kartoffeln", - "Körnermais", - "Stangenbohnen", - "Zwischenfrucht", - "Silomais", - "Sommergerste", - "Winterroggen", - "Zuckerrüben", - "Kohl", - "Winterraps", - "Wintergerste", - "Wintertriticale", - "Winterweizen", - "Ackerbohnen", - "Hafer", - "Kleegras", - "Sommerweizen", - "Weizen/Erbse", - "Gemüse" - ] - } - }, - { - "name": "Bodenart", - "type": "string", - "constraints": { - "enum": [ - "uL", - "tL", - "S", - "l'S", - "sL", - "lS" - ] - } - }, - { - "name": "Nmin [kg/ha] 0 - 30 cm", - "type": "integer", - "unit": "kg/har" - }, - { - "name": "Nmin [kg/ha] 30 - 60 cm", - "type": "integer", - "unit": "kg/har" - }, - { - "name": "Nmin [kg/ha] 60 - 90 cm", - "type": "integer", - "unit": "kg/har" - }, - { - "name": "Nmin [kg/ha] 0 - 90 cm", - "type": "integer", - "unit": "kg/har" - }, - { - "name": "Ökolandbau", - "type": "boolean", - "trueValues": [ - "ja" - ], - "falseValues": [ - "nein" - ] - } - ] + "name": "odsh_infrastruktur_geojson_test", + "title": "ODSH Infrastruktur GeoJSON Test", + "description": "Schema Test with GeoJSON objects", + "fields": [ + { + "name": "ID", + "type": "integer" + }, + { + "name": "example_point", + "type": "geojson" + } + ], + "primaryKey": [ + "ID" + ], + "$schema": "https://specs.frictionlessdata.io/schemas/table-schema.json", + "countryCode": "DE", + "path": "https://code.schleswig-holstein.de/api/v4/projects/108/repository/files/schema.json/raw/?ref=0.1.0", + "created": "2024-03-04", + "lastModified": "2024-03-04", + "version": "0.1.0", + "contributors": [ + { + "title": "Jan Dolling", + "email": "jan-karsten.dolling@dataport.de", + "organisation": "Dataport AöR", + "role": "author" + } + ] } \ No newline at end of file