Code Monkey home page Code Monkey logo

Comments (4)

Slash0BZ avatar Slash0BZ commented on August 20, 2024

Hi, freebase_file_name and freebase_sup_file_name are results of a hack of engineering: the latter is an update or supplement to an outdated mapping we have. As a result, I think you could just use one file that is a union of both maps.

In terms of how we got them: they are processed from Google dumps. It was separately processed, and I think the aforementioned two files are fairly complete based on this dump; please let me know if you have encountered incompleteness issues.

As for your third question, there is a MID in every data entry, and Google also provided MID to Wikidata IDs (vice versa), where you can find corresponding Wikipedia titles.

Please let me know if you have further questions, thanks.

from zoe.

zhaoxy92 avatar zhaoxy92 commented on August 20, 2024

Hi, freebase_file_name and freebase_sup_file_name are results of a hack of engineering: the latter is an update or supplement to an outdated mapping we have. As a result, I think you could just use one file that is a union of both maps.

In terms of how we got them: they are processed from Google dumps. It was separately processed, and I think the aforementioned two files are fairly complete based on this dump; please let me know if you have encountered incompleteness issues.

As for your third question, there is a MID in every data entry, and Google also provided MID to Wikidata IDs (vice versa), where you can find corresponding Wikipedia titles.

Please let me know if you have further questions, thanks.

Thanks. I guess it's more of an engineering question. In the freebase dump we have triplets (subject, predicate, object), but I found MID occurs in both sub and obj. Could you please let me know which ones are counted a valid mid and which ones are counted as a valid type? Thank you!

from zoe.

Slash0BZ avatar Slash0BZ commented on August 20, 2024

I see. From what I remember, subject is the entity, predicate is the relation type. For example, if you are only interested in getting entity freebase types, you should look at RDF tuples where the predicate is type.object.type, while in those cases, object should be human-readable types. In other words, I don't think you need to care about the MIDs in objects.

I am not 100% sure on this, but I can check the data tomorrow. Please let me know if this is consistent with the dump you have.

from zoe.

zhaoxy92 avatar zhaoxy92 commented on August 20, 2024

I see. From what I remember, subject is the entity, predicate is the relation type. For example, if you are only interested in getting entity freebase types, you should look at RDF tuples where the predicate is type.object.type, while in those cases, object should be human-readable types. In other words, I don't think you need to care about the MIDs in objects.

I am not 100% sure on this, but I can check the data tomorrow. Please let me know if this is consistent with the dump you have.

Thanks for the clarification! This is very helpful!

from zoe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.