{"id":32191275,"url":"https://github.com/jgrzebyta/triple-loader","last_synced_at":"2025-10-22T01:36:20.234Z","repository":{"id":57713031,"uuid":"50444797","full_name":"jgrzebyta/triple-loader","owner":"jgrzebyta","description":"Framework and CL tools for hight throughput manipulation on RDF statements (triples and quads).","archived":false,"fork":false,"pushed_at":"2020-11-14T23:40:57.000Z","size":1980,"stargazers_count":10,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T01:35:57.086Z","etag":null,"topics":["clojure","opensource","rdf","rdf4j"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgrzebyta.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-26T17:08:42.000Z","updated_at":"2020-11-26T14:08:29.000Z","dependencies_parsed_at":"2022-09-06T02:10:34.678Z","dependency_job_id":null,"html_url":"https://github.com/jgrzebyta/triple-loader","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/jgrzebyta/triple-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgrzebyta%2Ftriple-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgrzebyta%2Ftriple-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgrzebyta%2Ftriple-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgrzebyta%2Ftriple-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgrzebyta","download_url":"https://codeload.github.com/jgrzebyta/triple-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgrzebyta%2Ftriple-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280365574,"owners_count":26318385,"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-21T02:00:06.614Z","response_time":58,"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":["clojure","opensource","rdf","rdf4j"],"created_at":"2025-10-22T01:36:15.192Z","updated_at":"2025-10-22T01:36:20.229Z","avatar_url":"https://github.com/jgrzebyta.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+startup: indent showall\n#+title: triple loader\n#+author: Jacek Grzebyta\n#+date: \u003c2018-02-05 Mon\u003e\n#+startup: showall\n\n# Travis is switched off\n[[https://travis-ci.org/jgrzebyta/triple-loader?branch=master][https://travis-ci.org/jgrzebyta/triple-loader.svg?branch=master]]\n\n[[https://img.shields.io/clojars/v/adalab/triple-loader.svg]]\n\n* 1. What is that?\n\n=triple-loader= provides command line tools and Clojure API for managing Eclipse RDF4J/Sesame repository. Moreover since version 0.1.15 this project provides external Clojure API. Both snapshots and releases - standard jars - are published only on [[https://clojars.org/adalab/triple-loader][Clojars]]. Stand-alone (uber) jars will be still published in GitHub.\n\nLeiningen/Boot:\n#+begin_src\n[adalab/triple-loader \"0.2.3\"]\n#+end_src\n\n** 1.1. Acknowledgements\n\nThe software development was supported by CHIST-ERA (Call 2013 -- AMCE), with funding from EPSRC (Grant no. [[http://gow.epsrc.ac.uk/NGBOViewGrant.aspx?GrantRef=EP/M015661/1][EP/M015661/1]]; AdaLab).\n\nThe AdaLab project web page can be found at: http://www.adalab-project.org/.\n\n* 2. API Documentation\n\nAll API documentation is available at [[https://jgrzebyta.github.io/triple-loader/]].\n\n* 3. Command line tools\n\n#+begin_src\njava -cp triple-loader-standalone.jar \u003ccommand\u003e \u003coptions\u003e\n#+end_src\n** Commands\n*** rdf4j.loader\nLoads data into triple store.\n\n**** Options\n    - --server URL, -s :: Sesame SPARQL endpoint URL. Default: http://localhost:8080/rdf4j-server                  \n    - --repositiry NAME, -r :: Repository id. Default: test\n    - --file FILE, -f :: Data file path                                       \n    - --context IRI, -c :: Context (graph name) of the dataset. *If FILE's format is context-aware (e.g. TriG) than this option is ignored.* \n    - --version, -V :: Print version number\n    - --help, -h :: Help\n**** Examples\n\nPopulate triple store at =http://localhost:8090/rdf4j-server/test= with data from two files.\n\n#+begin_src shell\njava -cp triple-loader-standalone.jar rdf4j.loader -s http://localhost:8090/rdf4j-server/ -r test -f ~/database/data1.ttl -f ~/database/data2.ttl\n#+end_src\n\n*** rdf4j.sparql\nExecutes SPARQL /query/ on data provided by /file/. The query is executed among different types of repository: `simple`, `lucene` and `native` \n\n**** Options\n    - --file FILE, -f :: Data file path.\n    - --query STRING, -q :: Path to file with query or the query itself.\n    - --formaT, -t :: Format of SPARQL query resut. Option '-t help' gives full list of supported formats. \n                     By default writers formats are =sparql/tsv= and =trig= for =tuple query= and =graph query= respectively.\n    - --repository -r :: Local repository settings. Possible options: =simple=, =lucene=, =native=.\n    - --version, -v :: Print version number.\n    - --bind, -b :: Accepts set of properties as SPARQL bindings. Given values are parsed to literal.\n    - --help, -h :: Help.\n**** Examples\n\nProcess SPARQL request =select * where {?s ?p ?o} limit 10= on data located in two files.\n\n#+begin_src shell\njava -cp triple-loader-standalone.jar rdf4j.sparql -f ~/database/data1.ttl -f ~/database/data2.ttl -q \"select * where {?s ?p ?o} limit 10\"\n#+end_src\n\n\nProcess SPARQL request from file =~/database/process.sparql= on data located in two files.\n\n#+begin_src shell\njava -cp triple-loader-standalone.jar rdf4j.sparql -f ~/database/data1.ttl -f ~/database/data2.ttl -q ~/database/process.sparql\n#+end_src\n\nProcess SPARQL request from file =~/database/process.sparql= on data located in two files and print results in =sprarql/json= format.\n\n#+begin_src shell\njava -cp triple-loader-standalone.jar rdf4j.sparql -f ~/database/data1.ttl -f ~/database/data2.ttl -q ~/database/process.sparql -t sparql/json\n#+end_src\n\n\nProcess SPARQL request with binding\n#+begin_src shell\njava -cp triple-loader-standalone.jar rdf4j.sparql -f tests/resources/beet.rdf -t sparql/csv -q \"select ?s ?country where {?s \u003cfile:/tmp2/beet-1.csvCountries\u003e ?country}\" -b \"country=Poland\"\n#+end_src\n\n*** rdf4j.dump\nCreates remote repository dump file in *TriG* format. [[#rdf4jloader][rdf4j.loader]] function is suitable for restoring triple. \n\n**** Options\n- --help, -h :: Help\n- --server URL, -s :: RDF4J SPARQL endpoint URL, default =http://localhost:8080/rdf4j-server=\n- --repositiry NAME, -r :: Repository id, default: =test=\n- --file FILE, -f :: Data file path or standard output if not given \n- --version, -V :: Display program version \n\n**** Examples\nDump =http://localhpost:8090/rdf4j-server/test= repository to standard output.\n\n#+begin_src shell\njava -cp triple-loader-standalone.jar rdf4j.dump -s http://localhpost:8090/rdf4j-server -r test\n#+end_src\n\n\nDump =http://localhpost:8090/rdf4j-server/test= repository to =/tmp/test-repo.trig= file.\n\n#+begin_src shell\njava -cp triple-loader-standalone.jar rdf4j.dump -s http://localhpost:8090/rdf4j-server -r test -f /tmp/test-repo.trig\n#+end_src\n\n*** rdf4j.convert\nConverts RDF files among different formats. It supports following formats: /ntriples/, /n3/, /turtle/, /rdfjson/, /rdfxml/, /trig/, /trix/, /nquads/, /jsonld/ and /binary/.\n\n**** Options\n- --help, -h :: Print this screen\n- --version, -V :: Display version\n- --input FORMAT, -i :: Input format. Available formats: ntriples, n3, turtle, rdfjson, rdfxml, trig, trix, nquads, jsonld, binary\n- --output FORMAT, -o :: Output format. Available formats: ntriples, n3, turtle, rdfjson, rdfxml, trig, trix, nquads, jsonld, binary\n\n**** Examples\nConvert /turtle/ file to /rdfxml/\n\n#+begin_src shell\njava -cp triple-loader-standalone rdf4j.convert -i turtle -o rdfxml tests/resources/yeastract_raw.ttl\n#+end_src\n\nConvert /turtle/ file to /trig/\n\n#+begin_src shell\njava -cp triple-loader-standalone rdf4j.convert -i turtle -o trig tests/resources/yeastract_raw.ttl\n#+end_src\n\n* 4. Build server\n\n- [[https://travis-ci.org/jgrzebyta/triple-loader][Travis CL]]\n\n* 5. Contacts\nTo contact with me please use *Issues* interface.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgrzebyta%2Ftriple-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgrzebyta%2Ftriple-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgrzebyta%2Ftriple-loader/lists"}