{"id":25067361,"url":"https://github.com/digitalheir/java-rechtspraak-library","last_synced_at":"2025-04-14T20:12:08.968Z","repository":{"id":7951113,"uuid":"42359376","full_name":"digitalheir/java-rechtspraak-library","owner":"digitalheir","description":"Java library for consuming the Rechtspraak.nl API","archived":false,"fork":false,"pushed_at":"2023-06-14T22:52:35.000Z","size":13041,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T20:12:00.368Z","etag":null,"topics":["court-judgment","open-data","rechtspraak"],"latest_commit_sha":null,"homepage":"https://digitalheir.github.io/java-rechtspraak-library/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitalheir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-12T14:13:09.000Z","updated_at":"2024-09-05T14:24:39.000Z","dependencies_parsed_at":"2023-01-11T18:46:02.784Z","dependency_job_id":null,"html_url":"https://github.com/digitalheir/java-rechtspraak-library","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalheir%2Fjava-rechtspraak-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalheir%2Fjava-rechtspraak-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalheir%2Fjava-rechtspraak-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalheir%2Fjava-rechtspraak-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalheir","download_url":"https://codeload.github.com/digitalheir/java-rechtspraak-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248952350,"owners_count":21188426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["court-judgment","open-data","rechtspraak"],"created_at":"2025-02-06T20:55:38.285Z","updated_at":"2025-04-14T20:12:08.943Z","avatar_url":"https://github.com/digitalheir.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### ⚠ This library mostly superseded by [Rechtspraak.js](https://github.com/digitalheir/rechtspraak-js) and no longer actively maintained\nIt may still be of use for XSD files and Java bindings to the Rechtspraak.nl API\n\n# Rechtspraak.nl library\n[![GitHub version](https://badge.fury.io/gh/digitalheir%2Fjava-rechtspraak-library.svg)](http://badge.fury.io/gh/digitalheir%2Fjava-rechtspraak-library)\n[![Build Status](https://travis-ci.org/digitalheir/java-rechtspraak-library.svg?branch=master)](https://travis-ci.org/digitalheir/java-rechtspraak-library)\n\nA Java interface to the judgment database of [rechtspraak.nl](http://www.rechtspraak.nl/).\n\n## Documentation\nThis project is part of my master's thesis in Artificial Intelligence. A HTML copy of my thesis is available \nat [here](https://digitalheir.github.io/java-rechtspraak-library/).\n\n## Usage\nDownload [the latest JAR](https://github.com/digitalheir/java-rechtspraak-library/releases/latest) or grab from Maven:\n\n```xml\n\u003cdependencies\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003eorg.leibnizcenter\u003c/groupId\u003e\n            \u003cartifactId\u003erechtspraak\u003c/artifactId\u003e\n            \u003cversion\u003e2.0.4\u003c/version\u003e\n        \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\nor Gradle:\n```groovy\ncompile 'org.leibnizcenter:rechtspraak:2.0.4'\n```\n\nYou can access the Rechtspraak.nl search API through `org.leibnizcenter.rechtspraak.SearchRequest.Builder` and `org.leibnizcenter.rechtspraak.SearchResult`. All builder options are optional. For instance:\n\n```java\n        SearchResult iterator = new SearchRequest.Builder()\n                .max(1000) // Results per page. Cannot be larger than and defaults to 1000\n                .returnType(ReturnType.DOC) // Return documents for which Rechtspraak.nl lists at least metadata (META) or metadata and a transcription of the case (DOC)\n                .from(0) // Offset in results, used for pagination\n                .sort(Sort.ASC) //Sort results on modification date ascending or descending. Default is ascending (oldest first).\n                .build().execute();\n\n        Assert.assertTrue(iterator.hasNext());\n        iterator = iterator.next();\n        Assert.assertTrue(iterator.hasNext());\n        iterator = iterator.next();\n```\n\nFor all options, see the [JavaDoc for SearchRequest.Builder](http://phil.uu.nl/~trompper/rechtspraak-2.0.0-javadoc/org/leibnizcenter/rechtspraak/SearchRequest.Builder.html)\n\nSearch results contain judgment metadata (accessed through `SearchResult#getJudgments()`). For fetching and parsing the actual documents, use `org.leibnizcenter.rechtspraak.RechtspraakNlInterface`. For example, given an ECLI:\n\n```java\n            OpenRechtspraak doc = parseXml(\n                        // For purists that don't trust the parsing scheme (there is no official doctype), you can work with the raw XML stream as well\n                        requestXmlForEcli(\"ECLI:NL:RBNNE:2014:1005\").body().byteStream() \n            );\n```\n\n`OpenRechtspraak` is a Java object which represents the unmarshalled XML document at http://data.rechtspraak.nl/uitspraken/content?id=ECLI:NL:RBNNE:2014:1005 \n\n## Requirements\n* Versions 1.X.X require Java 7\n* Versions 2.X.X require Java 8\n\n## More\nInquiries go to maarten.trompper@gmail.com.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalheir%2Fjava-rechtspraak-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalheir%2Fjava-rechtspraak-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalheir%2Fjava-rechtspraak-library/lists"}