Skip to content

Commit a548b59

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! [feature] building up the schema again from scratch acording the section 11,4,1 in the bitag report
1 parent 8eeae13 commit a548b59

3 files changed

Lines changed: 57 additions & 7 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
date_published,regulator_name,regulator_version_number,connection_type,fcc_registration_number,unique_plan_identifier,network_technology_type,provider_name,service_plan_name,bandwidth_download_units,bandwidth_download_marketed_low,bandwidth_download_marketed_high,bandwidth_download_typical_low,bandwidth_download_typical_high,bandwidth_upload_units,bandwidth_upload_marketed_low,bandwidth_upload_marketed_high,bandwidth_upload_typical_low,bandwidth_upload_typical_high,latency_idle_low,latency_idle_high,currency,price_type,price_details,price_recurring,fee_introductory,fee_introductory_description,contract_required,contract_details,contract_terms_uri,fee_one_time_amount,fee_one_time_details,fee_recurring,fee_recurring_description,fee_pass_through_recurring,fee_pass_through_recurring_description,fee_early_termination,fee_early_termination_description,government_taxes,policy_data_usage,fee_data_usage,fee_data_usage_description,uri_data_usage,restrictions_apply,restrictions_description,uri_policy_network_management,uri_policy_privacy,uri_customer_support,customer_support_phone,country_code
2-
2025-01-15,FCC,1,fixed,0005937974,F0005937974TIER1,50,Xfinity Internet,Extreme 500,Mbps,2,2,2,2,Mbps,2,2,2,2,2,2,USD,Pre-Paid,Requires activation of one new device.,100,10.32,only for new customers,No,Contract is 1 year.,https://example.com/contract-terms/internet/,29,Professional installation fee of $100 required.,," Monthly device rental."," $12.99"," Emergency services cost recovery fee",0," $100 charged if service is terminated before the end of one year.",Included,Yes,,,https://example.com/data-usage/internet/,Yes,Site survey required,https://example.com/network-management/internet/,https://example.com/privacy/internet/,https://example.com/support.html,18005551212,USA
3-
2025-11-02,,1,mobile,0003768165,F0005937974ABCD12341234,500,T-Mobile,Turbo 5G Plus,Mbps,75,75,75,75,Mbps,75,75,75,75,75,75,USD,Post-Paid,Price covers first 1 GB of data transferred. Data transfer billed at $1 per GB thereafter.,100,10.32,only for new customers,No,Valid for first 3 months.,https://example.com/internet-contract/,29.99,Shipping fee of $20 for sending equipment.,9,Cloud storage fee.,$10,State regulatory assessment fee,100,$25,Varies,Yes,1,$1 per GB after the first 1 TB.,https://example.com/datausagepolicies,Yes,Qualified for a low-income offering,https://example.com/networkpolicies,https://example.com/privacy-policies/,https://example.com/support/internet/,18885551212,CAN
1+
date_published,regulator_name,regulator_version_number,connection_type,fcc_registration_number,unique_plan_identifier,network_technology_type,provider_name,service_plan_name,bandwidth_download_units,bandwidth_download_marketed_low,bandwidth_download_marketed_high,bandwidth_download_typical_low,bandwidth_download_typical_high,bandwidth_upload_units,bandwidth_upload_marketed_low,bandwidth_upload_marketed_high,bandwidth_upload_typical_low,bandwidth_upload_typical_high,latency_idle_low,latency_idle_high,currency,price_type,price_details,price_recurring,fee_introductory,fee_introductory_description,contract_required,contract_details,contract_terms_uri,fee_one_time_amount,fee_one_time_details,fee_recurring,fee_recurring_description,fee_pass_through_recurring,fee_pass_through_recurring_description,fee_early_termination,fee_early_termination_description,government_taxes,policy_data_usage,fee_data_usage,fee_data_usage_description,uri_data_usage,restrictions_apply,restrictions_description,uri_policy_network_management,uri_policy_privacy,uri_customer_support,customer_support_phone,country_code,asn,uri_policy_additional_terms,language,digital_signature
2+
2025-01-15,FCC,1,fixed,0005937974,F0005937974TIER1,50,Xfinity Internet,Extreme 500,Mbps,2,2,2,2,Mbps,2,2,2,2,2,2,USD,Pre-Paid,Requires activation of one new device.,100,10.32,only for new customers,No,Contract is 1 year.,https://example.com/contract-terms/internet/,29,Professional installation fee of $100 required.,," Monthly device rental."," $12.99"," Emergency services cost recovery fee",0," $100 charged if service is terminated before the end of one year.",Included,Yes,,,https://example.com/data-usage/internet/,Yes,Site survey required,https://example.com/network-management/internet/,https://example.com/privacy/internet/,https://example.com/support.html,18005551212,USA,,,,
3+
2025-11-02,,1,mobile,0003768165,F0005937974ABCD12341234,500,T-Mobile,Turbo 5G Plus,Mbps,75,75,75,75,Mbps,75,75,75,75,75,75,USD,Post-Paid,Price covers first 1 GB of data transferred. Data transfer billed at $1 per GB thereafter.,100,10.32,only for new customers,No,Valid for first 3 months.,https://example.com/internet-contract/,29.99,Shipping fee of $20 for sending equipment.,9,Cloud storage fee.,$10,State regulatory assessment fee,100,$25,Varies,Yes,1,$1 per GB after the first 1 TB.,https://example.com/datausagepolicies,Yes,Qualified for a low-income offering,https://example.com/networkpolicies,https://example.com/privacy-policies/,https://example.com/support/internet/,18885551212,CAN,,,,
44
2025-06-06,FCC,99,satellite,0005937974,F0005937974ABCDEFGHIJ12345,500,Google Fiber,Fiber 2G,Gbps,500,500,500,500,Gbps,500,500,500,500,500,500,USD,Volume-Based,For new customers only.,100,10.32,only for new customers,Yes,"Contract must be digitally signed within 7 days of
55
installation.",https://example.com/legal/terms/contracts.html,399.00,"$10
66
device provisioning fee.
@@ -9,5 +9,5 @@ Street USA;Local franchise fee for Gotham City
99
",9.99,"$10 for every month
1010
remaining in contract term.",Not Applicable,No,,"No fee but bitrates are reduced to 100 Mbps after 10 GB of
1111
usage.",https://example.com/data-usage.html,No,"Mobile service only available to existing
12-
customers of wireline service",https://example.com/network-management.html,https://example.com/privacypolicy.html,https://example.com/support,12675551212,JPN
13-
2025-06-06,FCC,,something,,,0,randomeValue,,kbps,1,1,1,1,kbps,1,1,1,1,1,1,USD,Other,Requires activation of one new device.,100,10.32,only for new customers,No,,,,,12.99,,,,0,,Included,No,143.32,$2 per GB during peak times and $1 per GB during off-peak times.,,Yes,,,,,,
12+
customers of wireline service",https://example.com/network-management.html,https://example.com/privacypolicy.html,https://example.com/support,12675551212,JPN,,,,
13+
2025-06-06,FCC,,something,,,0,randomeValue,,kbps,1,1,1,1,kbps,1,1,1,1,1,1,USD,Other,Requires activation of one new device.,100,10.32,only for new customers,No,,,,,12.99,,,,0,,Included,No,143.32,$2 per GB during peak times and $1 per GB during off-peak times.,,Yes,,,,,,,,,,

