'Very Gentle Linked Data' Workshop Resources for ELAG 2013

Web address of this page: http://bit.ly/verygentle

Workshop details at http://elag2013.org/ws2-very-gentle-linked-data/

Workshop Slides

Very Gentle Linked Data Workshop from Adrian Stevenson

Workshop Resources

Java download

It may help if you have the latest version of java installed. You can try running Fuseki without installing the latest version, but if it doesn't work, I'd suggest going back and installing the latest version.

Latest version of java available from http://java.com/download/

Fuseki Triple Store download

Text Editor download

These are by no means compulsory if you already have a text editor on your machine that you're happy with such as Notepad or TextEdit, but both are quite useful and make it a bit easier to work with the RDF. They're also free.

Mac - TextWrangler - http://ash.barebones.com/TextWrangler_4.5.1.dmg

Windows - Notepad++ - http://notepad-plus-plus.org/download/v6.3.3.html

Running Fuseki on Mac

  1. Download Fuseki 0.2.7 from one the above links
  2. Unzip the downloaded file and move the unzipped folder (probably called 'jena-fuseki-0.2.7') to a convenient place on your file system, e.g. /Applications/.
  3. Open a terminal window - this application is usually found at /applications/utilities/terminal
  4. In the terminal window, change directory to where you located the Fuseki folder - e.g. using terminal command: cd /Applications/jena-fuseki-0.2.7
    (You might find it useful to use the command pwd to check your current directory and/or the ls command to list the contents of the directory to make sure the 'fuseki-server' file is there)
  5. Run a Fuseki server using the command: ./fuseki-server --update --mem /ds

    You should then see server logging start which will look something like:

    14:21:27 INFO Server :: Dataset: in-memory
    14:21:27 INFO Config :: Home Directory: /Applications/jena-fuseki-0.2.7
    14:21:27 INFO Server :: Dataset path = /ds
    14:21:27 INFO Server :: Fuseki 0.2.7 2013-02-20T12:04:26+0000
    14:21:27 INFO Server :: Started 2013/05/13 14:21:27 BST on port 3030


  6. In a browser, go to http://localhost:3030/
  7. Click on 'Control Panel'
  8. Select the dataset (if set up as above, there is only one choice i.e. '/ds').
  9. Under 'File Upload' browse for your RDF file and select upload. All being well you'll see how many triples have been loaded.
  10. Click your browser back button and you now should be ready to start SPARQLing!
  11. Try the following SPARQL query: SELECT * WHERE {?s ?p ?o}. You might want to select the Output as text option for readability.

If above doesn't work try changing the permissions of the server using the command: chmod +x fuseki-server s-*

Please note that I'm not an expert on systems admin, so I can't guarantee that I'll be able to help you get a triple store running during the workshop, but I'll do my very best.

Running Fuseki on Windows

  1. Download Fuseki 0.2.7 from one the above links
  2. Unzip the downloaded file and move the unzipped folder (probably called 'jena-fuseki-0.2.7') to a convenient place on your file system, e.g. C:\
  3. Open a command prompt window - this application is usually found under All Programs > Accessories > Command Prompt or by typing cmd in the 'Start Search box' from the bottom left 'Start' button.
  4. Change directory to where you located the Fuseki folder - e.g. using command: cd \jena-fuseki-0.2.7
    (You might find it useful to use the dir command to check your current directory and/or the ls command to list the contents of the directory to make sure the 'fuseki-server' file is there)
  5. Run a Fuseki server using the command: fuseki-server --update --mem /ds

    You should then see server logging start which will look something like:

    14:21:27 INFO Server :: Dataset: in-memory
    14:21:27 INFO Config :: Home Directory: /Applications/jena-fuseki-0.2.7
    14:21:27 INFO Server :: Dataset path = /ds
    14:21:27 INFO Server :: Fuseki 0.2.7 2013-02-20T12:04:26+0000
    14:21:27 INFO Server :: Started 2013/05/13 14:21:27 BST on port 3030


  6. In a browser, go to http://localhost:3030/
  7. Click on 'Control Panel'
  8. Select the dataset (if set up as above, there is only one choice i.e. '/ds').
  9. Under 'File Upload' browse for your RDF file and select upload. All being well you'll see how many triples have been loaded.
  10. Click your browser back button and you now should be ready to start SPARQLing!
  11. Try the following SPARQL query: SELECT * WHERE {?s ?p ?o}. You might want to select the Output as text option for readability.

Please note that I'm not an expert on systems admin, so I can't guarantee that I'll be able to help you get a triple store running during the workshop, but I'll do my very best.

Example RDF files

Example files used in the workshop:

You may need to right-click on the above links and select 'Save Link As' to save a copy of the file on your own machine.

Example RDF data from Archives Hub Linked Data:

Some SPARQL Endpoints

Some Useful SPARQL

To delete all data from the default graph of the triplestore, use the following SPARQL update query in Fuseki's 'SPARQL Update' box.

CLEAR DEFAULT

Example SPARQL used during the workshop - SPARQLQUERIESforELAGWORKSHOP.txt

Free Unzip Utilities

Mac

Windows

Some Useful Links