{"id":23122694,"url":"https://github.com/folio-org/lib-linked-data-marc4ld","last_synced_at":"2026-04-17T12:01:38.166Z","repository":{"id":258255521,"uuid":"873604329","full_name":"folio-org/lib-linked-data-marc4ld","owner":"folio-org","description":"A library for converting MARC records to Linked Data Graphs and vice versa.","archived":false,"fork":false,"pushed_at":"2026-04-07T16:45:39.000Z","size":1641,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-04-07T18:26:42.770Z","etag":null,"topics":["linked-data","marc"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/folio-org.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-16T12:54:16.000Z","updated_at":"2026-04-03T08:38:19.000Z","dependencies_parsed_at":"2024-11-05T16:18:16.533Z","dependency_job_id":"59fbdd2b-484a-49bc-93d1-9d14325a9825","html_url":"https://github.com/folio-org/lib-linked-data-marc4ld","commit_stats":null,"previous_names":["folio-org/lib-linked-data-marc4ld"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/folio-org/lib-linked-data-marc4ld","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Flib-linked-data-marc4ld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Flib-linked-data-marc4ld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Flib-linked-data-marc4ld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Flib-linked-data-marc4ld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/folio-org","download_url":"https://codeload.github.com/folio-org/lib-linked-data-marc4ld/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Flib-linked-data-marc4ld/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31928229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["linked-data","marc"],"created_at":"2024-12-17T07:29:50.431Z","updated_at":"2026-04-17T12:01:38.149Z","avatar_url":"https://github.com/folio-org.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lib-linked-data-marc4ld\nCopyright (C) 2024 The Open Library Foundation\n\nThis software is distributed under the terms of the Apache License, Version 2.0.\nSee the file \"[LICENSE](LICENSE)\" for more information.\n\nThis software uses a copyleft (LGPL-2.1-or-later) licensed software library: [marc4j](https://github.com/marc4j/marc4j)\n\n## Purpose\nLib-linked-data-marc4ld is a Java library designed for converting MARC records to Linked Data Graphs and vice versa.\n## Compiling\n```bash\nmvn clean install\n```\n## Using the library\n### Convert MARC Bibliographic record to Linked Data Graph\n```java\nimport org.folio.ld.dictionary.model.Resource;\nimport org.folio.marc4ld.service.marc2ld.bib.MarcBib2ldMapper;\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class YourService {\n\n  private final MarcBib2ldMapper mapper;\n\n  public YourService(MarcBib2ldMapper mapper) {\n    this.mapper = mapper;\n  }\n\n  public void yourMethod(String marcJson) {\n    Resource resource = mapper.fromMarcJson(marcJson);\n    // ...\n    // ...\n  }\n}\n```\n### Convert MARC Authority record to Linked Data Graph\n```java\nimport org.folio.ld.dictionary.model.Resource;\nimport org.folio.marc4ld.service.marc2ld.authority.MarcAuthority2ldMapper;\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class YourService {\n\n  private final MarcAuthority2ldMapper mapper;\n\n  public YourService(MarcAuthority2ldMapper mapper) {\n    this.mapper = mapper;\n  }\n\n  public void yourMethod(String marcJson) {\n    Resource resource = mapper.fromMarcJson(marcJson);\n    // ...\n    // ...\n  }\n}\n```\n### Convert Linked Data Graph to MARC record\n\n```java\nimport org.folio.ld.dictionary.model.Resource;\nimport org.folio.marc4ld.service.ld2marc.Ld2MarcMapper;\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class YourService {\n  private final Ld2MarcMapper mapper;\n\n  public YourService(Ld2MarcMapper mapper) {\n    this.mapper = mapper;\n  }\n\n  public void yourMethod(Resource resource) {\n    String marcJson = mapper.toMarcJson(resource);\n    // ...\n    // ...\n  }\n}\n```\n## Dependencies\n- [lib-linked-data-dictionary](https://github.com/folio-org/lib-linked-data-dictionary)\n- [lib-linked-data-fingerprint](https://github.com/folio-org/lib-linked-data-fingerprint)\n## Download and configuration\nThe built artifacts for this module are available. See [configuration](https://dev.folio.org/download/artifacts/) for repository access.\n\n## Developer Documentation\n\nFor detailed configuration and developer instructions, see the [Developer Guide](DEVELOPER_GUIDE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolio-org%2Flib-linked-data-marc4ld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffolio-org%2Flib-linked-data-marc4ld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolio-org%2Flib-linked-data-marc4ld/lists"}