src/main/resources/schemas/schema.csvs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version 1.1
2-
@totalColumns 50
2+
@totalColumns 54
33
date_published: xDate
44
regulator_name: empty or upperCase
55
regulator_version_number: empty or range(1, 99)
@@ -50,3 +50,7 @@ uri_policy_privacy: empty or uri
5050
uri_customer_support: empty or uri
5151
customer_support_phone: empty or regex("^[0-9]{7,15}$") // TODO: min length for phone number is 7
5252
country_code: empty or regex("^[A-Z]{3}$") @optional
53+
asn: empty or length(0,4294967295) @optional
54+
uri_policy_additional_terms: empty or uri @optional
55+
language: empty or length(3) @optional
56+
digital_signature: empty or length(0, 500) @optional

src/main/resources/schemas/schema_specs

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,4 +555,50 @@ than the two-letter code. For example, the United States of America is USA and C
555555
This field MUST be in the file and MAY be populated.
556556
Name: country_code
557557
Format/Type: string, length(3)
558-
Examples: USA, CAN, JPN
558+
Examples: USA, CAN, JPN
559+
560+
51. Autonomous System Number (ASN).
561+
It may be useful to include a provider’s ASN in the file. One example of this may be that a researcher is
562+
collecting network measurements using source IP address, which can be used to identify the ASN, or ASN is
563+
part of the collected data (such as related to the Border Gateway Protocol, BGP, for routing security to see
564+
if a Route Object Authorization, ROA, was issued), making it easy for a researcher to find labels based on
565+
the ASN or to combine label files with their data.
566+
A complicating factor can be that some ISPs have several ASNs, though often these aggregate up into one
567+
primary ASN. In other cases, small ISPs may not have their own ASN and thus may be using the ASN of
568+
their upstream provider. For these reasons, this field is considered optional. Thus, if the ISP does not have
569+
their own ASN, it SHOULD be left empty. If an ISP has multiple ASNs, then the primary or aggregate ASN
570+
SHOULD be used, or this field MAY be left empty.
571+
ASN as maintained by the Internet Assigned Numbers Authority (IANA). [46] In North America, these
572+
are issued by the American Registry for Internet Numbers (ARIN). [47] For US ISPs, the ARIN ASN list
573+
shall be used. [48] Until 2007, ASN were defined as 16-bit integers, which allowed for a maximum of 65,536
574+
assignments. But the IANA is now assigning 32-bit ASNs up to 4,294,967,295. As a result this field will be
575+
numeric and limited to 10 digits in length.
576+
This field MUST be in the file and MAY be populated.
577+
Name: asn
578+
Format/Type: string, length(0,4294967295)
579+
Examples: 7922, 14593, 701
580+
581+
582+
52. Additional Terms Uniform Resource Indicator (URI).
583+
This is the URI for any additional terms and/or policies that may apply to a specific BIAS offering. If
584+
nothing applies, this field should be left empty. If multiple policies apply, then URIs MUST be separated by
585+
a semi-colon.
586+
This field MUST be in the file and MAY be populated.
587+
Name: uri_policy_additional_terms
588+
Type/Format: identifier, uri
589+
Examples: https://www.example.com/terms-of-service/, https://www.example.com/terms/;https://www.example.com/abuse/https://www.example.com/anti-abuse/
590+
591+
53. Language.
592+
This field can optionally specify the language used in the machine-readable file. The default language shall
593+
be English. This field will use the ISO 639-3 format [49], which is a three letter format
594+
This field MUST be in the file and MAY be populated.
595+
Name: language
596+
Type/Format: string, length(3)
597+
Examples: JPN, DEU, ITA
598+
599+
54. Digital Signature.
600+
If, in the future, labels are individually cryptographically signed by providers, the signature string can be
601+
inserted into this field.
602+
Name: digital_signature
603+
Type/Format: string
604+
Examples: None at this time

0 commit comments

Comments
 (0)