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

        Discussions on Adding Properties to Types

        Adding Properties to Types » Discuss

        Start a New Discussion

        Discussion will be posted in:

        • Adding Properties to Types
        • Creating Schemas

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

        • General Support,
        • Developer Support
        1.  

          'Attachment' (or 'file') core property type?

          also posted to
          • Core property types
          5 posts, latest post: skud, May 11, 2009
          Link to discussion
          1. Jun 26, 2007
            robertm says:

            Any chance of providing a core property type for attaching arbitrary files? Like you get on most wiki platforms. Are there security issues involved in permitting this? If so, would it be acceptable to limit such a facility to plain-text files?

            Robert

            1. danm Metaweb Staff
              Jun 29, 2007
              danm says:

              Sure. We could definitely store and display other file formats (in fact we kind of do already) - its just a question of exposing new user interface support for it on Freebase.com. This is a good enhancement suggestion - we will have to think through implications a bit if people start storing large documents that they would like to search through - but some support for basic file upload and display seems very reasonable.

            2. May 7, 2009
              robertm says:

              I've just done a search in Help for 'attachment' - and the only thing that came up is this question of mine 2 years ago!   Any further thoughts on this?

            3. danm Metaweb Staff
              May 11, 2009
              danm says:

              I don't think this kind of enhancement is a priority for the folks working on Freebase at this time. Incidentally, I'm no longer one of them (despite the misassigned staff badge). Perhaps Kirrily can comment or put you in touch with someone who can. Cheers.

            4. skud Metaweb Staff
              May 11, 2009
              skud says:

              I asked around internally, and the state of things seems to be that our blob database is able to store binary attachments of any kind on the backend via the API, but there are no immediate plans to make this feature available via the website.

               What is the use case you have in mind?

               And if you just want to attach plain text files, you can currently do so using our API.  That's what descriptions are.  To connect them to your topic you would need to create schema with a property that expected a document.  They would be awkward to view through the website, but accessible via the API.

          Discussion is posted in:

          • close Core property types
          • close Adding Properties to Types

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

          • General Support,
          • Developer Support
        2.  

          Boolean

          also posted to
          • Core property types,
          • Guide to Freebase Types
          3 posts, latest post: evening, Aug 4, 2008
          Link to discussion
          1. evening Top Contributor Freebase Experts
            Aug 4, 2008
            evening says:

            I can't access the boolean link.  I receive this error:

            The error was: Internal Server Error

            I also do not see boolean as an option in the property data type options.  Is this still available?

            1. jeff Metaweb Staff
              Aug 4, 2008
              jeff says:

              What URL are you trying to go to when you get the server error?

              Boolean still exists, but it's not obvious in the client (there is a bug open to address this); the way to create a boolean property is to select "link to a topic" and type in "boolean".

            2. evening Top Contributor Freebase Experts
              Aug 4, 2008
              evening says:

              The link is this one, which is linked here.

              And thanks for the instructions on how to get it

          Discussion is posted in:

          • close Core property types
          • close Guide to Freebase Types
          • close Adding Properties to Types

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

          • General Support,
          • Developer Support
        3.  

          Can a property be populated by a list of property names?

          also posted to
          • Creating Schemas
          4 posts, latest post: aseem, Aug 1, 2007
          Link to discussion
          1. jkramersmyth
            Jul 31, 2007
            jkramersmyth says:

            I am trying to build a Spoiler type. Once associated to a Topic what I really want to do is have the option to have people add the names of properties associated with the Topic to the list of 'spoiler properites'. The ultimate goal would be to make it easy to tell external applications which properties of a topic are 'spoilers' (such as the name of Luke Skywalker's father). Is this possible now? Will this ever be possible?

            1. aseem Metaweb Staff
              Jul 31, 2007
              aseem says:

              Yes you can, simply specify the type of the property to be 'Property' and make sure that 'Restrict to one value' is unchecked (which it is by default).

              However, please keep in mind that as of right now it is not possible to restrict the properties to be properties of of a specific type for e.g. the Film type. As far as the system is concerned it will accept any property of any type. That would make it very easy for users providing the information to mess up.

              A simpler, more enforceable and arguably naive model would create a mediator type called spoiler which would connect a film and (for example) a film character. Users could then simply create a spoiler mediator for all characters that have spoiler information related to the film. You could then design any number of spoiler mediators for each type associated with a film/book that contains spoiler information.

              HTH

            2. jkramersmyth
              Aug 1, 2007
              jkramersmyth says:

              I see what was confusing me - when I created my new property I was trying to edit the Expected Type during creation. It only lets you set that value AFTER you create it!

              I don't exactly follow you idea for the spoiler mediator. Would this just be sort of a flag to say that there is spoiler data? Or would people add the spoiler values to the spoiler mediator for Star Wars/Luke Skywalker? It would be interesting to permit spoilers at the film/book level - but I am not sure I see how people would always be able to add the values they needed to. Can you give me an example so I am sure I understand your idea?

            3. aseem Metaweb Staff
              Aug 1, 2007
              aseem says:

              Think of mediators as a link connecting two or more types (with/without additional data) to model the existence of a relationship between the two without giving it a name.

              A couple of e-mails on the developers mailing list are good sources for a description:
              http://lists.freebase.com/pipermail/developers/2007-July/000435.html
              http://lists.freebase.com/pipermail/developers/2007-July/000437.html

              A good example is the film performance type. It links up the file, an actor and a film character with some additional data. It shows up in the film type because it has been linked 'back' in the film type via the performances property.

              At the very least what you would need to do if to
              1. create a type called film-character-spoiler (or something to that effect)
              2. Plead with the film domain admin(s) to allow you to link it up to the Film and Film Character
              3. Once you do that, all of a sudden the Film Type and Film Character Type will show up in the Suggested Properties in the fc-spoiler types page, which you can then add as properties to the the fc-spoiler type.
              4. Set them up as disambiguators, so that the UI displays them like it does file performances.
              5. At this time the UI will not allow you make the properties unique.
              6. Yes, its a pain :)

              I created an example for you in sandbox:
              http://sandbox.freebase.com/view/domain?id=%2Fuser%2Faseem%2Fdefault_domain
              Look at the mediator named types. Hurry, these disappear every Monday.

              HTH

          Discussion is posted in:

          • close Adding Properties to Types
          • close Creating Schemas

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

          • General Support,
          • Developer Support
        4.  

          can't add Timestamp property

          also posted to
          • Creating Schemas
          4 posts, latest post: faye, Jul 17, 2007
          Link to discussion
          1. Jul 15, 2007
            ddammann says:

            I created a new type and wanted to give it a Date/Time property named "Timestamp". Turns out I can't save a property with this name. Trying to be clever I named the property "Timestam", made it type Date/Time and successfully saved it but attempted to rename it to "Timestamp" didn't work. I couldn't find a predefined Timestamp type anywhere. Is this a hidden property or keyword or something?

            1. faye Metaweb Staff
              Jul 16, 2007
              faye says:

              Hi, timestamp is a reserved word in Freebase. Properties and Types cannot be named after reserved words. Some other reserved words are: "any", "attribute", "limit", "optional" and all MQL write directives.

            2. Jul 16, 2007
              ddammann says:

              Thanks. How do I see a list of reserved words? I did a keyword search on "Reserved Words" and, except for the MQL manual, came up dry. - Don

            3. faye Metaweb Staff
              Jul 17, 2007
              faye says:

              The API document on the Developers page has a list of reserved words that's not 100% complete but pretty close: all | any | as | attribute | class connect | count | create | cursor | datatype default | delete | destroy | else | for function | future | if | in | index insert | is | left | limit | link macro | meta | mql | offset | optional pagesize | property | read | relationship | replace return | right | scope | select | self sort | sql | super | this | typeguid update | var | while | write | xml Other reserved words to my knowledge: value, creator, and as you found out, timestamp.

          Discussion is posted in:

          • close Adding Properties to Types
          • close Creating Schemas

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

          • General Support,
          • Developer Support
        5.  

          bad link

          also posted to
          • Creating Schemas
          3 posts, latest post: danm, Apr 26, 2007
          Link to discussion
          1. Kenneth Trueman Top Contributor
            Apr 25, 2007
            Kenneth Trueman says:

            Hi.

            the link to the article on how to add properties is not working. it says "404 not found". Whoops! :)

            Ken

            1. Kenneth Trueman Top Contributor
              Apr 25, 2007
              Kenneth Trueman says:

              I mean the link halfway down the page in the body text that says:
              "A list of these core properties is found here." that link is bad...

            2. danm Metaweb Staff
              Apr 26, 2007
              danm says:

              Thanks for the catch. This has been fixed.

          Discussion is posted in:

          • close Adding Properties to Types
          • close Creating Schemas

          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

        • Core property types
        • Guide to Freebase Types
        • Creating Schemas
        ©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.228s
        Template: 0.108s
        Cost: br=19.0, cc=0.356, ch=0.0, cm=0.0, cm+h=0.0, cr=0.0, cs=8.0, cw=4.0, dr=8232.0, dt=0.474, dw=0.0, gqr=0.0, in=4670.0, ir=58.0, iw=0.0, lh=0.0, lm=1.0, lr=1.0, mcs=0.0, mcu=0.131, mr=4.0, nivcsw=67.0, nreqs=13.0, nvcsw=52.0, pf=0.0, pr=0.0, stime=0.024, te=0.076, tf=0.127, tg=0.115, tm=0.23, tr=0.062, ts=0.0, tu=0.056, utime=0.332, va=20131.0