{"id":13553122,"url":"https://github.com/spaziocodice/SolRDF","last_synced_at":"2025-04-03T04:32:31.522Z","repository":{"id":23955628,"uuid":"27337609","full_name":"spaziocodice/SolRDF","owner":"spaziocodice","description":"An RDF plugin for Solr  ","archived":false,"fork":false,"pushed_at":"2021-06-04T01:01:17.000Z","size":29218,"stargazers_count":114,"open_issues_count":25,"forks_count":20,"subscribers_count":30,"default_branch":"master","last_synced_at":"2024-10-14T19:03:00.393Z","etag":null,"topics":["apache-solr","java","linkeddata","rdf","solr","sparql","sparql-endpoints","web-ontology-language"],"latest_commit_sha":null,"homepage":"","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/spaziocodice.png","metadata":{"files":{"readme":"README.md","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":"2014-11-30T14:01:18.000Z","updated_at":"2024-08-20T04:48:56.000Z","dependencies_parsed_at":"2022-07-30T05:07:58.515Z","dependency_job_id":null,"html_url":"https://github.com/spaziocodice/SolRDF","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaziocodice%2FSolRDF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaziocodice%2FSolRDF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaziocodice%2FSolRDF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaziocodice%2FSolRDF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spaziocodice","download_url":"https://codeload.github.com/spaziocodice/SolRDF/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246939195,"owners_count":20857916,"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":["apache-solr","java","linkeddata","rdf","solr","sparql","sparql-endpoints","web-ontology-language"],"created_at":"2024-08-01T12:02:17.730Z","updated_at":"2025-04-03T04:32:26.670Z","avatar_url":"https://github.com/spaziocodice.png","language":"Java","funding_links":[],"categories":["Java","java"],"sub_categories":[],"readme":"\u003cp\u003e\u003cimg src=\"https://cloud.githubusercontent.com/assets/7569632/7524584/5971e1ba-f503-11e4-940e-72e808677c48.png\" width=\"100\" height=\"100\"/\u003e\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/7569632/7532363/51104a30-f566-11e4-8481-229f64064905.png\"\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\nSolRDF (i.e. Solr + RDF) is a set of Solr extensions for managing (index and search) RDF data. Join us at solrdf-user-list@googlegroups.com\n\n[![Continuous Integration status](https://travis-ci.org/agazzarini/SolRDF.svg?branch=master)](https://travis-ci.org/agazzarini/SolRDF)\n\n# Get me up and running\nThis section provides instructions for running SolRDF. We divided the section in two different parts because the different architecture introduced with Solr 5. Prior to that (i.e. Solr 4.x) Solr was distributed as a JEE web application and therefore, being SolRDF a Maven project, you could use Maven for starting up a live instance without downloading Solr (Maven would do that for you, behind the scenes). \n\nSolr 5.x is now delivered as a standalone jar and therefore the SolRDF installation is different; it requires some manual steps in order to deploy configuration files and libraries within an external Solr (which needs to be downloaded separately).    \n\n### SolRDF 1.1 (Solr 5.x)\nFirst, you need Java 8, Apache Maven and Apache Solr installed on your machine.\nOpen a new shell and type the following:     \n\n```\n# cd /tmp\n# git clone https://github.com/agazzarini/SolRDF.git solrdf-download\n```  \n#### Build and run SolrRDF    \n\n```\n# cd solrdf-download/solrdf\n# mvn clean install\n\n```\nAt the end of the build, after seeing\n\n```\n[INFO] --------------------------------------------------------\n[INFO] Reactor Summary:\n[INFO] \n[INFO] Solr RDF plugin .................... SUCCESS [  3.151 s]\n[INFO] solrdf-core ........................ SUCCESS [ 10.191 s]\n[INFO] solrdf-client ...................... SUCCESS [  3.554 s]\n[INFO] solrdf-integration-tests ........... SUCCESS [ 14.910 s]\n[INFO] --------------------------------------------------------\n[INFO] BUILD SUCCESS\n[INFO] --------------------------------------------------------  \n[INFO] Total time: 32.065 s\n[INFO] Finished at: 2015-10-20T14:42:09+01:00\n[INFO] Final Memory: 43M/360M\n```\n\nyou can find the solr-home directory, with everything required for running SolRDF, under the \n\n```\n/tmp/solr/solrdf-download/solrdf/solrdf-integration-tests/target/solrdf-integration-tests-1.1-dev/solrdf\n```\nWe refer to this directory as $SOLR_HOME. \nAt this point, open a shell under the _bin_ folder of your Solr and type:\n\n```\n\u003e ./solr -p 8080 -s $SOLR_HOME -a \"-Dsolr.data.dir=/work/data/solrdf\"\n\nWaiting to see Solr listening on port 8080 [/]  \nStarted Solr server on port 8080 (pid=10934). Happy searching!\n\n```\n\n### SolRDF 1.0 (Solr 4.x)\nIf you're using Solr 4.x, you can point to the solrdf-1.0 branch and use the automatic procedure described below for downloading, installing and run it. There's no need to download Solr, as Maven will do that for you.\n\n#### Checkout the project    \nOpen a new shell and type the following:   \n\n```\n# cd /tmp\n# git clone https://github.com/agazzarini/SolRDF.git solrdf-download\n```  \n\n#### Build and run SolrRDF    \n\n```\n# cd solrdf-download/solrdf\n# mvn clean install\n# cd solrdf-integration-tests\n# mvn clean package cargo:run\n```\nThe very first time you run this command a lot of things will be downloaded, Solr included.\nAt the end you should see something like this:\n```\n[INFO] Jetty 7.6.15.v20140411 Embedded started on port [8080]\n[INFO] Press Ctrl-C to stop the container...\n``` \n[SolRDF](http://127.0.0.1:8080/solr/#/store) is up and running! \n\n# Add data   \nNow let's add some data. You can do that in one of the following ways: \n\n## Browser\nOpen your favourite browser and type the follwing URL (line has been split for readability):\n```\nhttp://localhost:8080/solr/store/update/bulk?commit=true\n\u0026update.contentType=application/n-triples\n\u0026stream.file=/tmp/solrdf-download/solrdf/solrdf-integration-tests/src/test/resources/sample-data/bsbm-generated-dataset.nt\n```\nThis is an example with the bundled sample data. If you have a file somehere (i.e. remotely) you can use the _stream.url_ parameter to indicate the file URL. For example:  \n\n```\nhttp://localhost:8080/solr/store/update/bulk?commit=true\n\u0026update.contentType=application/rdf%2Bxml\n\u0026stream.url=http://ec.europa.eu/eurostat/ramon/rdfdata/countries.rdf\n```\n## Command line\nOpen a shell and type the following\n```\n# curl -v http://localhost:8080/solr/store/update/bulk?commit=true \\ \n  -H \"Content-Type: application/n-triples\" \\\n  --data-binary @/tmp/solrdf-download/solrdf/solrdf-integration-tests/src/test/resources/sample_data/bsbm-generated-dataset.nt\n```\nOk, you just added (about) [5000 triples](http://127.0.0.1:8080/solr/#/store). \n\n# SPARQL 1.1. endpoint    \nSolRDF is a fully compliant SPARQL 1.1. endpoint. In order to issue a query just run a query like this:\n```\n# curl \"http://127.0.0.1:8080/solr/store/sparql\" \\\n  --data-urlencode \"q=SELECT * WHERE { ?s ?p ?o } LIMIT 10\" \\\n  -H \"Accept: application/sparql-results+json\"\n  \nOr  \n  \n# curl \"http://127.0.0.1:8080/solr/store/sparql\" \\\n  --data-urlencode \"**q=SELECT * WHERE { ?s ?p ?o } LIMIT 10**\" \\\n  -H \"Accept: application/sparql-results+xml\"\n\n```\n\n-----------------------------------\n\n_The SolRDF logo was kindly provided by [Umberto Basili](https://it.linkedin.com/in/umberto-basili-14a6a8b1)_ \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaziocodice%2FSolRDF","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspaziocodice%2FSolRDF","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaziocodice%2FSolRDF/lists"}