|
Methods defined here:
- __init__(self)
- dataset = method(self, **kwargs)
- Provides access to various key/value databases used by Freebase, with the id in the path.
Args:
format: string, The format of the result.
Allowed values
json - The content is a JSON encoded object.
raw - The content of the response is the raw bytes of the desired value. The content-type is set to text/plain
id: string, The id of the item that you want data about (required) (repeated)
dbName: string, A parameter (required)
- image = method(self, **kwargs)
- Returns the scaled/cropped image attached to a freebase node.
Args:
maxwidth: integer, Maximum width in pixels for resulting image.
maxheight: integer, Maximum height in pixels for resulting image.
fallbackid: string, Use the image associated with this secondary id if no image is associated with the primary id.
pad: boolean, A boolean specifying whether the resulting image should be padded up to the requested dimensions.
mode: string, Method used to scale or crop image.
Allowed values
fill - TODO(bendrees)
fillcrop - TODO(bendrees)
fillcropmid - TODO(bendrees)
fit - TODO(bendrees)
id: string, Freebase entity or content id, mid, or guid. (required) (repeated)
- mqlread = method(self, **kwargs)
- Performs MQL Queries.
Args:
lang: string, The language of the results - an id of a /type/lang object.
cursor: string, The mql cursor.
indent: integer, How many spaces to indent the json.
callback: string, JS method name for JSONP callbacks.
uniqueness_failure: string, How MQL responds to uniqueness failures.
Allowed values
hard - Be strict - throw an error.
soft - Just return the first encountered object.
html_escape: boolean, Whether or not to escape entities.
cost: boolean, Show the costs or not.
query: string, An envelope containing a single MQL query. (required)
as_of_time: string, Run the query as it would've been run at the specified point in time.
- mqlwrite = method(self, **kwargs)
- Performs MQL Write Operations.
Args:
body: object, The request body. (required)
indent: integer, How many spaces to indent the json.
callback: string, JS method name for JSONP callbacks.
use_permission_of: string, Use the same permission node of the object with the specified id.
query: string, An MQL query with write directives. (required)
- text = methodResource(self)
- A collection resource.
- upload = method(self, **kwargs)
- Uploads data to the Freebase blobstore and creates documents in the graph.
Args:
lang: string, An id of a /type/lang object that will be used as the language - e.g. '/lang/fr'
body: object, The request body.
license: string, An id of a /common/license object that you want to use as the license of this content
media_body: string, The filename of the media request body.
text_encoding: string, The encoding of the content - e.g. 'utf-8'
rights_holder: string, An id of a user or topic that is considered to be the rights holder for this content - applies only to images.
use_permission_of: string, An id of an object that has the permissions that you want to use in the document node.
content: string, An id of a /type/content object that should be the last content attached to the document node specified. This is a consistency check and will make sure that the content has not changed since the request was created. The document parameter must also be passed if this is present.
document: string, An id of a /common/document object that you'd like to attach this content.
- user = methodResource(self)
- A collection resource.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|