Skip to content

renekrie/SolRDF

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SolRDF (i.e. Solr + RDF) is a set of Solr extensions for managing (index and search) RDF data. Join us at [email protected]

Continuous Integration status

This page will guide you through the SolRDF quick installation.

If you already have Solr (4.8.x - 4.10.x) installed, please refer to this section for detailed instruction.

I assume you already have Java (7), Maven (3.x) and git on your system.

Checkout the project Open a new shell and type the following:

> cd /tmp
> git clone https://github.com/agazzarini/SolRDF.git solrdf-download

Build and run SolrRDF

> cd solrdf-download/solrdf
> mvn clean install
> cd solrdf-integration-tests
> mvn clean package cargo:run

The very first time you run this command a lot of things will be downloaded, Solr included. At the end you should see sheomething like this:

[INFO] Jetty 7.6.15.v20140411 Embedded started on port [8080] [INFO] Press Ctrl-C to stop the container...

SolRDF is up and running! Now let's add some data. Open a new shell and type the following

> curl -v http://localhost:8080/solr/store/update/bulk?commit=true \
-H "Content-Type: application/n-triples" \
--data-binary @/tmp/solrdf-download/solrdf/solrdf-integration-tests/src/test/resources/sample_data/bsbm-generated-dataset.nt

Ok, you just added about 5000 triples. Now, it's time to execute some query:

> curl "http://127.0.0.1:8080/solr/store/sparql" \
--data-urlencode "q=SELECT * WHERE { ?s ?p ?o } LIMIT 10" \
-H "Accept: application/sparql-results+xml"

> ...

> curl "http://127.0.0.1:8080/solr/store/sparql" \
--data-urlencode "q=SELECT * WHERE { ?s ?p ?o } LIMIT 10" \
-H "Accept: application/sparql-results+json"

> ...

Et voilà! Enjoy! As you can imagine I'm still working on that...so if you meet some annoying bug feel free to give me a shout ;)


The SolRDF logo was kindly provided by Umberto Basili

About

An RDF plugin for Solr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 63.5%
  • Web Ontology Language 33.0%
  • Ruby 1.9%
  • JavaScript 0.7%
  • Python 0.5%
  • XSLT 0.3%
  • HTML 0.1%