Files
zeekay f5aaeb712e Hanzo Graph — the engine, on zapdb, ZAP-native
Derived from Dgraph (github.com/dgraph-io/dgraph) at commit 64804bd2, Apache-2.0.
See NOTICE.

WHAT THIS IS. The graph engine as a Go library: posting lists, the DQL parser,
the type and tokenizer system, the index and schema layers, and the wire types.
39,170 lines of the upstream's 166,337.

THE STORE is github.com/luxfi/zapdb, a Badger fork that kept the package name,
the subpackages (options, pb, y) and the API — Open, OpenManaged, DB, Options —
so the 74 import sites are aliased rather than rewritten.

THE CODEC is ZAP. zapdb serializes with ZAP, not protobuf: its pb package builds
the ZAP types by default and the protobuf ones only under `-tags grpc`, a path
that does not compile (table/builder.go calls pb.Marshal, which that tag
removes). One call site in posting needed converting; every other type here is
Hanzo's own protobuf and is untouched.

NO TRANSPORT. An embedded engine dials nothing, so nothing here imports
google.golang.org/grpc. Removed: 20 transport functions in x, the generated
service stubs for Raft, Zero and Worker (1,657 lines), and the JWT helper —
identity belongs to IAM. The core called none of them.

NOT KEPT: worker, conn, raftwal, the cluster commands, the GraphQL layer and the
test harnesses. `query`, the DQL execution engine, went with them because it
depends on worker; parsing DQL is available here, executing it is not.

The history of the upstream project lives at github.com/dgraph-io/dgraph. This
repository begins at the derivation because three quarters of that history
describes code this fork does not carry.
2026-08-20 21:26:27 -07:00

104 lines
3.0 KiB
JSON

{
"type": "Feature",
"properties": {
"scalerank": 3,
"featurecla": "Admin-0 country",
"LABELRANK": 5.0,
"SOVEREIGNT": "Netherlands",
"SOV_A3": "NL1",
"ADM0_DIF": 1.0,
"LEVEL": 2.0,
"TYPE": "Country",
"ADMIN": "Aruba",
"ADM0_A3": "ABW",
"GEOU_DIF": 0.0,
"GEOUNIT": "Aruba",
"GU_A3": "ABW",
"SU_DIF": 0.0,
"SUBUNIT": "Aruba",
"SU_A3": "ABW",
"BRK_DIFF": 0.0,
"NAME": "Aruba",
"NAME_LONG": "Aruba",
"BRK_A3": "ABW",
"BRK_NAME": "Aruba",
"BRK_GROUP": null,
"ABBREV": "Aruba",
"POSTAL": "AW",
"FORMAL_EN": "Aruba",
"FORMAL_FR": null,
"NOTE_ADM0": "Neth.",
"NOTE_BRK": null,
"NAME_SORT": "Aruba",
"NAME_ALT": null,
"MAPCOLOR7": 4.0,
"MAPCOLOR8": 2.0,
"MAPCOLOR9": 2.0,
"MAPCOLOR13": 9.0,
"POP_EST": 103065.0,
"GDP_MD_EST": 2258.0,
"POP_YEAR": -99.0,
"LASTCENSUS": 2010.0,
"GDP_YEAR": -99.0,
"ECONOMY": "6. Developing region",
"INCOME_GRP": "2. High income: nonOECD",
"WIKIPEDIA": -99.0,
"FIPS_10_": "AA",
"ISO_A2": "AW",
"ISO_A3": "ABW",
"ISO_N3": "533",
"UN_A3": "533",
"WB_A2": "AW",
"WB_A3": "ABW",
"WOE_ID": 23424736.0,
"WOE_ID_EH": 23424736.0,
"WOE_NOTE": "Exact WOE match as country",
"ADM0_A3_IS": "ABW",
"ADM0_A3_US": "ABW",
"ADM0_A3_UN": -99.0,
"ADM0_A3_WB": -99.0,
"CONTINENT": "North America",
"REGION_UN": "Americas",
"SUBREGION": "Caribbean",
"REGION_WB": "Latin America & Caribbean",
"NAME_LEN": 5.0,
"LONG_LEN": 5.0,
"ABBREV_LEN": 5.0,
"TINY": 4.0,
"HOMEPART": -99.0
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-69.996937628999916, 12.577582098000036],
[-69.936390753999945, 12.531724351000051],
[-69.924672003999945, 12.519232489000046],
[-69.915760870999918, 12.497015692000076],
[-69.880197719999842, 12.453558661000045],
[-69.876820441999939, 12.427394924000097],
[-69.888091600999928, 12.417669989000046],
[-69.908802863999938, 12.417792059000107],
[-69.930531378999888, 12.425970770000035],
[-69.945139126999919, 12.44037506700009],
[-69.924672003999945, 12.44037506700009],
[-69.924672003999945, 12.447211005000014],
[-69.958566860999923, 12.463202216000099],
[-70.027658657999922, 12.522935289000088],
[-70.048085089999887, 12.531154690000079],
[-70.058094855999883, 12.537176825000088],
[-70.062408006999874, 12.546820380000057],
[-70.060373501999948, 12.556952216000113],
[-70.051096157999893, 12.574042059000064],
[-70.048736131999931, 12.583726304000024],
[-70.052642381999931, 12.600002346000053],
[-70.059641079999921, 12.614243882000054],
[-70.061105923999975, 12.625392971000068],
[-70.048736131999931, 12.632147528000104],
[-70.00715084499987, 12.5855166690001],
[-69.996937628999916, 12.577582098000036]
]
]
}
}