Outdated egg!

This is an egg for CHICKEN 3, the unsupported old release. You're almost certainly looking for the CHICKEN 4 version of this egg, if it exists.

If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.

  1. Outdated egg!
  2. Metaweb
    1. Examples
      1. Authenticating with Freebase
      2. Querying Freebase for album information
    2. Author
    3. Requires
    4. Parameters
      1. metaweb-current-base-uri
      2. metaweb-current-headers
    5. Authentication
      1. metaweb-login!
    6. Services
      1. metaweb-query
    7. metaweb-download
    8. metaweb-create!
    9. metaweb-upload!
    10. License
    11. Version history

Metaweb

This egg provides HTTP/JSON remote procedure calls for the Metaweb API and web services as used on Freebase.

(More information coming soon.)

Examples

Authenticating with Freebase

While Metaweb is rolling out and scaling up Freebase, the API can only be accessed by users who have a Freebase account (currently invitation-only). Thus, you must use metaweb-login! to establish a cookie-based session before using any of the other API procedures provided by this egg.

#;1> (use metaweb)

(metaweb-login! "myuser" "secret123")

Querying Freebase for album information

TODO

#;1> (use metaweb)

(metaweb-query type: "/music/artist" name: "The Police" album: ())

Author

Arto Bendiken

Requires

Parameters

metaweb-current-base-uri

[parameter] (metaweb-current-base-uri [BASE-URI])

metaweb-current-headers

[parameter] (metaweb-current-headers [HEADERS])

Authentication

metaweb-login!

[procedure] (metaweb-login! USERNAME PASSWORD)

Services

metaweb-query

[procedure] (metaweb-query QUERY ...)

metaweb-download

[procedure] (metaweb-download ...)

metaweb-create!

[procedure] (metaweb-create! ...)

metaweb-upload!

[procedure] (metaweb-upload! ...)

License

 Copyright (c) 2007 Arto Bendiken.
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to
 deal in the Software without restriction, including without limitation the
 rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 sell copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 
 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.
 
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 IN THE SOFTWARE.

Version history

Not released yed, but available from SVN in very early alpha form.