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

        Discussions on An Introduction to Freebase Application Development

        An Introduction to Freebase Application Development » Discuss

        Start a New Discussion

        Discussion will be posted in:

        • An Introduction to Freebase Application Development
        • Developing Applications

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

        • General Support,
        • Developer Support
        1.  

          searching for propertys

          also posted to
          • Developing Applications
          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
        2.  

          mqlread link broken

          also posted to
          • Creating Schemas,
          • Domains and Types
          4 posts, latest post: philg, Dec 31, 2008
          Link to discussion
          1. zenkat Metaweb Staff
            Dec 29, 2008
            zenkat says:

            Hi All --

            The link to the mqlread docs on this page is broken -- it leads to a blank topic page.

            Brian

            1. philg Metaweb Staff
              Dec 30, 2008
              philg says:

              Hi Brian,

              I can't find the broken link, can you be more specific about which one didn't work?

            2. zenkat Metaweb Staff
              Dec 31, 2008
              zenkat says:

              Under "Develop Apps In Javascript", the bulletpoint:

              • Hello World. This List of Countries is generated with only a few lines of Javascript. You might want to read about mqlread in the API docs.
            3. philg Metaweb Staff
              Dec 31, 2008
              philg says:

              Ah, thanks, fixed!

          Discussion is posted in:

          • close An Introduction to Freebase Application Development
          • close Creating Schemas
          • close Domains and Types

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

          • General Support,
          • Developer Support
        3.  

          links to sample apps are http//todo

          also posted to
          • Developing Applications
          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
        4.  

          What's missing from this guide?

          also posted to
          • Developing Applications
          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

        Search Discussions

        Related Discussions

        • Developing Applications
        • Creating Schemas
        • Domains and Types
        ©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.295s
        Template: 0.093s
        Cost: br=17.0, cc=0.372, ch=0.0, cm=0.0, cm+h=0.0, cr=0.0, cs=8.0, cw=4.0, dr=7126.0, dt=0.642, dw=0.0, gqr=0.0, in=4329.0, ir=51.0, iw=0.0, lh=0.0, lm=1.0, lr=1.0, mcs=0.004, mcu=0.099, mr=4.0, nivcsw=62, nreqs=13.0, nvcsw=38.0, pf=0.0, pr=0.0, stime=0.02, te=0.052, tf=0.234, tg=0.221, tm=0.331, tr=0.044, ts=0.0, tu=0.04, utime=0.352, va=19012.0