Project

General

Profile

Actions

Feature #267

open

DWDS should operate with a minimalist tabular format

Added by Joseph Potvin 7 months ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Start date:
09/17/2024
Due date:
% Done:

0%

Estimated time:

Description

Dave has recommended that DWDS internal data storage and operations employ a minimalist tabular data format which does not require all the special characters or idiosyncracies of JSON. Upon reflection Joseph realized that he had already removed non-essential JSON formatting from the Logic Gate and Lookup Table data structures, using the 'bar' character | as the separator. Dave suggests that we can retain the JSON format export for any users who want the output that way, but that we ought to eliminate JSON from our internal operations.

This issue will host discussion of this suggestion, and include illustrations for this DWDS 'minimum tabular formats'.

The JSON files would end in .json, whereas these DWDS files would end in .dwd

Actions #1

Updated by Joseph Potvin 7 months ago

  • Assignee changed from Joseph Potvin to Dave Thomas

Here is a suggested minimal tabular format for .dwd file. All I did was replace non-essential JSON, therefore this illustration does not yet use the SCPC format for the logic gate. Also some items to fix are shown in bold. Note the use of double hypens; also an explicit n/a when a field is empty. This is first assigned to Dave to ask if my suggestion below aligns to his recommendation.

|id|c6bd9808-e1a7-454b-88c8-8ce3df3890b5|
|uuid|c6bd9808-e1a7-454b-88c8-8ce3df3890b5| FIX: generate real UUID
|rule_id|c6bd9808-e1a7-454b-88c8-8ce3df3890b5|
|rulereserve_nodes||
|version_standard_url|https://semver.org/|
|dwds_schema_version|0.0.0|
|properties|
*
|id|c6bd9808-e1a7-454b-88c8-8ce3df3890b5|** THIS LINE IS UNNECESSARILY REPEATED
|metadata| FIX: Replace |metadata| with ||
|rule| FIX: Replace |rule| with |topic|
||120_title|General Agreement on Trade in Services; PtII: General Obligations & Disciplines ; ArtII: Most-Favoured-Nation Treatment|
||240_summary|1. Treat all service providers equally. 2. Exceptions are allowed with conditions. 3. Adjacent countries may provide treatment for local services in border areas.|
||960_explanation|The Most Favoured Nation (MFN) Treatment is a key principle of the General Agreement on Trade in Services (GATS), which requires countries to treat all members equally by offering the same favorable terms and conditions to all trading partners. This means that any benefits, such as reduced tariffs or market access granted to one member country, must be extended to all other members as well. The rationale behind the MFN Treatment is to promote fair and non-discriminatory trade practices, prevent trade wars, and encourage transparency in international trade agreements. By ensuring equal treatment for all members, the MFN Treatment aims to create a level playing field and promote healthy competition among countries, ultimately fostering economic growth and stability in the global market.|
|rule_group|international_law|
|version|n/a|
|criticality|experimental|
|url|https://www.wto.org/english/docs_e/legal_e/26-gats_01_e.htm#ArticleII|
|pattern|n/a|
|pattern_version|n/a|
|rulemaker_entity|
||name|World Trade Organization|
||url|https://www.wto.org/|
||uuid|520fd70e-1872-4af2-a3f6-45d8b3f3bc17|
|rulemaker_manager|
||name|Tsvetelina Georgieva Dimitrova|
||email|[email protected]|
||Contact|Chair, WTO Working Party on GATS Rules| FIX: Replace capital C with small c
||uuid|06fe7a61-d920-40b6-9bf6-65b89349a4fd|
|rulemaker_author|
||name|Joseph Potvin|
||email|[email protected]|
||Contact|+1-819-593-5983| FIX: Replace capital C with small c
||uuid|56feb1d1-1f4c-4c4c-9aed-74624c7bcb88|
|rulemaker_maintainer|
||name|Joseph Potvin|
||email|[email protected]|
||Contact|+1-819-593-5983| FIX: Replace capital C with small c
||uuid|e46ed9d4-cb5c-4ab7-8c11-2b4bb58ae144|
|in_effect|
|||Country|GB| FIX: Replace capital C with small c
||subcountry||

||other_jurisdiction|| FIX:
||timezone| FIX:
|||start|UTC-00:00| FIX:
|||end|UTC-00:00| FIX:
|||start|1994-12-30T05:00:01.000Z| FIX:
|||end|2045-12-29T05:00:01.000Z| FIX:

                                FIX: 
                                ||start_time
                                |||start_t_zone|UTC-00:00|
                                |||start_dt-hr-mn-sc|1994-12-30T05:00:01.000Z|
                                ||end_time
                                |||end_time_zone|UTC-00:00|
                                |||end__dt-hr-mn-sc|2045-12-29T05:00:01.000Z|

|category_applicable|
||industry|
||isic_code|8411|
||isic_name|8411 General public administration activities|
||good_service_asset|
||unspsc_code|93151608|
||unspsc_name|Government or central bank services|
|data_sources|n/a|
|input_conditions|
||sentence|
|||determiner|This|
|||noun|country jurisdiction|
|||past_participle_verb|as acknowledged|
|||predicate_verb|is|
|||attribute|a Member (signed, ratified, and in good standing)| FIX: Replace capital A with small a
|||description|of the General Agreement on Trade in Services (GATS).|
||scenarios|
|||A|00|
|||B|01|
|||C|01|
||sentence|
|||determiner|This|
|||noun|country jurisdiction|
|||past_participle_verb|as required|
|||predicate_verb|has provided |
|||attribute|formal notification to GATS members|
|||description|of specific exemptions or limitations to its commitments under the GATS.|
||scenarios|
|||A|00|
|||B|00|
|||C|01|
|output_assertions|
||sentence|
|||determiner|This|
|||noun|country jurisdiction|
|||past_participle_verb|as observed|
|||predicate_verb|is treating|
|||attribute|services and service suppliers of all GATS member countries|
|||description| as favorably as those from any GATS member country.|
||scenarios|
|||A|00|
|||B|01|
|||C|11|
||sentence|
|||determiner|This|
|||noun|country jurisdiction|
|||past_participle_verb|as notified|
|||predicate_verb|is treating|
|||attribute|services and service suppliers from one or more particular GATS member countries|
|||description|differently than every other GATS member country.|
||scenarios|
|||A|10|
|||B|00|
|||C|10|
||sentence|
|||determiner|This|
|||noun|country jurisdiction|
|||past_participle_verb|as provided in the GATS|
|||predicate_verb|treats|
|||attribute|services and service suppliers from adjacent GATS member countries|
|||description|differently than those from every other GATS member country.|
||scenarios|
|||A|10|
|||B|10|
|||C|10|
|lookup|
|output_weight|
||Character|68|
||enforcement|68|
||Consequences|50|
|output_characteristics|
||rulemaker_ruletaker_thirdparty|rule-taker|
||Affirmative_negative_interrogative|have| FIX: check location of these
||Be_do_have|do|
||declarative_imperative_empirical|declarative|
||logical_practical_ethical|practical|n/a| FIX: (what does the original file have here and in the next field?
||must_may_should|n/a|

Actions

Also available in: Atom PDF