Different datasets in Yago?

1.6k Views Asked by At

I'm new on this, so sorry if I'm not clear.

My question is, why does the information shown in Yago browser for Nagoya University of Arts differ from the one in here or making a SPARQL query on the Yago endpoint like

SELECT * WHERE {
 <http://yago-knowledge.org/resource/Nagoya_University_of_Arts> ?p ?v .
}

?

To be more precise, for example, in the web browser there are much more type than in the other ones.

2

There are 2 best solutions below

2
On

I'm not sure what endpoint you're using for YAGO. Try the DBpedia endpoint here, which has at least some of YAGO loaded. I get several YAGO types for this query:

SELECT * WHERE {
 <http://dbpedia.org/resource/Nagoya_University_of_Arts> ?p ?v .
}
1
On

According to the YAGO Demo page, there's a SPARQL endpoint for YAGO data at http://lod2.openlinksw.com/sparql:

SPARQL Interface

The SPARQL endpoint for YAGO is provided by OpenLink. It does not always work, but is nice to try out if it does. Try asking, e.g., SELECT * WHERE {http://yago-knowledge.org/resource/Albert_Einstein ?p ?o}

Based on your comment:

What annoys me is that I can't make specific querys like, "give me all the university in Yago", as that information is only shown in the browser.

I think you'll find this query useful. You can get a list of all universities by asking for everything that's an instance of a class that's a subclass of University:

select * where { 
  ?university a/rdfs:subClassOf* <http://yago-knowledge.org/resource/wordnet_university_108286569>
}
limit 100

SPARQL results

Since not all of the links in your question work, I'm not sure where you're seeing more types in one place than in another, but I wouldn't be surprised if one presentation only shows the immediate types asserted in the data, whereas another gives you the types that include the superclasses. That's why I used the property path expression in the previous query to find not just all things declared as a university, but all things declared as a university or as a subclass of university, or a subclass of a subclass of a university, and so on.