Datasets:
Incremental country-laws-ir GraphRAG release for justicedao/ipfs_saudi_arabia_municipal_laws_ir
8c3d1bb verified Download manifest.json from justicedao/ipfs_saudi_arabia_municipal_laws_ir: direct link, hf CLI and curl.
- Browser
- Download file 16.9 kB
-
https://huggingface.co/datasets/justicedao/ipfs_saudi_arabia_municipal_laws_ir/resolve/main/manifest.json
- Command line
-
hf download hf://datasets/justicedao/ipfs_saudi_arabia_municipal_laws_ir/manifest.json
-
curl -L -o manifest.json https://huggingface.co/datasets/justicedao/ipfs_saudi_arabia_municipal_laws_ir/resolve/main/manifest.json
16.9 kB
| { | |
| "schema_version": "country-laws-ir-graphrag/v1", | |
| "layout_family": "skillcenter-huggingface-release/v3", | |
| "packager_version": "0.5.0", | |
| "primary_key": "entry_cid", | |
| "dataset_id": "endomorphosis/ipfs_saudi_arabia_municipal_laws", | |
| "dataset_repo_id": "justicedao/ipfs_saudi_arabia_municipal_laws_ir", | |
| "dataset_revision": "4d574a961c82d4860c4e6dfd26084444c8386cea", | |
| "country": { | |
| "slug": "saudi_arabia_municipal", | |
| "repo": "endomorphosis/ipfs_saudi_arabia_municipal_laws", | |
| "name": "Saudi Arabia Municipal", | |
| "indexable": true, | |
| "skip_reason": null | |
| }, | |
| "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": 592.2194570135747, | |
| "tokenizer": "hf-graphrag-bm25-tokens/v1", | |
| "max_query_terms": 64, | |
| "posting_rows_per_record": 4096, | |
| "terms_per_shard": 4096 | |
| }, | |
| "counts": { | |
| "bm25_document_chunks": 1, | |
| "bm25_documents": 442, | |
| "bm25_keyword_shards": 3, | |
| "bm25_posting_rows": 9714, | |
| "bm25_postings": 53429, | |
| "bm25_terms": 9714, | |
| "corpus_chunks": 1, | |
| "corpus_rows": 469, | |
| "graph_edge_chunks": 0, | |
| "graph_edges": 2814, | |
| "graph_incoming_adjacency_edges": 0, | |
| "graph_incoming_adjacency_rows": 0, | |
| "graph_incoming_adjacency_shards": 0, | |
| "graph_node_chunks": 0, | |
| "graph_nodes": 1047, | |
| "graph_outgoing_adjacency_edges": 0, | |
| "graph_outgoing_adjacency_rows": 0, | |
| "graph_outgoing_adjacency_shards": 0, | |
| "vector_chunks": 1, | |
| "vector_rows": 469, | |
| "n_laws": 192, | |
| "n_articles": 277, | |
| "bm25_token_instances": 261761 | |
| }, | |
| "parquet": { | |
| "compression": "zstd", | |
| "compression_level": 6, | |
| "max_rows_per_file": 4096, | |
| "row_group_size": 4096, | |
| "query_engine": "duckdb" | |
| }, | |
| "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": [ | |
| "HAS_JURISDICTION", | |
| "HAS_LANGUAGE", | |
| "BELONGS_TO_LAW", | |
| "HAS_ARTICLE", | |
| "BM25_NEIGHBOR_OF" | |
| ] | |
| }, | |
| "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": 1, | |
| "centroid_count": 1, | |
| "shard_count": 1, | |
| "n_vectors": 469, | |
| "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": "763d0e8287bf07fc826dfd6454e819b396528679cac338a2556537ab5b98b1ea", | |
| "articles.parquet": "9f67525c1c9ed9003b7cb84375a6dcfed56623c9094d557688554466f5180643" | |
| }, | |
| "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_saudi_arabia_municipal_laws", | |
| "source_revision": "4d574a961c82d4860c4e6dfd26084444c8386cea", | |
| "laws_sha256": "763d0e8287bf07fc826dfd6454e819b396528679cac338a2556537ab5b98b1ea", | |
| "articles_sha256": "9f67525c1c9ed9003b7cb84375a6dcfed56623c9094d557688554466f5180643", | |
| "n_laws_in": 192, | |
| "n_articles_in": 277, | |
| "unit": "law+article", | |
| "article_law_coverage": 1.4427083333333333, | |
| "sparse_article_fallback": false, | |
| "drops": { | |
| "empty_body": 0, | |
| "missing_instrument": 0, | |
| "duplicate_cid": 0, | |
| "duplicate_source_kept_first": 0 | |
| }, | |
| "drop_samples": { | |
| "empty_body": [], | |
| "missing_instrument": [], | |
| "duplicate_cid": [] | |
| }, | |
| "language_breakdown": { | |
| "ar": 469 | |
| }, | |
| "quality_flags": { | |
| "articles_table_empty": false, | |
| "sparse_article_fallback": false, | |
| "article_law_coverage": 1.4427083333333333, | |
| "all_source_article_counts_zero": false, | |
| "article_extraction_status_counts": {}, | |
| "missing_date": false, | |
| "missing_date_issued": false, | |
| "eli_present": false, | |
| "never_invented_legal_text": true, | |
| "empty_bodies_dropped": 0, | |
| "duplicate_cids_dropped": 0 | |
| }, | |
| "schema_surprises": [ | |
| "laws.article_count dtype=int64", | |
| "laws.eli non-null=0/192", | |
| "laws.language values=['ar']" | |
| ], | |
| "n_out": 469, | |
| "never_invented_legal_text": true, | |
| "n_reconstructed_parents": 0, | |
| "n_reconstructed_truncated": 0, | |
| "n_reconstructed_stubs": 0, | |
| "n_empty_parents_with_articles_not_reconstructed": 0, | |
| "n_thin_instruments_replaced": 0, | |
| "n_before_dedupe": 469, | |
| "n_law_rows": 192, | |
| "n_child_rows": 277, | |
| "n_instruments": 192, | |
| "n_dropped_total": 0, | |
| "record_type_breakdown": { | |
| "article": 277, | |
| "law": 192 | |
| }, | |
| "jurisdiction_breakdown": { | |
| "SA/SA-national": 469 | |
| }, | |
| "snapshot_dates": [ | |
| "2026-10-05" | |
| ], | |
| "heading_language_counts": { | |
| "ar": 994, | |
| "fa": 21 | |
| }, | |
| "heading_language_majority": "ar", | |
| "document_language_majority": "ar", | |
| "verification": { | |
| "schema_version": "country-laws-normalize-verify/v1", | |
| "slug": "", | |
| "admitted": true, | |
| "n_checks": 10, | |
| "n_failed": 0, | |
| "failed_ids": [], | |
| "checks": [ | |
| { | |
| "id": "nonempty_corpus", | |
| "severity": "fail", | |
| "passed": true, | |
| "message": "normalized corpus has rows", | |
| "evidence": { | |
| "n_out": 469, | |
| "n_dropped": 0 | |
| } | |
| }, | |
| { | |
| "id": "entry_cid_unique", | |
| "severity": "fail", | |
| "passed": true, | |
| "message": "every row has a unique entry_cid", | |
| "evidence": { | |
| "missing": 0, | |
| "empty": 0, | |
| "duplicate": 0 | |
| } | |
| }, | |
| { | |
| "id": "never_invented_legal_text", | |
| "severity": "fail", | |
| "passed": true, | |
| "message": "normalizer did not invent legal text", | |
| "evidence": { | |
| "never_invented_legal_text": true | |
| } | |
| }, | |
| { | |
| "id": "html_residual", | |
| "severity": "fail", | |
| "passed": true, | |
| "message": "HTML tags stripped from legal bodies", | |
| "evidence": { | |
| "n_bodies": 469, | |
| "n_with_tags": 0, | |
| "fraction": 0.0, | |
| "samples": [] | |
| } | |
| }, | |
| { | |
| "id": "short_bodies", | |
| "severity": "warn", | |
| "passed": true, | |
| "message": "most legal units have usable body length", | |
| "evidence": { | |
| "n_short": 15, | |
| "n_bodies": 469, | |
| "fraction": 0.031982942430703626 | |
| } | |
| }, | |
| { | |
| "id": "parent_laws", | |
| "severity": "warn", | |
| "passed": true, | |
| "message": "parent instruments present (192 law rows from 192 source laws)", | |
| "evidence": { | |
| "n_laws_in": 192, | |
| "n_law_rows": 192 | |
| } | |
| }, | |
| { | |
| "id": "reconstruction_grounded", | |
| "severity": "fail", | |
| "passed": true, | |
| "message": "reconstructed parents match child glue", | |
| "evidence": { | |
| "checked": 0, | |
| "mismatches": 0, | |
| "samples": [] | |
| } | |
| }, | |
| { | |
| "id": "empty_parents_with_articles", | |
| "severity": "fail", | |
| "passed": true, | |
| "message": "eligible empty parents all have law rows", | |
| "evidence": { | |
| "n_empty_parents_with_articles_not_reconstructed": 0 | |
| } | |
| }, | |
| { | |
| "id": "legal_structure", | |
| "severity": "warn", | |
| "passed": true, | |
| "message": "retrieval units are structured (law+article, coverage=0.88)", | |
| "evidence": { | |
| "unit": "law+article", | |
| "structured_rows": 411, | |
| "coverage": 0.8763326226012793 | |
| } | |
| }, | |
| { | |
| "id": "heading_language", | |
| "severity": "warn", | |
| "passed": true, | |
| "message": "heading lexicon ar vs document language ar", | |
| "evidence": { | |
| "document_language": "ar", | |
| "heading_language": "ar", | |
| "heading_counts": { | |
| "ar": 994, | |
| "fa": 21 | |
| } | |
| } | |
| } | |
| ], | |
| "blocks_graphrag": false | |
| } | |
| }, | |
| "schema_mapping": { | |
| "laws": { | |
| "id": "instrument_id", | |
| "title": "instrument_title", | |
| "text": "body", | |
| "article_count_dtype_source": "int64" | |
| }, | |
| "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": "bafkreiabexgcirgmnhnn45r2bapao3qf6thkm7kw4tq7fcav4yhgle656u", | |
| "sha256": "0125cc2444cc69dade763a081e076e05f4cea67d56e4e1f28815e60e6593ddf5", | |
| "size_bytes": 4577, | |
| "relative_path": "indexes/bm25_document_chunks.parquet" | |
| }, | |
| "bm25_keyword_shards": { | |
| "cid": "bafkreihi64cwwxswsb5tvgzs2bcxgiy47mhca4qdvx4zwqdqkatlcc3fga", | |
| "sha256": "e8f7056b5e56907b3a9b32d04573231cfb0e207203adf99b40705026b10b6530", | |
| "size_bytes": 5096, | |
| "relative_path": "indexes/bm25_keyword_shards.parquet" | |
| }, | |
| "corpus_chunks": { | |
| "cid": "bafkreictt7fndnzvhb266bjbv2nz2ctystulzav4w4iy6m4fqp4xj7xyum", | |
| "sha256": "539fcad1b7353875ef0521ae9b9d0a7894e8bc82bcb7118f338583f974fef8a3", | |
| "size_bytes": 8603, | |
| "relative_path": "indexes/corpus_chunks.parquet" | |
| }, | |
| "graph_edge_chunks": { | |
| "cid": "bafkreig53a2quaswiiwk6kgkyzfmdk46irrw233p6bow66g4ec6ddmbs7e", | |
| "sha256": "ddd8350a0256422caf28cac64ac1ab9e44636d6f6ff05d6f78dc20bc31b032f9", | |
| "size_bytes": 4767, | |
| "relative_path": "indexes/graph_edge_chunks.parquet" | |
| }, | |
| "graph_incoming_adjacency": { | |
| "relative_path": "indexes/graph_incoming_adjacency.parquet", | |
| "present": false | |
| }, | |
| "graph_node_chunks": { | |
| "cid": "bafkreieeiwdhm7gmtf366qcbdkxzupdjkyapxjyjdvbz7erl2wuxjkla5m", | |
| "sha256": "844586767ccc9977ef40411aaf9a3c695600fba7091d439f922bd5a974a960eb", | |
| "size_bytes": 4768, | |
| "relative_path": "indexes/graph_node_chunks.parquet" | |
| }, | |
| "graph_outgoing_adjacency": { | |
| "relative_path": "indexes/graph_outgoing_adjacency.parquet", | |
| "present": false | |
| }, | |
| "vector_chunks": { | |
| "cid": "bafkreiayjhho7wi62ducegexndhxa5cvgjog3kreddv5qpufzzc2wwdaqy", | |
| "sha256": "1849ceefd91ed0e822189768cf707455325c6daa2418ebd83e85ce45ab586086", | |
| "size_bytes": 18083, | |
| "relative_path": "indexes/vector_chunks.parquet" | |
| } | |
| }, | |
| "source": { | |
| "source_dataset": "endomorphosis/ipfs_saudi_arabia_municipal_laws", | |
| "source_revision": "4d574a961c82d4860c4e6dfd26084444c8386cea", | |
| "laws_path": "/home/barberb/.ipfs_datasets/country-laws-ir/cache/hf/datasets--endomorphosis--ipfs_saudi_arabia_municipal_laws/snapshots/92c3cea6dc9748a62cb32aaacef12c8ccab5f101/data/laws-00001.parquet", | |
| "articles_path": "/home/barberb/.ipfs_datasets/country-laws-ir/cache/hf/datasets--endomorphosis--ipfs_saudi_arabia_municipal_laws/snapshots/92c3cea6dc9748a62cb32aaacef12c8ccab5f101/data/articles-00001.parquet", | |
| "laws_parts": [ | |
| "data/laws-00001.parquet" | |
| ], | |
| "articles_parts": [ | |
| "data/articles-00001.parquet" | |
| ], | |
| "laws_sha256": "763d0e8287bf07fc826dfd6454e819b396528679cac338a2556537ab5b98b1ea", | |
| "articles_sha256": "9f67525c1c9ed9003b7cb84375a6dcfed56623c9094d557688554466f5180643", | |
| "n_laws_source": 192, | |
| "n_articles_source": 277, | |
| "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", | |
| "municipality_id", | |
| "municipality_name", | |
| "wikidata_qid" | |
| ], | |
| "articles_columns": [ | |
| "law_id", | |
| "id", | |
| "title", | |
| "text", | |
| "source_url", | |
| "document_number", | |
| "article_number", | |
| "record_type", | |
| "metadata_json", | |
| "municipality_id", | |
| "municipality_name", | |
| "wikidata_qid" | |
| ], | |
| "article_count_dtype": "int64", | |
| "schema_surprises": [ | |
| "laws.article_count dtype=int64", | |
| "laws.eli non-null=0/192", | |
| "laws.language values=['ar']" | |
| ] | |
| }, | |
| "incremental": { | |
| "kind": "delta_refresh", | |
| "mode": "auto", | |
| "reason": "source changed; reuse embeddings for unchanged entry_cids", | |
| "source_revision": "4d574a961c82d4860c4e6dfd26084444c8386cea", | |
| "prior_revision": "92c3cea6dc9748a62cb32aaacef12c8ccab5f101", | |
| "source_fingerprint": "4d574a961c82d4860c4e6dfd26084444c8386cea|763d0e8287bf07fc826dfd6454e819b396528679cac338a2556537ab5b98b1ea|9f67525c1c9ed9003b7cb84375a6dcfed56623c9094d557688554466f5180643", | |
| "prior_fingerprint": "92c3cea6dc9748a62cb32aaacef12c8ccab5f101|31dfeaf32555487e52389dc2ca022d1a9423bcf41212364735c4e59d442f082e|815d854aa2f6a224998013c2e809fee7f8f3afa884336e2f768756cd8a21f5ab", | |
| "delta": { | |
| "n_added": 0, | |
| "n_removed": 0, | |
| "n_unchanged": 469, | |
| "prior_count": 469, | |
| "current_count": 469, | |
| "changed_ratio": 0.0, | |
| "equivalent_to_full": false, | |
| "added_cids_sample": [], | |
| "removed_cids_sample": [] | |
| }, | |
| "reuse_embeddings": true, | |
| "skip_build": false, | |
| "equivalent_to_full": false, | |
| "schema_version": "country-laws-ir-graphrag/v1", | |
| "vectors": { | |
| "n_docs": 469, | |
| "n_reused": 0, | |
| "n_encoded": 469, | |
| "n_missing": 0, | |
| "model_name": "thenlper/gte-small", | |
| "model_revision": "17e1f347d17fe144873b1201da91788898c639cd", | |
| "dimension": 384, | |
| "status": "merged", | |
| "device": "cpu", | |
| "device_fallback": false | |
| } | |
| }, | |
| "sparse": { | |
| "engine": "hf_graphrag", | |
| "schema_version": "country-laws-ir-graphrag/v1", | |
| "bm25": { | |
| "bm25": { | |
| "average_document_length": 592.2194570135747, | |
| "b": 0.75, | |
| "body_weight": 1.0, | |
| "k1": 1.2, | |
| "max_query_terms": 64, | |
| "posting_rows_per_record": 4096, | |
| "terms_per_shard": 4096, | |
| "title_weight": 5.0, | |
| "tokenizer": "hf-graphrag-bm25-tokens/v1" | |
| }, | |
| "configs": { | |
| "bm25_documents": "data/bm25/documents/*.parquet", | |
| "bm25_postings": "data/bm25/postings/*.parquet", | |
| "bm25_keyword_index": "indexes/bm25_keyword_shards.parquet" | |
| }, | |
| "counts": { | |
| "bm25_document_chunks": 1, | |
| "bm25_documents": 442, | |
| "bm25_keyword_shards": 3, | |
| "bm25_posting_rows": 9714, | |
| "bm25_postings": 53429, | |
| "bm25_terms": 9714, | |
| "bm25_token_instances": 261761 | |
| }, | |
| "indexes": { | |
| "bm25_document_chunks": { | |
| "cid": "bafkreiabexgcirgmnhnn45r2bapao3qf6thkm7kw4tq7fcav4yhgle656u", | |
| "relative_path": "indexes/bm25_document_chunks.parquet", | |
| "row_count": 1, | |
| "sha256": "0125cc2444cc69dade763a081e076e05f4cea67d56e4e1f28815e60e6593ddf5", | |
| "size_bytes": 4577 | |
| }, | |
| "bm25_keyword_shards": { | |
| "cid": "bafkreihi64cwwxswsb5tvgzs2bcxgiy47mhca4qdvx4zwqdqkatlcc3fga", | |
| "relative_path": "indexes/bm25_keyword_shards.parquet", | |
| "row_count": 3, | |
| "sha256": "e8f7056b5e56907b3a9b32d04573231cfb0e207203adf99b40705026b10b6530", | |
| "size_bytes": 5096 | |
| } | |
| }, | |
| "schema_version": "hf-graphrag-bm25-layout/v1" | |
| }, | |
| "graph": { | |
| "node_count": 1047, | |
| "edge_count": 2814, | |
| "adjacency": "data/graph/adjacency/{out,in}/*.parquet" | |
| }, | |
| "sqlite": false, | |
| "query_engine": "duckdb" | |
| } | |
| } | |