sameAs Graph


Description

The sameAs.cc dataset (2018 release)

Infos

RDF triplesSubjectsPredicatesObjectsTime quotaMax results per request
558,943,116 triples107,742,1421136,950,18975ms2000 bindings

VoID description

Access the VoID description of the RDF graph at http://soyez-sage.univ-nantes.fr/void/sameAs

Query the RDF Graph

Graph URI: http://soyez-sage.univ-nantes.fr/sparql/sameAs

Basic SPARQL queries

The SaGe server has a native support for evaluating a subset of the SPARQL syntax. It supports SPARQL queries with the following features:


Complete SPARQL 1.1 queries

To execute complete SPARQL queries using a SaGe server, you have two options:


Example SPARQL queries

The following SPARQL queries can be executed on this RDF Graph.

All entities refering to Barack Obama

SELECT ?cc WHERE {
  <http://dbpedia.org/resource/Barack_Obama> <http://www.w3.org/2002/07/owl#sameAs> ?cc .
}

Try this query


All entities referring to Albert Einstein

PREFIX owl: <http://www.w3.org/2002/07/owl#>
prefix dbr: <http://dbpedia.org/resource/>

SELECT ?cc WHERE {
  dbr:Albert_Einstein owl:sameAs ?cc .
}

Try this query


All entities referring to Rihanna

PREFIX owl: <http://www.w3.org/2002/07/owl#>
prefix dbr: <http://dbpedia.org/resource/>

SELECT ?cc WHERE {
  dbr:Rihanna owl:sameAs ?cc .
}

Try this query


All entities, and their labels, referring to Albert Einstein

SERVICE OPTIONAL FILTER

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
prefix dbr: <http://dbpedia.org/resource/>

SELECT ?cc ?label_wikidata ?label_dbpedia WHERE {
  dbr:Albert_Einstein owl:sameAs ?cc .
  # Get english labels from Wikidata
  OPTIONAL {
    SERVICE <http://sage.univ-nantes.fr/sparql/wikidata-2017-03-13> {
      ?cc rdfs:label ?label_wikidata .
    }
    FILTER(LANGMATCHES(LANG(?label_wikidata), "EN"))
  }
  # Get english labels from DBpedia
  OPTIONAL {
    SERVICE <http://sage.univ-nantes.fr/sparql/dbpedia-2016-04> {
      ?cc rdfs:label ?label_dbpedia .
    }
    FILTER(LANGMATCHES(LANG(?label_dbpedia), "EN"))
  }
  # Only display entities with a label either in DBpedia or Wikidata
  FILTER(bound(?label_dbpedia) || bound(?label_wikidata))
}

Try this query