{ "schema_version": "country-laws-ir-graphrag/v1", "layout_family": "skillcenter-huggingface-release/v3", "packager_version": "0.3.0", "primary_key": "entry_cid", "dataset_id": "endomorphosis/ipfs_nigeria_laws", "dataset_repo_id": "justicedao/ipfs_nigeria_laws_ir", "dataset_revision": "acc86f29d874b290d119679da56f78bc9cadcbbc", "country": { "slug": "nigeria", "repo": "endomorphosis/ipfs_nigeria_laws", "name": "Nigeria", "indexable": true }, "disclaimer": "Research snapshot. Not legal advice. The official gazette / authentic source prevails.", "bm25": { "k1": 1.2, "b": 0.75, "title_weight": 5.0, "body_weight": 1.0, "average_document_length": 243.84936479128856, "tokenizer": "fts5-unicode61-remove-diacritics-2-python/v1", "max_query_terms": 64, "posting_rows_per_record": 4096, "terms_per_shard": 4096 }, "counts": { "bm25_document_chunks": 3, "bm25_documents": 11020, "bm25_keyword_shards": 19, "bm25_posting_rows": 76922, "bm25_postings": 778191, "bm25_terms": 76907, "corpus_chunks": 3, "corpus_rows": 11020, "graph_edge_chunks": 36, "graph_edges": 144378, "graph_incoming_adjacency_edges": 144378, "graph_incoming_adjacency_rows": 9966, "graph_incoming_adjacency_shards": 3, "graph_node_chunks": 3, "graph_nodes": 11987, "graph_outgoing_adjacency_edges": 144378, "graph_outgoing_adjacency_rows": 11020, "graph_outgoing_adjacency_shards": 3, "vector_chunks": 3, "vector_rows": 11020, "n_laws": 0, "n_articles": 11020 }, "parquet": { "compression": "zstd", "compression_level": 6, "max_rows_per_file": 4096, "row_group_size": 4096 }, "graph": { "adjacency_pointers_per_row": 4096, "adjacency_pointers_per_shard": 8192, "directions": [ "incoming", "outgoing" ], "max_remote_walk_depth": 8, "ordering": "score_desc_nulls_last", "edge_types": [ "ARTICLE_OF", "BM25_NEIGHBOR_OF", "HAS_INSTRUMENT", "HAS_JURISDICTION", "HAS_LANGUAGE", "HAS_SOURCE", "HAS_STATUS", "IDENTIFIED_BY" ] }, "vector": { "model_name": "thenlper/gte-small", "dimension": 384, "similarity": "cosine", "assignment": "recursive_spherical_kmeans", "layout": "semantic_centroid_groups", "rows_sorted_by": "cosine_similarity_to_shard_centroid_desc", "max_rows_per_chunk": 4096, "max_rows_per_centroid": 8192, "max_shards_per_centroid": 2, "default_probe_centroids": 3, "centroid_count": 3, "shard_count": 3, "n_vectors": 11020, "status": "embedded" }, "canonical_fields": [ "entry_cid", "law_cid", "record_type", "jurisdiction", "language", "instrument_id", "instrument_title", "article_number", "article_title", "title", "body", "source_url", "snapshot_date", "coverage", "license", "collector", "source_dataset", "source_revision" ], "input_sha256": { "laws.parquet": "033810ad0ac34fd3880c3f9ce87491a0de2cdd8a43d95cae4a03d5cf0a09812f", "articles.parquet": "5e120845f8532f932c8b59049a10b959fe3e0b33718886dc172d470a78652c82" }, "model_id": "thenlper/gte-small", "cid": { "codec": "raw", "hash": "sha2-256", "multibase": "base32", "payload": "json.dumps(obj, sort_keys=True, ensure_ascii=False, separators=(',', ':')).encode('utf-8')" }, "normalization": { "source_dataset": "endomorphosis/ipfs_nigeria_laws", "source_revision": "acc86f29d874b290d119679da56f78bc9cadcbbc", "laws_sha256": "033810ad0ac34fd3880c3f9ce87491a0de2cdd8a43d95cae4a03d5cf0a09812f", "articles_sha256": "5e120845f8532f932c8b59049a10b959fe3e0b33718886dc172d470a78652c82", "n_laws_in": 362, "n_articles_in": 11021, "unit": "article", "article_law_coverage": 30.444751381215468, "sparse_article_fallback": false, "drops": { "empty_body": 0, "missing_instrument": 0, "duplicate_cid": 1, "duplicate_source_kept_first": 1 }, "drop_samples": { "empty_body": [], "missing_instrument": [], "duplicate_cid": [ "ng-nass-doc-5813-part-xiii" ] }, "language_breakdown": { "en": 11020 }, "quality_flags": { "articles_table_empty": false, "sparse_article_fallback": false, "article_law_coverage": 30.444751381215468, "all_source_article_counts_zero": false, "article_extraction_status_counts": { "ok": 263, "missing": 41, "partial": 34, "whole_text_fallback": 24 }, "missing_date": false, "missing_date_issued": true, "eli_present": false, "never_invented_legal_text": true, "empty_bodies_dropped": 0, "duplicate_cids_dropped": 1 }, "schema_surprises": [ "laws.article_count dtype=int32", "laws.date_issued is entirely null", "laws.eli non-null=0/362", "laws.language values=['en']" ], "n_out": 11020, "never_invented_legal_text": true, "n_before_dedupe": 11021, "n_dropped_total": 1, "record_type_breakdown": { "article": 11020 }, "jurisdiction_breakdown": { "NG": 11020 }, "snapshot_dates": [ "2026-09-03", "2026-09-08", "2026-09-10", "2026-10-04" ] }, "schema_mapping": { "laws": { "id": "instrument_id", "title": "instrument_title", "text": "body", "article_count_dtype_source": "int32" }, "articles": { "id": "source_id / article identity", "law_id": "instrument_id", "title": "article_title", "text": "body" }, "unit_policy": "prefer articles; fall back to law-level when articles empty", "required_law_columns": [ "id", "title", "text" ], "required_article_columns": [ "id", "law_id", "title", "text" ], "fail_closed": true, "notes": "Malta and Germany share the same column names. Drift: Malta article_count is int64, Germany article_count is int32; Germany eli is often null. Identifiers are never invented. Layout matches SkillCenter HF release / publicus-ir family." }, "indexes": { "bm25_document_chunks": { "cid": "bafkreidbyxf2titrrcp5fgq7xvkrrdlgtefzigimywf7scqep5wbs25a6i", "sha256": "61c5cba9a271889fd29a1fbd55188d66990b94190cc58bf90a047f6c196ba0f2", "size_bytes": 9205, "relative_path": "indexes/bm25_document_chunks.parquet" }, "bm25_keyword_shards": { "cid": "bafkreiaviybnqcahh7yyk32m35bmc3lyle5lbx67i7ua5vpy7vrwb6jbmu", "sha256": "154602d808073ff1856f4cdf42c16d78593ab0dfdf47e80ed5f8fd6360f92165", "size_bytes": 12206, "relative_path": "indexes/bm25_keyword_shards.parquet" }, "corpus_chunks": { "cid": "bafkreicbld44tpkekl6iye755bityeukzjwzaxdnawvvn43hjskq6zasqu", "sha256": "4158f9c9bd4452fc8c13fde8513c128aca6d905c6d05ab56f3674c950f641285", "size_bytes": 9124, "relative_path": "indexes/corpus_chunks.parquet" }, "graph_edge_chunks": { "cid": "bafkreieb352mbycr7ni4woxuvynce4hsobs76nexc3mrtgx6wr37puqtge", "sha256": "81df74c0e051fb51cb3af4ae1a2270f27065ff349716d9199afeb477f7d21331", "size_bytes": 14018, "relative_path": "indexes/graph_edge_chunks.parquet" }, "graph_incoming_adjacency": { "cid": "bafkreifirjn2gtuswonxs35vm64upekwqacxbcl6ryy57fz2qjvpm4xs5u", "sha256": "a88a5ba34e92b39b796fb567b9479156800570897e8e31df973a826af672f2ed", "size_bytes": 12341, "relative_path": "indexes/graph_incoming_adjacency.parquet" }, "graph_node_chunks": { "cid": "bafkreibj5qpqbgpkqbcldzkmjajjwgq25cjpqdhe5a5u6q5mhomvjstugy", "sha256": "29ec1f0099ea8044b1e54c48129b1a1ae892f80ce4e83b4f43ac3b9954ca7436", "size_bytes": 9152, "relative_path": "indexes/graph_node_chunks.parquet" }, "graph_outgoing_adjacency": { "cid": "bafkreicfpfmozip4r7ads27uaoy4v7dptkqiwkzmwn2cfsidkoh3ptjmf4", "sha256": "457958eca1fc8fc0396bf403b1cafc6f9aa08b2b2cb37422c903538fb7cd2c2f", "size_bytes": 12343, "relative_path": "indexes/graph_outgoing_adjacency.parquet" }, "vector_chunks": { "cid": "bafkreibuolz2zwqddwka6zz3hfmm57jrm7ma2wzesirkzr3y4yk2xc4xg4", "sha256": "3472f3acda031d940f673b3958cefd3167d80d5b249222acc778e615ab8b9737", "size_bytes": 27646, "relative_path": "indexes/vector_chunks.parquet" } }, "source": { "source_dataset": "endomorphosis/ipfs_nigeria_laws", "source_revision": "acc86f29d874b290d119679da56f78bc9cadcbbc", "laws_path": "/workspace/country-laws-ir/cache/hf/datasets--endomorphosis--ipfs_nigeria_laws/snapshots/acc86f29d874b290d119679da56f78bc9cadcbbc/data/laws.parquet", "articles_path": "/workspace/country-laws-ir/cache/hf/datasets--endomorphosis--ipfs_nigeria_laws/snapshots/acc86f29d874b290d119679da56f78bc9cadcbbc/data/articles.parquet", "laws_sha256": "033810ad0ac34fd3880c3f9ce87491a0de2cdd8a43d95cae4a03d5cf0a09812f", "articles_sha256": "5e120845f8532f932c8b59049a10b959fe3e0b33718886dc172d470a78652c82", "n_laws_source": 362, "n_articles_source": 11021, "laws_columns": [ "id", "title", "text", "source_url", "source_type", "jurisdiction", "country", "language", "eli", "date", "date_issued", "retrieved_at", "license", "law_status", "identifier", "official_identifier", "article_count", "json_path", "metadata_json" ], "articles_columns": [ "law_id", "id", "title", "text", "source_url", "document_number", "article_number", "record_type", "metadata_json" ], "article_count_dtype": "int32", "schema_surprises": [ "laws.article_count dtype=int32", "laws.date_issued is entirely null", "laws.eli non-null=0/362", "laws.language values=['en']" ] } }