Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 2.69 KB

README.md

File metadata and controls

55 lines (40 loc) · 2.69 KB

Squirrel

Squirrel searches and collects Linked Data

Running with docker

Using the Makefile...

  $ make build dockerize
  $ docker-compose build
  $ docker-compose up

... or do it manually

  1. mvn clean package shade:shade -U -DskipTests
  2. if you have a new version of squirrel, e.g. version 0.3.0, you can executemvn install:install-file -DgroupId=org.aksw.simba -DartifactId=squirrel -Dpackaging=jar -Dversion=0.3.0 -Dfile="target\original-squirrel.jar" -DgeneratePom=true -DlocalRepositoryPath=repository
  3. If you want to use the Web-Components, have a look to the Dependencies in this file
  4. docker build -t squirrel .
  5. execute a .yml file with docker-compose -f <file> up/ down

There are currently 3 yml-options

All yml files in the root folder crawls real existing data portals with the help of HtmlScraper

  • docker-compose.yml: file-sink based, without web
  • docker-compose-sparql.yml: sparql-sink based (JENA), without web
  • docker-compose-sparql-web.yml: sparql-sink based (JENA), with web including the visualization of crawled graph!

Dependencies

Using a Sparql-Host

You can use a sparql-based triple store to store the crawled data. If you want use it, you have to do the following:

Until yet, the necessary datasets in the database are not created automatically. So you have to create them by hand:

  1. Run Squirrel as explained above
  2. Enter localhost:3030 in your browser's address line
  3. Go to manage datasets
  4. Click add new dataset
  5. For Dataset name paste contentset
  6. For Dataset type select Persistent – dataset will persist across Fuseki restarts
  7. Go to step 4 again and do the same, but this time with "Metadata" as "Dataset name"

Further dependencies

The Squirrel-Webservice and the SquirrelWebObject are included in this project, now. This leads to the fact, that this project is a multi module maven project now. For that, there are 2 pom.xml's in the root layer:

  • pom.xml: this is the module bundle pom xml. If you execute mvn clean package, this file will be called. As a consequence from this, all submodules including the squirrel will be complied an packed
  • squirrel-pom.xml: the pom for the squirrel

If you want to run the squirrel with the Webservice, take care that you have already the current Webservice image (Docker). If not, execute

  1. mvn clean package (only necessary if you want to compile each subproject (module) for itself)
  2. (SquirrelWebObject\install.bat)
  3. SquirrelWebService\buildImage.bat