YourDataStories / harvesters

Harvesters acquire data from open data sources and the social Web.
GNU General Public License v3.0
1 stars 1 forks source link

UUIDs #3

Closed Polymathronic closed 8 years ago

Polymathronic commented 8 years ago

As the implementation of the STRUUID() method in most RDF engines adds the datatype by default, we have decided to abandon UUIDs and replace them by MD5 hashes of the resource URIs, and are kindly asking you to do the same. You can reuse the following SPARQL query (or write your own variant):

INSERT INTO GRAPH <your.graph> {
        ?s <http://mu.semte.ch/vocabularies/core/uuid> ?uuid.
} 
WHERE {
    GRAPH <your.graph> { 
        ?s a ?o .
        BIND(MD5(STR(?s)) AS ?uuid). 
    } 
}