How to build a current Linked Open Data Cloud image

Submitted by admin on Wed, 06/11/2014 - 14:27

1. Download all metadata about datasets already stored in http://datahub.io/.
Use this script

https://github.com/lod-cloud/datahub2void

to get a void.ttl file

2. Load void.ttl into your RDF storage server (I use Sesame)

3. Make this query
<code>

PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX foaf:<http://xmlns.com/foaf/0.1/&gt;
PREFIX tag:<http://www.holygoat.co.uk/owl/redwood/0.1/tags/&gt;
PREFIX owl:<http://www.w3.org/2002/07/owl#&gt;
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#&gt;
PREFIX void:<http://rdfs.org/ns/void#&gt;
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX skos:<http://www.w3.org/2004/02/skos/core#&gt;
PREFIX dcterms:<http://purl.org/dc/terms/&gt;

select * {
?s a void:Linkset.
?s void:linkPredicate skos:exactMatch.
?s void:objectsTarget ?otarget.
?s void:subjectsTarget ?starget.
?s void:triples ?triples.
}
</code>
4. Export results of this query as N-triples
5. Download https://github.com/lmatteis/void-graph
6. Open file index.html in your browser. Inside text area field, paste
all n-triples you have already exported.
7. That is all. You must have your own LOD - Cloud :)

Etiquetas