{ "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_greece_laws", "dataset_repo_id": "justicedao/ipfs_greece_laws_ir", "dataset_revision": "76e85857bd382ccf7a0177236879d96c2c25b248", "country": { "slug": "greece", "repo": "endomorphosis/ipfs_greece_laws", "name": "Greece", "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": 60.00342209122246, "tokenizer": "hf-graphrag-bm25-tokens/v1", "max_query_terms": 64, "posting_rows_per_record": 4096, "terms_per_shard": 4096 }, "counts": { "bm25_document_chunks": 69, "bm25_documents": 280238, "bm25_keyword_shards": 63, "bm25_posting_rows": 257593, "bm25_postings": 5351432, "bm25_terms": 257113, "corpus_chunks": 78, "corpus_rows": 318623, "graph_edge_chunks": 0, "graph_edges": 2230361, "graph_incoming_adjacency_edges": 0, "graph_incoming_adjacency_rows": 0, "graph_incoming_adjacency_shards": 0, "graph_node_chunks": 0, "graph_nodes": 339585, "graph_outgoing_adjacency_edges": 0, "graph_outgoing_adjacency_rows": 0, "graph_outgoing_adjacency_shards": 0, "vector_chunks": 78, "vector_rows": 318623, "n_laws": 6983, "n_articles": 250097, "bm25_token_instances": 16815239 }, "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": 4, "centroid_count": 128, "shard_count": 128, "n_vectors": 318623, "status": "embedded", "n_reused": 318619 }, "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": "fabc010b82878934055c171c04db210acfe196ea0e32dc0e6844249cc6064d4e", "articles.parquet": "03b9f198389e4d008427f8deeb960472364845051da4a18b8da5e7b1941958af" }, "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_greece_laws", "source_revision": "76e85857bd382ccf7a0177236879d96c2c25b248", "laws_sha256": "fabc010b82878934055c171c04db210acfe196ea0e32dc0e6844249cc6064d4e", "articles_sha256": "03b9f198389e4d008427f8deeb960472364845051da4a18b8da5e7b1941958af", "n_laws_in": 6988, "n_articles_in": 3368, "unit": "law+structured", "article_law_coverage": 0.48196908986834575, "sparse_article_fallback": false, "drops": { "empty_body": 2, "missing_instrument": 0, "duplicate_cid": 1004, "duplicate_source_kept_first": 1004 }, "drop_samples": { "empty_body": [ "gr-fek-a-153-2000", "gr-fek-a-3-2000" ], "missing_instrument": [], "duplicate_cid": [ "gr-fek-a-10-2025-article-1", "gr-fek-a-10-2025-article-19", "gr-fek-a-105-2026-article-υ", "gr-fek-a-105-2026-article-υ", "gr-fek-a-105-2026-article-υ", "gr-fek-a-105-2026-article-υ", "gr-fek-a-105-2026-article-υ", "gr-fek-a-105-2026-article-υ", "gr-fek-a-105-2026-article-υ", "gr-fek-a-105-2026-article-υ", "gr-fek-a-105-2026-article-υ", "gr-fek-a-105-2026-article-υ", "gr-fek-a-105-2026-article-υ", "gr-fek-a-105-2026-article-υ", "gr-fek-a-108-2026-article-1", "gr-fek-a-108-2026-article-1", "gr-fek-a-108-2026-article-1", "gr-fek-a-108-2026-article-1", "gr-fek-a-108-2026-article-2", "gr-fek-a-108-2026-article-2" ] }, "language_breakdown": { "el": 318623 }, "quality_flags": { "articles_table_empty": false, "sparse_article_fallback": false, "article_law_coverage": 0.48196908986834575, "all_source_article_counts_zero": false, "article_extraction_status_counts": { "missing": 6743, "ok": 245 }, "missing_date": false, "missing_date_issued": true, "eli_present": false, "never_invented_legal_text": true, "empty_bodies_dropped": 2, "duplicate_cids_dropped": 1004 }, "schema_surprises": [ "laws.article_count dtype=int32", "laws.date_issued is entirely null", "laws.eli non-null=0/6988", "laws.language values=['el']", "parent headings used for 5675 instruments whose article rows were missing or thin" ], "n_out": 318623, "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": 5675, "n_before_dedupe": 319627, "n_law_rows": 6983, "n_child_rows": 311637, "n_instruments": 6986, "n_dropped_total": 1006, "record_type_breakdown": { "article": 250097, "section": 61540, "law": 6983, "notice": 3 }, "jurisdiction_breakdown": { "GR": 318623 }, "snapshot_dates": [ "2026-09-02", "2026-09-03" ], "heading_language_counts": { "el": 8 }, "heading_language_majority": "el", "document_language_majority": "el", "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": 318623, "n_dropped": 1006 } }, { "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": 318623, "n_with_tags": 2, "fraction": 6.277010761934951e-06, "samples": [ "E\nSignature Not\nVerified\nDigitally signed by\nVARVARA ZACHARAKI\nDate: 2022.11.11 23:20:02\nEET\nReason: Signed PDF\n(embedde", "Άρθρο 42\nΣύσταση πάγιας προκαταβολής Άρθρο 43\nστο Ίδρυμα Νεολαίας και Διά Βίου Μάθησης Εξόφληση τιμολογίων για συμβάσεις" ] } }, { "id": "short_bodies", "severity": "warn", "passed": true, "message": "most legal units have usable body length", "evidence": { "n_short": 12706, "n_bodies": 318623, "fraction": 0.039877849370572746 } }, { "id": "parent_laws", "severity": "warn", "passed": true, "message": "parent instruments present (6983 law rows from 6988 source laws)", "evidence": { "n_laws_in": 6988, "n_law_rows": 6983 } }, { "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+structured, coverage=0.99)", "evidence": { "unit": "law+structured", "structured_rows": 316650, "coverage": 0.9938077288833511 } }, { "id": "heading_language", "severity": "warn", "passed": true, "message": "heading lexicon el vs document language el", "evidence": { "document_language": "el", "heading_language": "el", "heading_counts": { "el": 8 } } } ], "blocks_graphrag": false } }, "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": "bafkreiad6neoqukkkzu6tkivfaiqk55wybptr34m2wdbh533vbsabwofre", "sha256": "03f348e8514a5669e9a91528110577b6c05f38ef8cd58613f77ba86400d9c589", "size_bytes": 14521, "relative_path": "indexes/bm25_document_chunks.parquet" }, "bm25_keyword_shards": { "cid": "bafkreibchfjv7glodiy7qclu6fvlulmuycpodgbzyuak6svw7tqihd6jza", "sha256": "2239535f996e1a31f80974f16aba2d94c09ee19839c500af4ab6fce0838fc9c8", "size_bytes": 10971, "relative_path": "indexes/bm25_keyword_shards.parquet" }, "corpus_chunks": { "cid": "bafkreiasurskfisquexjkbzmube72tj2nv56zonhzga2ot6pajnszdb7w4", "sha256": "12a464a2a250a12e95072ca049fd4d3a6d7becb9a7c981a74fcf025b2c8c3fb7", "size_bytes": 20498, "relative_path": "indexes/corpus_chunks.parquet" }, "graph_edge_chunks": { "cid": "bafkreidadyiqxudwqiwade2mdj3jdneo6ogkj6c32wzcrw6alt2z7kpk2e", "sha256": "601e110bd076822c01934c1a7691b48ef38ca4f85bd5b228dbc05cf59fa9ead1", "size_bytes": 106513, "relative_path": "indexes/graph_edge_chunks.parquet" }, "graph_incoming_adjacency": { "relative_path": "indexes/graph_incoming_adjacency.parquet", "present": false }, "graph_node_chunks": { "cid": "bafkreidjn37swksxehaur7utxjqz7tccpgcxnkwg5jyu4cez5bzdd673zy", "sha256": "696eff2b2a5721c148fe93ba619fcc42798576aac6ea714e0899e87231fbfbce", "size_bytes": 19836, "relative_path": "indexes/graph_node_chunks.parquet" }, "graph_outgoing_adjacency": { "relative_path": "indexes/graph_outgoing_adjacency.parquet", "present": false }, "vector_chunks": { "cid": "bafkreibgeszl7kpeot4isan24amcktafyecf7ou6ekvl6e3z26v3i2iijm", "sha256": "2624b2bfa9e474f88901bae018254c05c1045fba9e22aabf1379d7abb469084b", "size_bytes": 401641, "relative_path": "indexes/vector_chunks.parquet" } }, "source": { "source_dataset": "endomorphosis/ipfs_greece_laws", "source_revision": "76e85857bd382ccf7a0177236879d96c2c25b248", "laws_path": "/home/barberb/.ipfs_datasets/country-laws-ir/cache/hf/datasets--endomorphosis--ipfs_greece_laws/snapshots/76e85857bd382ccf7a0177236879d96c2c25b248/data/laws.parquet", "articles_path": "/home/barberb/.ipfs_datasets/country-laws-ir/cache/hf/datasets--endomorphosis--ipfs_greece_laws/snapshots/76e85857bd382ccf7a0177236879d96c2c25b248/data/articles.parquet", "laws_parts": [ "data/laws.parquet" ], "articles_parts": [ "data/articles.parquet" ], "laws_sha256": "fabc010b82878934055c171c04db210acfe196ea0e32dc0e6844249cc6064d4e", "articles_sha256": "03b9f198389e4d008427f8deeb960472364845051da4a18b8da5e7b1941958af", "n_laws_source": 6988, "n_articles_source": 3368, "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/6988", "laws.language values=['el']" ] }, "incremental": { "kind": "delta_refresh", "mode": "auto", "reason": "source changed; reuse embeddings for unchanged entry_cids", "source_revision": "76e85857bd382ccf7a0177236879d96c2c25b248", "prior_revision": "a3df2d112411047517ff30da931a8e427c09d071", "source_fingerprint": "76e85857bd382ccf7a0177236879d96c2c25b248|fabc010b82878934055c171c04db210acfe196ea0e32dc0e6844249cc6064d4e|03b9f198389e4d008427f8deeb960472364845051da4a18b8da5e7b1941958af", "prior_fingerprint": "a3df2d112411047517ff30da931a8e427c09d071|99ef58ec8e72215f98dd6ae3a6e5018874a1e4318c7b96e84b5ff5f6f1a54b84|2e3e54703f7b2392bc53a2733a310c4b0b60ee8a3d9edb33f468787c4b9c1f59", "delta": { "n_added": 4, "n_removed": 1277, "n_unchanged": 318619, "prior_count": 319896, "current_count": 318623, "changed_ratio": 1.2554021523891734e-05, "equivalent_to_full": false, "added_cids_sample": [ "bafkreiatnqvgsvetdqq2a4pfwiizrjzb26hzv77tdspdbd4sp3xy5ca254", "bafkreicpppol4ar3zxdec7ecqqslzhyvnjdadm3je2rmjxfmmtpbfw7jnq", "bafkreidvurv4dhtogl5zahnk3jslaumhnaukp4fy6tarowglcefsskol6y", "bafkreig5lmw3djqqh2z3sy7i3m26bjlqneugg3crziz3nxl2h4kgfs3ray" ], "removed_cids_sample": [ "bafkreia23pjyxujs53aqlyk3fusygh7b4g3sobsuo5hyausvyyz6qjby3q", "bafkreia24q4dqc2ydtmdk3toex6lg5xeu6p57jge7w6h2w3qsi3szscjji", "bafkreia2cgr7yonbp7bgira2ozzskf45duu3tieiwbsb5za7psc3dijjgi", "bafkreia2hkw36w6hkeaetzimxe62r2bep6gar746lw3vtq2r3ut5sppt5e", "bafkreia2jfhnuwsrgnxsvaqdxbuwion255dmvnn7vzoxt4epku2mcnoulq", "bafkreia2pgthm53wdud5xf6fke2j7t5yog3fkx2dfk3h4oshztgctvpixu", "bafkreia2puy7titzy6p7nocxmmxvy7zgy6dahmkfeehtn2y5knswd55pty", "bafkreia2qwxaabcpofiz6prjwngdnllejb4mvchy4xufl72y3hwx2usiym" ] }, "reuse_embeddings": true, "skip_build": false, "equivalent_to_full": false, "schema_version": "country-laws-ir-graphrag/v1", "vectors": { "n_docs": 318623, "n_reused": 318619, "n_encoded": 4, "n_missing": 0, "model_name": "thenlper/gte-small", "model_revision": "17e1f347d17fe144873b1201da91788898c639cd", "dimension": 384, "status": "merged", "device": "cuda", "device_fallback": false } }, "sparse": { "engine": "hf_graphrag", "schema_version": "country-laws-ir-graphrag/v1", "bm25": { "bm25": { "average_document_length": 60.00342209122246, "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": 69, "bm25_documents": 280238, "bm25_keyword_shards": 63, "bm25_posting_rows": 257593, "bm25_postings": 5351432, "bm25_terms": 257113, "bm25_token_instances": 16815239 }, "indexes": { "bm25_document_chunks": { "cid": "bafkreiad6neoqukkkzu6tkivfaiqk55wybptr34m2wdbh533vbsabwofre", "relative_path": "indexes/bm25_document_chunks.parquet", "row_count": 69, "sha256": "03f348e8514a5669e9a91528110577b6c05f38ef8cd58613f77ba86400d9c589", "size_bytes": 14521 }, "bm25_keyword_shards": { "cid": "bafkreibchfjv7glodiy7qclu6fvlulmuycpodgbzyuak6svw7tqihd6jza", "relative_path": "indexes/bm25_keyword_shards.parquet", "row_count": 63, "sha256": "2239535f996e1a31f80974f16aba2d94c09ee19839c500af4ab6fce0838fc9c8", "size_bytes": 10971 } }, "schema_version": "hf-graphrag-bm25-layout/v1" }, "graph": { "node_count": 339585, "edge_count": 2230361, "adjacency": "data/graph/adjacency/{out,in}/*.parquet" }, "sqlite": false, "query_engine": "duckdb" } }