Image
Attributes available to image entities in the Knowledge Graph.
The Image entity type encompasses images found throughout the web and known to the Knowledge Graph.
Note that fields are not guaranteed to exist in every entity record.
For convenience, a complete ontology source in JSON format is also available here.
New to the Diffbot Knowledge Graph? Start here.
Image Fields
- anchorUrl
- breadcrumb
- crawlTimestamp
- diffbotUri
- displayHeight
- displayWidth
- id
- language
- links
- naturalHeight
- naturalWidth
- pageUrl
- resolvedPageUrl
- tags
- title
- type
- types
- url
- xpath
Image Field Details
Note that certain longer field examples may be truncated for readability.
anchorUrl
Points to an anchor within a page (like `href="#top"`)
- Type: String
- Example:
{
"anchorUrl": ""
}
breadcrumb
Graphical control element frequently used as a navigational aid; Returns a top-level array of URLs and link text from page breadcrumbs
- Type: GlobalIndexBreadcrumb
- Example:
{
"breadcrumb": [
{
"link": "",
"name": ""
}
]
}
crawlTimestamp
Last time a site was crawled/indexed
- Type: Integer
- Example:
{
"crawlTimestamp": 1700198633
}
diffbotUri
diffbotUri is a combination of an entityID and a corresponding web address or uniform resource identifier (URI), which is defined by appending the entityID to the URL https://www.diffbot.com/entity/;. For example, Diffbot's entityID is CWSwJ_SWQPfqO3HQsxY4lGg and its DiffbotUri is https://www.diffbot.com/entity/CWSwJ_SWQPfqO3HQsxY4lGg
- Type: String
- Example:
{
"diffbotUri": "http://diffbot.com/entity/IMG62073555748"
}
displayHeight
Height of image as presented in the browser (and as sized via browser/CSS, if resized)
- Type: Integer
- Example:
{
"displayHeight": 0
}
displayWidth
Width of image as presented in the browser (and as sized via browser/CSS, if resized)
- Type: Integer
- Example:
{
"displayWidth": 0
}
id
Each entity in the Diffbot KnowledgeGraph (DKG) is identified by a unique identifier, an alphanumeric string like CWSwJ_SWQPfqO3HQsxY4lGg that uniquely identifies that entity. The id is directly derived from the most authoritative origin from the origins array.
- Type: String
- Example:
{
"id": "IMG62073555748"
}
language
- Type: String
- Example:
{
"language": ""
}
links
- Type: String
- Example:
{
"links": ""
}
naturalHeight
Raw image height, in pixels
- Type: Integer
- Example:
{
"naturalHeight": 3417
}
naturalWidth
Raw image width in pixels
- Type: Integer
- Example:
{
"naturalWidth": 3418
}
pageUrl
URL of submitted page / page from which the entity is extracted
- Type: String
- Example:
{
"pageUrl": ""
}
resolvedPageUrl
Returned if the pageUrl redirects to another URL
- Type: String
- Example:
{
"resolvedPageUrl": ""
}
tags
Array of tags/entities, generated from analysis of the extracted text and cross-referenced with DBpedia and other data sources. Language-specific tags will be returned if the source text is in English, Chinese, French, German, Spanish or Russian.
- Type: GlobalIndexTag
- Example:
{
"tags": [
{
"score": "",
"sentiment": "",
"types": "",
"count": 0,
"label": "",
"uri": ""
}
]
}
title
Title of the Image
- Type: String
- Example:
{
"title": "Mike Tung of Diffbot"
}
type
The top-level type of a Diffbot entity. Examples of type include Person, Organization, Article, Product.
- Type: Type
- Example:
{
"type": "Image"
}
types
There are tags.types which can only refer to dbpedia rdf types, while there are also the general DiffbotEntity types which is just an array of all the types an object belongs to. For instance a LocalBusiness would have `types:["Organization","LocalBusiness"]` Finally, there are types that indicate a belonging to a subgroup such as business vs personal email address.
- Type: String
- Example:
{
"types": [
"Image"
]
}
url
URL of the image
- Type: String
- Example:
{
"url": "https://imageio.forbes.com/specials-images/imageserve/5cd587b85ea6490008c81044/Mike-Tung-of-Diffbot/0x0.jpg?format=jpg&crop=3418,3417,x470,y0,safe&height=3417&width=3418"
}
xpath
XPath expression identifying the image node
- Type: String
- Example:
{
"xpath": ""
}
Updated 13 days ago