Freebase
Start typing to get some suggestions
  • Explore
  • Use
  • Build
  • Developers

        Discussions on Developing Applications

        Developing Applications » Discuss

        Start a New Discussion

        Discussion will be posted in:

        • Developing Applications
        • Advanced

        Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

        • General Support,
        • Developer Support
        1.  

          New user needs help with small project

          also posted to
          • Application Developer Tips,
          • Help Center,
          • Creating Schemas
          2 posts, latest post: tfmorris, Jun 4, 2009
          Link to discussion
          1. Jun 4, 2009
            dogbreedstest says:

             Hi all, thank you for checking out this post. I am a new user to Freebase and I need some assistence.

            I am tasked with a project of obtaining information for dog breeds. Typing into the search box for dog breeds I get a nice relational tabled representation of the data with the name and breed group. Clicking on one of the dog names itself gives me a little further information such as it's height and temperment.

            Although if I search for Hypoallergenic Dogs, that base exposes other information immediately, such as their height.

            What it comes down to is I need a way to pull this set of criteria (although it seems that Freebase does not have some of this data yet):

            dog name, most popular by city, size, excercise needs, temperment, coat length, group, life span, energy level, hypo allergenic, family friendly and apartment friendly.

            I've also noticed from runing some of the example queries from the help area, that data comes out as a hierarchical model rather than a relational model used by SQL or Excel. Is there a way to convert this into a kind of tabled form such as if you were to use the search bar on the top right?

            Thank you in advance.

            1. tfmorris Top Contributor Freebase Experts
              Jun 4, 2009
              tfmorris says:

              Create the table that you want with the right filters and right columns displayed, then click on the little gear icon on the top and select "Download as a file."

              Don't forget that the Terms of Service require attribution back to Metaweb/Freebase.

              Not sure what you mean about the heirarchical vs relational, but the database isn't either really.  If you're talking about the information displayed on a topic page in Label: Value form, you can get all that to come out in table views as well with the appropriate amount fiddling about the the table settings (click Edit View and add additional types/columns).

              For data that's missing, feel free to add it if you've got a good source that's license compatible. 

          Discussion is posted in:

          • close Application Developer Tips
          • close Developing Applications
          • close Help Center
          • close Creating Schemas

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        2.  

          More details on the difference between sandbox and freebase.com

          also posted to
          • Playing in the Sandbox
          2 posts, latest post: tfmorris, Mar 18, 2009
          Link to discussion
          1. willmoffat Metaweb Staff
            Jan 3, 2008
            willmoffat says:

            Tim Kientzle wrote on the developers mailing list:

            1) The production site (freebase.com) has a much lower default limit on the amount of
            data a single user can write per day.  This can be adjusted on a per-
            user basis, though; please let us know if you need that.

            2) Sandbox data is discarded every Monday and replaced with a fresh
            copy of the production database (including account and authentication
            data).

            3) Sandbox receives new software images a couple of days in advance of
            the production site.
             

            1. tfmorris Top Contributor Freebase Experts
              Mar 18, 2009
              tfmorris says:

              More recently I was told that there are no write quotas enforced at all on the sandbox currently.

              Also, the snapshot process starts in the morning so anything that is desired for the week's snapshot should be written to the production server by 6 am PDT.  The resulting snapshot will usually be live between 4 pm and 6 pm PDT (GMT-8)

          Discussion is posted in:

          • close Playing in the Sandbox
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        3.  

          searching for propertys

          also posted to
          • An Introduction to Freebase Application Development
          10 posts, latest post: sgha014, Feb 12, 2009
          Link to discussion
          1. Feb 10, 2009
            sgha014 says:

            hello,

            im working on an application that uses freebase. So far i've worked out how to search for a type. But is there a way to search for a property of a type??

            1. skud Metaweb Staff
              Feb 11, 2009
              skud says:

              Certainly there is.  What are you looking for in particular?

            2. Feb 11, 2009
              sgha014 says:

              for example.

              lets say i have a base called Base

              Base has a type called Base Type (id is base_type)

              and Base Type has a property called Type Property (id is type_property)

               

              I know how to search for Base Type, but i dont know how to search for Type Property.

              So maybe i do a search and write "hello", i want to search to find all Type Property in my base that have a value "hello"

              Does this make sense? How can i do that? 

            3. skud Metaweb Staff
              Feb 11, 2009
              skud says:

              OK, first off, are you using our "search" API (/api/service/search) or our "mqlread" API (/api/service/mqlread)?  It sounds like you probably want to be using mqlread, so if that's not what you're doing, it should be.

               mqlread will return the results of any MQL query.  MQL is our query language used to query our whole database, including metadata about the database.  You can learn about MQL in our MQL Reference Guide and experiment with queries using our Query Editor.

              It sounds like you're interested in queries to do with the structure of your types, properties, etc.  That is, rather than asking questions like "Show me all people born in California whose profession is lawyer" you're asking for things like "Show me the names of all the properties on Person".  If that's what you're doing, you might like to look at our Schema Introspection Cookbook, which gives some recipes for queries of that kind.

            4. Feb 11, 2009
              sgha014 says:

              for some reason i cant see your full reply.

              But anyway im using the search api 

            5. Feb 11, 2009
              sgha014 says:

              ok now i can see the full reply.

              thank you...i'll look into that :) 

            6. Feb 11, 2009
              sgha014 says:

              ,one more question,

              with the search api, you can search part of the name. for example if i wanna seach for the music album "hello how are you", i can type hello and it will find it.

              Im assuming that with mql read i wont be able to do that? i will have to write the whole album name, right? 

            7. cheunger Metaweb Staff
              Feb 11, 2009
              cheunger says:

              The answer should be in the MQL reference Guide.

            8. philg Metaweb Staff
              Feb 11, 2009
              philg says:

              You can use wildcards and textual comparisons with any search. Check out sections 3.4 (Property Names in MQL Queries) and 3.6 (MQL Operators) of the MQL Reference Guide for more info.

            9. Feb 12, 2009
              sgha014 says:

              thanks philg, that was a great help :)

              what i've managed to do is print out the value of the properties of a certain type.

              Just a question though.

              Say i have a type called Type, which has two properties : prop1 and prop2.

              And then i've made a topic called MyTopic.

              So i did a mql read to get the values of prop1 and prop2.

              But how do i get that little description that goes at the start of the topic?

              I know that its "article" under type /common/topic. But if my query is getting the properties, then the type is /MyBase/MyType, meaning i cant get that description. 

              Will i have to do two seperate queries? or is there a way of combing the two?

              Cheers 

          Discussion is posted in:

          • close An Introduction to Freebase Application Development
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        4.  

          links to sample apps are http//todo

          also posted to
          • An Introduction to Freebase Application Development
          2 posts, latest post: philg, Sep 24, 2008
          Link to discussion
          1. jack Top Contributor
            Sep 24, 2008
            jack says:

            The urls in the Sample apps section are "http//todo" for Features,Listed, and All.


            1. philg Metaweb Staff
              Sep 24, 2008
              philg says:
              Thanks for that catch, I've updated it with a link to the JavaScript applications view of the Freebase Application type.

          Discussion is posted in:

          • close An Introduction to Freebase Application Development
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        5.  

          Retrieivng data for multiple guid's with a single equery

          also posted to
          • The Complete Metaweb Query Language (MQL) Reference Guide
          3 posts, latest post: biosopher, Jun 11, 2008
          Link to discussion
          1. Jun 10, 2008
            biosopher says:

            I need to obtain data across multiple guid's within a single query.  E.g. this simple query gets the name for a single guid.  Is there a way to pass in multiple IDs to get back information on each?  I.e. I don't want to perform 100's of individual queries.

             

            {

              "id" : "/guid/9202a8c04000641f800000000023907a",

              "name" : null,

            }

            Thanks,
            biosopher

            1. gmackenz Metaweb Staff
              Jun 10, 2008
              gmackenz says:

              Your excellent question here (and also on the Query Builder page) might already be answered in the archives of the App developers mail list (linked to on the App page). In fact I know the question about getting the description was answered recently on one of our two mail lists.

            2. Jun 11, 2008
              biosopher says:

              Thanks for the pointer gmackenz.  I was searching for the wrong terms and getting zero results.  You pointed me in the right direction:

               

              http://www.freebase.com/api/trans/raw/guid/9202a8c04000641f80000000001170a3
              http://www.freebase.com/api/trans/blurb/guid/9202a8c04000641f80000000001170a3
              http://www.freebase.com/api/trans/blurb/guid/9202a8c04000641f800000000038e04d?maxlength=300

              As discussed in detail here 

              http://markmail.org/message/fot76nyzeprvsgly#query:+page:1+mid:hkzgwbs6pbznui4w+state:results
              http://markmail.org/message/fot76nyzeprvsgly#query:freebase.com%20API%2Ftrans+page:1+mid:balofou7axzv53vr+state:results

              Thanks,
              biosopher 

               

          Discussion is posted in:

          • close The Complete Metaweb Query Language (MQL) Reference Guide
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        6.  

          Finding user defined types

          also posted to
          • The Complete Metaweb Query Language (MQL) Reference Guide
          1 post, latest post: amanshakya, May 28, 2008
          Link to discussion
          1. May 28, 2008
            amanshakya says:

            Helo all,

             I am trying to analyze user define types in freebase - types defined the users in their default domains or user defined domains, not yet promoted to the standard freebase domains. I have been trying to make up an MQL for that but it doesn't seem to be easy (as I cannot do pattern matching on the "id"). Any ideas?

          Discussion is posted in:

          • close The Complete Metaweb Query Language (MQL) Reference Guide
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        7.  

          Making a category list

          also posted to
          • The Complete Metaweb Query Language (MQL) Reference Guide
          2 posts, latest post: faye, Apr 16, 2008
          Link to discussion
          1. Apr 16, 2008
            zodiac7 says:

            I'm writing a small app on FreeBase.
            I'm trying to build a category tree which shows the main categories (sports, arts & crafts, etc.) and lets the user drill down to additional sub categories.
            Is there something like this already built which I can use?

            I notice that I can get a list of the categories for "Sports" like this:

            { "query" : [ { "domains" : [ { "id" : null, "name" : null, "type" : "/type/domain" } ], "name" : "Sports", "type" : "/freebase/domain_category" } ]}

            but I can't figure out how to get a list of categories under "Sports/Basketball"

            1. faye Metaweb Staff
              Apr 16, 2008
              faye says:

              Sports is a "domain category", which has a list of domains (via a property). Sports/Basketball (id: /Basketball) is a domain, and when you say a "list of categories" in that domain, you're referring to the types in that domain. So, the query to look up types in a specific domain by id /Basketball is:

              {
              "query" : [
              {
              "id" : "/basketball",
              "type" : "/type/domain",
              "types" : [
              {
              "id" : null,
              "name" : null,
              "type" : "/type/type"
              }
              ]
              }
              ]
              }

          Discussion is posted in:

          • close The Complete Metaweb Query Language (MQL) Reference Guide
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        8.  

          Perl?

          also posted to
          • The Complete Metaweb Query Language (MQL) Reference Guide
          2 posts, latest post: crism, Jan 11, 2008
          Link to discussion
          1. Jan 11, 2008
            tehmoth says:

            No mention of the WWW::Metaweb Perl Module?

            1. crism Metaweb Staff
              Jan 11, 2008
              crism says:

              No, and I don’t think any other community-created modules are mentioned here either. Someone has added a Python client to the list of Freebase Application instances; you could add WWW::Metaweb there, too.

          Discussion is posted in:

          • close The Complete Metaweb Query Language (MQL) Reference Guide
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        9.  

          What's missing from this guide?

          also posted to
          • An Introduction to Freebase Application Development
          1 post, latest post: willmoffat, Dec 20, 2007
          Link to discussion
          1. willmoffat Metaweb Staff
            Dec 20, 2007
            willmoffat says:

            What did you wish somebody had told you when you started developing with Freebase?

          Discussion is posted in:

          • close An Introduction to Freebase Application Development
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        10.  

          language argument

          also posted to
          • The Complete Metaweb Query Language (MQL) Reference Guide
          2 posts, latest post: alecf, Nov 26, 2007
          Link to discussion
          1. Nov 21, 2007
            thsoft says:

            In Chapter 5, it is mentioned that there is an argument for the mqlwrite (possibly mqlread too?) service which specifies the default language for the text values, but it is not documented anywhere. Is there such an argument and if yes, what is its usage?

            1. alecf Metaweb Staff
              Nov 26, 2007
              alecf says:

              Though the infrastructure is there for supporting multiple languages when you specifically ask for values, we haven't yet implemented the full support for being able to specify the language in the query envelope.

              When that is implemented, you'll be able to say something along the lines of:
              {"lang": "/lang/es",
              "query": {"id": "/foo/bar", "name": null}}

              to get the spanish name of /foo/bar

              We'll be sure to make a large announcment when there is significant progress on this front.

          Discussion is posted in:

          • close The Complete Metaweb Query Language (MQL) Reference Guide
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        11.  

          incorrect list of examples

          also posted to
          • The Complete Metaweb Query Language (MQL) Reference Guide
          1 post, latest post: ssak, Oct 16, 2007
          Link to discussion
          1. Oct 16, 2007
            ssak says:

            examples A.4 and A.5 are not actually in the appendix.
            example "4.8. metaweb.js: Metaweb queries with script tags" does not exist.

          Discussion is posted in:

          • close The Complete Metaweb Query Language (MQL) Reference Guide
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        12.  

          Searchable?

          also posted to
          • The Complete Metaweb Query Language (MQL) Reference Guide
          2 posts, latest post: jdouglas, Sep 24, 2007
          Link to discussion
          1. mikelove Top Contributor
            Sep 22, 2007
            mikelove says:

            Can you make the API searchable here?

            1. jdouglas Metaweb Staff
              Sep 24, 2007
              jdouglas says:

              Good point. I'll look into it.

              Just as an FYI, we are also working on a different approach to producing API reference documentation that should help us keep it in better sync with what's actually in production. I know that's been an issue.

          Discussion is posted in:

          • close The Complete Metaweb Query Language (MQL) Reference Guide
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        13.  

          PDF file

          also posted to
          • The Complete Metaweb Query Language (MQL) Reference Guide
          2 posts, latest post: danm, Sep 13, 2007
          Link to discussion
          1. ptomblin
            Sep 13, 2007
            ptomblin says:

            Can somebody please update the PDF file? I downloaded it to read and discovered it was obsolete.

            1. danm Metaweb Staff
              Sep 13, 2007
              danm says:

              We should probably remove the link for now. We changed the way we're maintaining this content and don't have an up-to-date XML representation of the contents anymore. We're going to try to create a single unified view of all the chapters, but this may be a few weeks out.

          Discussion is posted in:

          • close The Complete Metaweb Query Language (MQL) Reference Guide
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        14.  

          Can't login to sandbox

          also posted to
          • Playing in the Sandbox
          3 posts, latest post: ptomblin, Aug 25, 2007
          Link to discussion
          1. Aug 25, 2007
            divideby0 says:

            I recently registered for this site (2 days ago) and I don't think my login credentials are in the sandbox system yet. Is there any way to get access?

            1. sgmils
              Aug 25, 2007
              sgmils says:

              Hi, Cedric. I don't have access to your email address right now, but if you send me a note, I'll shoot over a Sandbox invite. sarah at metaweb dot com

            2. ptomblin
              Aug 25, 2007
              ptomblin says:

              The documentation says that your freebase account isn't copied over to the Sandbox until the big load on Monday afternoon.

          Discussion is posted in:

          • close Playing in the Sandbox
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        15.  

          Which book?

          also posted to
          • Playing in the Sandbox
          1 post, latest post: loopzilla, Jul 14, 2007
          Link to discussion
          1. loopzilla
            Jul 14, 2007
            loopzilla says:

            Stories!

          Discussion is posted in:

          • close Playing in the Sandbox
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support
        16.  

          The Book I Bought

          also posted to
          • Playing in the Sandbox
          1 post, latest post: lancemoon, Jul 6, 2007
          Link to discussion
          1. Jul 6, 2007
            lancemoon says:

            The Book I Bought

          Discussion is posted in:

          • close Playing in the Sandbox
          • close Developing Applications

          Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

          • General Support,
          • Developer Support

        Search Discussions

        Related Discussions

        • Application Developer Tips
        • Help Center
        • Creating Schemas
        • Playing in the Sandbox
        • An Introduction to Freebase Application Development
        • The Complete Metaweb Query Language (MQL) Reference Guide
        ©2009  Metaweb
        • Page History
        • RDF
        • Feedback
        • Attribution Policy
        • Terms of Service
        • About Us
        • Jobs
        • Freebase Blog
        Freebase contains information on:
        • Arts & Entertainment
        • Products & Services
        • Science & Technology
        • Society
        • Special Interests
        • Sports
        • Time & Space
        Dev Tools
        Refresh cache | Query Editor | Normal view | Explore | Explore2 | Admin view | View transaction log | Suggest transaction log | Client transaction log | hide (F8) | debug-level
        TID(s):
        Controller: 0.715s
        Template: 0.221s
        Cost: br=37.0, cc=0.916, ch=0.0, cm=0.0, cm+h=0.0, cr=0.0, cs=8.0, cw=4.0, dr=16680.0, dt=1.902, dw=0.0, gqr=0.0, in=10153.0, ir=155.0, iw=0.0, lh=0.0, lm=2.0, lr=2.0, mcs=0.012, mcu=0.188, minflt=402.0, mr=4.0, nivcsw=121.0, nreqs=15.0, nvcsw=57.0, pf=0.0, pr=0.0, stime=0.044, te=0.313, tf=0.993, tg=0.965, tm=1.165, tr=0.101, ts=0.0, tu=0.096, utime=0.872, va=44393.0