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

        Discussions on Application Developer Tips

        Application Developer Tips » Discuss

        Start a New Discussion

        Discussion will be posted in:

        • Application Developer Tips
        • Developing Applications

        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
          • Developing Applications,
          • 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.  

          Out out date?

          also posted to
          • Creating Enumerated Properties,
          • Creating Schemas
          8 posts, latest post: cheunger, May 28, 2009
          Link to discussion
          1. tfmorris Top Contributor Freebase Experts
            Feb 7, 2009
            tfmorris says:

            Is this example up to date with the current software?  I got the namespace created after removing the outer query label from the example query, but no matter what I do, I can't seem to convince the property editor to allow me to choose the system "enumeration" type as topic to be linked to.

            What am I missing?

            1. cheunger Metaweb Staff
              Feb 8, 2009
              cheunger says:

              Hmmm, try typing in the key for the enumeration type in "Link to topic".  The key is /type/enumeration .  Make sure that once you do that, you follow the rest of the instructions and link the property to the namespace, or you'll get an error later when trying to view the type.

            2. tfmorris Top Contributor Freebase Experts
              Feb 8, 2009
              tfmorris says:

              Does that work for you?  It didn't for me.

              I ended up struggling through the explore2 view and raw MQL to create what I needed.

            3. cheunger Metaweb Staff
              Feb 9, 2009
              cheunger says:

              Well, I'll be... it didn't work for me either, but it used to.  I've filed a bug regarding this.

            4. tfmorris Top Contributor Freebase Experts
              Feb 9, 2009
              tfmorris says:

              Thanks. 

              p.s.  The topic should, of course, be "Out of date." That's what happens when you stare at MQL for too long!

            5. cheunger Metaweb Staff
              Feb 9, 2009
              cheunger says:

              Here's the bug for tracking purposes: CLI-7473

            6. pak21 Freebase Experts
              May 25, 2009
              pak21 says:

              As that bug seems somewhat moribund, it may be worth noting I got this to work by creating the property as an integer, then setting the expected_type to /type/enumeration via the Query Editor, then following the instructions here again.

            7. cheunger Metaweb Staff
              May 28, 2009
              cheunger says:

              It should also be possible to update the ect via the admin view of the property.

          Discussion is posted in:

          • close Creating Enumerated Properties
          • close Application Developer Tips
          • close Creating Schemas

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

          • General Support,
          • Developer Support
        3.  

          Directions incorrect

          also posted to
          • Creating URI Templates
          2 posts, latest post: philg, Feb 9, 2009
          Link to discussion
          1. tfmorris Top Contributor Freebase Experts
            Feb 8, 2009
            tfmorris says:

            The last part of these directions is jumbled and missing some steps.

            Steps #3 through the end can be replaced with the following:

             
               3. Edit the Foreign Key Property property named URI Template and
                  type the name of your newly created template and select it,
                  then click Save.

               4. Click the name of your URI template to view its topic.

               5. Add the type URI Template to your topic. 
                  You'll see it comes with three new properties which are for the following:
                   URI property - ??
                   Recognized Template - ??
                   Template - the template that will be used to generate links
               6. Edit the Template property, and enter the URI that you want to
                  appear for your topics using {key} where your enumeration key should
                  appear. For example:

            http://www.someURL.com/{key}

            1. philg Metaweb Staff
              Feb 9, 2009
              philg says:

              I've updated, have a look and let me know if there are additional corrections.

          Discussion is posted in:

          • close Creating URI Templates
          • close Application Developer Tips

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

          • General Support,
          • Developer Support
        4.  

          Do web apps see any performance gain?

          also posted to
          • Guids Are Faster than IDs
          1 post, latest post: willmoffat, Jun 25, 2008
          Link to discussion
          1. willmoffat Metaweb Staff
            Jun 25, 2008
            willmoffat says:

            It would be interesting to see some examples of speedups. I imagine most web apps calling mqlread have significant network overheads.

          Discussion is posted in:

          • close Guids Are Faster than IDs
          • close Application Developer Tips

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

          • General Support,
          • Developer Support
        5.  

          But you shouldn't always replace an ID with a GUID

          also posted to
          • Guids Are Faster than IDs
          1 post, latest post: willmoffat, Jun 25, 2008
          Link to discussion
          1. willmoffat Metaweb Staff
            Jun 25, 2008
            willmoffat says:

            guids and ids serve slightly different purposes:

            • ids are for concepts
            • guids are for graph nodes

            This should guide your usage more than performance.

             (jdouglas on irc)

          Discussion is posted in:

          • close Guids Are Faster than IDs
          • close Application Developer Tips

          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

        • Developing Applications
        • Help Center
        • Creating Schemas
        • Creating Enumerated Properties
        • Creating URI Templates
        • Guids Are Faster than IDs
        ©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.563s
        Template: 0.087s
        Cost: br=14.0, cc=0.663, ch=0.0, cm=0.0, cm+h=0.0, cr=0.0, cs=26.0, cw=22.0, dr=7862.0, dt=1.465, dw=0.0, gqr=0.0, in=4489.0, ir=79.0, iw=0.0, lh=0.0, lm=1.0, lr=1.0, mcs=0.0, mcu=0.152, mr=22.0, nivcsw=217.0, nreqs=30.0, nvcsw=79.0, pf=0.0, pr=0.0, stime=0.028, te=0.571, tf=0.799, tg=0.779, tm=0.926, tr=0.048, ts=0.0, tu=0.04, utime=0.635, va=20087.0