{"id":28298640,"url":"https://github.com/ubleipzig/rdfxml-ingest","last_synced_at":"2025-10-04T16:05:53.730Z","repository":{"id":71117721,"uuid":"95547100","full_name":"ubleipzig/rdfxml-ingest","owner":"ubleipzig","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-28T14:30:38.000Z","size":2651,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-18T06:35:30.357Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"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/ubleipzig.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-06-27T10:32:58.000Z","updated_at":"2017-06-27T11:49:13.000Z","dependencies_parsed_at":"2023-04-11T08:17:30.388Z","dependency_job_id":null,"html_url":"https://github.com/ubleipzig/rdfxml-ingest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ubleipzig/rdfxml-ingest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubleipzig%2Frdfxml-ingest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubleipzig%2Frdfxml-ingest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubleipzig%2Frdfxml-ingest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubleipzig%2Frdfxml-ingest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubleipzig","download_url":"https://codeload.github.com/ubleipzig/rdfxml-ingest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubleipzig%2Frdfxml-ingest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278335619,"owners_count":25970165,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-05-23T06:14:25.761Z","updated_at":"2025-10-04T16:05:53.725Z","avatar_url":"https://github.com/ubleipzig.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"RDFXML INGEST\n===================================\n\nA CLI tool that reads an XML file source, transforms it to RDF/XML with XSLT, and PUTs the result into a Fedora Repository.\n\n### USAGE\n    \n    $ gradle installDist\n    \n    $ cd ./ingester-core/build/install/ingester-core/bin\n    \n    $ ./ingester-core -r {$filesytem path to XML source file} -x {$filesytem path to transformation xslt} -d {$output dir for transformed file} -b {$base URI of repository}\n    \n    example:\n     \n    $ ./ingester-core -r ~/IdeaProjects/rdfxml-ingest/ingester-core/src/main/resources/import-data/metsmods.xml -x ~/IdeaProjects/rdfxml-ingest/ingester-core/src/main/resources/cool.pandora.ingester/oaimets2rdf.xsl -d /tmp/output-data -b http://localhost:8080/fcrepo/rest\n\n\n\nThe resource identifier is extracted from the XML source and appended onto the repository base URI.\n\n### SPARQL\nThe intent of this tool is to facilitate mutation of legacy XML datasets with SPARQL.  Here is an example.\n\n```sparql\nPREFIX rdf: \u003chttp://www.w3.org/1999/02/22-rdf-syntax-ns#\u003e\nCONSTRUCT {  ?manifest \u003chttp://www.loc.gov/METS/FLocat\u003e ?fLocat .\n  ?fLocat \u003chttp://www.loc.gov/METS/hasPhysDivOrder\u003e ?divOrder .\n  ?fLocat \u003chttp://www.loc.gov/mods/v3title\u003e ?title .\n  ?fLocat rdf:type ?type .\n}\nWHERE {values ?manifest {\u003chttp://localhost:8080/fcrepo/rest/db/id-263566837\u003e} .\n  ?manifest \u003chttp://www.loc.gov/METS/fileGrp\u003e ?fileGrp .\n  ?fileGrp \u003chttp://www.loc.gov/METS/file\u003e ?file .\n  ?file \u003chttp://www.loc.gov/METS/fileID\u003e ?fileID .\n  ?file \u003chttp://www.loc.gov/METS/FLocat\u003e ?fLocat .\n  ?file \u003chttp://www.loc.gov/METS/hasPhysDivOrder\u003e ?divOrder .\n  ?file \u003chttp://www.loc.gov/METS/hasLogDiv\u003e ?logDivId .\n  ?logDivId \u003chttp://www.loc.gov/mods/v3title\u003e ?title .\n  ?logDivId rdf:type ?type .\n} \n```\nThis can produce JSON-LD nodes that look like this:\n```json\n{\n    \"@id\" : \"http://digital.slub-dresden.de/fileadmin/data/263566811/263566811_tif/jpegs/00000001.tif.medium.jpg\",\n    \"@type\" : \"http://www.loc.gov/METS/structMap#monograph\",\n    \"hasPhysDivOrder\" : \"1\",\n    \"v3title\" : \"Der furnembsten, notwendigsten, der gantzen Architectur angehoerigen Mathematischen und Mechanischen kuenst eygentlicher bericht und vast klare, verstendliche unterrichtung\"\n  }\n```  \n\nAlso, in conjunction with the fedora-import-export utility, resources can be round-tripped in the BagIt format.\n\n* See [output bag example](https://github.com/ubleipzig/rdfxml-ingest/tree/master/ingester-core/src/main/resources/output-data/example_bag)\n\nFor a easy to setup test Fedora API-X implementation, see [APIX-OAI](https://github.com/pan-dora/apix-oai)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubleipzig%2Frdfxml-ingest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubleipzig%2Frdfxml-ingest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubleipzig%2Frdfxml-ingest/lists"}