<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <dspl targetNamespace="http://www.google.com/publicdata/dataset/google/entity" xmlns="http://schemas.google.com/dspl/2010"> <info> <name> <value xml:lang="en">Entity concepts</value> </name> <description> <value xml:lang="en">Entity concepts.</value> </description> <url> <value xml:lang="en">http://code.google.com/apis/publicdata/docs/canonical/entity.html</value> </url> </info> <provider> <name> <value xml:lang="en">Google Inc.</value> </name> <description> <value xml:lang="en">Google Inc.</value> </description> <url> <value xml:lang="en">http://www.google.com</value> </url> </provider> <concepts> <concept id="entity"> <info> <name> <value xml:lang="en">Entity</value> </name> <description> <value xml:lang="en">Base concept for defining concepts that represent entities.</value> </description> </info> <type ref="string"/> <attribute concept="entity_order"/> <property id="name"> <info> <name> <value xml:lang="en">Name</value> </name> <description> <value xml:lang="en"> The name used to display an entity. Example: <![CDATA[<concept id="airport" extends="entity:entity"> <info> <name> <value>Airport</value> </name> <description> <value>Airports, identified by their 3-letter IATA code</value> </description> </info> <table ref="airports_table"/> </concept>]]> The airports_table contains a “name” column, with the name of each airport: airport,name MLB,Melbourne International Airport SFO,San Francisco International Airport LGW,London Gatwick Airport Note: names can be provided in multiple languages, in different columns, using concept table mappings. </value> </description> </info> <type ref="string"/> </property> <property id="description"> <info> <name> <value xml:lang="en">Description</value> </name> <description> <value xml:lang="en"> The description of an entity. Usage example: <![CDATA[<concept id="airport" extends="entity:entity"> <info> <name> <value>Airport</value> </name> <description> <value>Airports, identified by their 3-letter IATA code</value> </description> </info> <table ref="airports_table"/> </concept>]]> The airports_table contains a “description” column, with a description of each airport: airport,name,description MLB,Melbourne International Airport, "... located 1 1/2 miles northwest of the downtown business district ..." SFO,San Francisco International Airport, "... international airport located 13 miles south of San Francisco ..." LGW, London Gatwick Airport, "... located 5 km (3.1 mi) north of the centre of Crawley, West Sussex ..." LHR, London Heathrow Airport, "... largest airport in the United Kingdom ..." </value> </description> </info> <type ref="string"/> </property> <property id="info_url"> <info> <name> <value xml:lang="en">Info Url</value> </name> <description> <value xml:lang="en"> A URL where more information can be found about an entity. Usage example: <![CDATA[<concept id="airport" extends="entity:entity"> <info> <name> <value>Airport</value> </name> <description> <value>Airports, identified by their 3-letter IATA code</value> </description> </info> <table ref="airports_table"/> </concept>]]> The countries table contains an “info_url” column, with an info URL for each country. country, name, info_url AD, Andorra, http://en.wikipedia.org/wiki/Andorra AF, Afghanistan, http://en.wikipedia.org/wiki/Afghanistan AI, Anguilla, http://en.wikipedia.org/wiki/Anguilla AL, Albania, http://en.wikipedia.org/wiki/Albania </value> </description> </info> <type ref="string"/> </property> <property id="color"> <info> <name> <value xml:lang="en">Color</value> </name> <description> <value xml:lang="en"> A color, represented by its hexadecimal code (e.g., "#FFAB00"). Example: <![CDATA[<concept id="us_political_party" extends="entity:entity"> <info> <name> <value>US Political party</value> </name> </info> <table ref="parties_table"/> </concept>]]> The parties_table contains a party_color column: party, name, color rep, Republican party, #FF0000 dem, Democratic party, #0000FF </value> </description> </info> <type ref="string"/> </property> </concept> <concept id="entity_order"> <info> <name> <value xml:lang="en">Entity order</value> </name> <description> <value xml:lang="en"> Specifies the order in which the entities should be displayed. ALPHA is alphabetical order, TABLE is the order of entities in the table. Example: <![CDATA[<concept id="industry" extends="entity:entity"> <info> <name> <value xml:lang="en">Industry</value> </name> </info> <attribute id="order"> <value>NATURAL</value> </attribute> <property id="industry" isParent="true"/> <table ref="industries_tbl"/> </concept>]]> </value> </description> </info> <type ref="string" /> <defaultValue>ALPHA</defaultValue> <table ref="entity_order_table" /> </concept> </concepts> <tables> <table id="entity_order_table"> <column id="entity_order" type="string" /> <data> <file format="csv" encoding="utf-8">entity_order.csv</file> </data> </table> </tables> </dspl>
entity.xml
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[[["\u003cp\u003eThis document outlines entity concepts, providing a base for defining concepts that represent entities within a system.\u003c/p\u003e\n"],["\u003cp\u003eEntities can have properties like name, description, info URL, and color, which are stored in associated tables.\u003c/p\u003e\n"],["\u003cp\u003eEntities are displayed in a specified order, which can be alphabetical, table-based, or a natural order defined in the concept.\u003c/p\u003e\n"],["\u003cp\u003eThe document uses XML to define these concepts, properties, and display order within a structured format.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Inc.provides this framework for defining and displaying entity data.\u003c/p\u003e\n"]]],["This XML defines the \"entity\" concept with properties like `name`, `description`, `info_url`, and `color`. The `entity` concept serves as a base for other entity-based concepts, such as \"airport,\" \"industry\" or \"us_political_party\". Each property has a string type and can be linked to a table column for data. The `entity_order` concept determines the display order of entities, with default `ALPHA` ordering or table order. It has a table named `entity_order_table`.\n"],null,["```carbon\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?\u003e\n\u003cdspl targetNamespace=\"http://www.google.com/publicdata/dataset/google/entity\"\n xmlns=\"http://schemas.google.com/dspl/2010\"\u003e\n\n \u003cinfo\u003e\n \u003cname\u003e\n \u003cvalue xml:lang=\"en\"\u003eEntity concepts\u003c/value\u003e\n \u003c/name\u003e\n \u003cdescription\u003e\n \u003cvalue xml:lang=\"en\"\u003eEntity concepts.\u003c/value\u003e\n \u003c/description\u003e\n \u003curl\u003e\n \u003cvalue xml:lang=\"en\"\u003ehttp://code.google.com/apis/publicdata/docs/canonical/entity.html\u003c/value\u003e\n \u003c/url\u003e\n \u003c/info\u003e\n\n \u003cprovider\u003e\n \u003cname\u003e\n \u003cvalue xml:lang=\"en\"\u003eGoogle Inc.\u003c/value\u003e\n \u003c/name\u003e\n \u003cdescription\u003e\n \u003cvalue xml:lang=\"en\"\u003eGoogle Inc.\u003c/value\u003e\n \u003c/description\u003e\n \u003curl\u003e\n \u003cvalue xml:lang=\"en\"\u003ehttp://www.google.com\u003c/value\u003e\n \u003c/url\u003e\n \u003c/provider\u003e\n\n \u003cconcepts\u003e\n \u003cconcept id=\"entity\"\u003e\n \u003cinfo\u003e\n \u003cname\u003e\n \u003cvalue xml:lang=\"en\"\u003eEntity\u003c/value\u003e\n \u003c/name\u003e\n \u003cdescription\u003e\n \u003cvalue xml:lang=\"en\"\u003eBase concept for defining concepts that represent entities.\u003c/value\u003e\n \u003c/description\u003e\n \u003c/info\u003e\n \u003ctype ref=\"string\"/\u003e\n \u003cattribute concept=\"entity_order\"/\u003e\n \u003cproperty id=\"name\"\u003e\n \u003cinfo\u003e\n \u003cname\u003e\n \u003cvalue xml:lang=\"en\"\u003eName\u003c/value\u003e\n \u003c/name\u003e\n \u003cdescription\u003e\n \u003cvalue xml:lang=\"en\"\u003e\n The name used to display an entity.\n\n Example:\n\n \u003c![CDATA[\u003cconcept id=\"airport\" extends=\"entity:entity\"\u003e\n \u003cinfo\u003e\n \u003cname\u003e\n \u003cvalue\u003eAirport\u003c/value\u003e\n \u003c/name\u003e\n \u003cdescription\u003e\n \u003cvalue\u003eAirports, identified by their 3-letter IATA code\u003c/value\u003e\n \u003c/description\u003e\n \u003c/info\u003e\n \u003ctable ref=\"airports_table\"/\u003e\n \u003c/concept\u003e]]\u003e\n\n The airports_table contains a \"name\" column, with the name of each airport:\n\n airport,name\n MLB,Melbourne International Airport\n SFO,San Francisco International Airport\n LGW,London Gatwick Airport\n\n Note: names can be provided in multiple languages, in different columns,\n using concept table mappings.\n \u003c/value\u003e\n \u003c/description\u003e\n \u003c/info\u003e\n \u003ctype ref=\"string\"/\u003e\n \u003c/property\u003e\n \u003cproperty id=\"description\"\u003e\n \u003cinfo\u003e\n \u003cname\u003e\n \u003cvalue xml:lang=\"en\"\u003eDescription\u003c/value\u003e\n \u003c/name\u003e\n \u003cdescription\u003e\n \u003cvalue xml:lang=\"en\"\u003e\n The description of an entity.\n\n Usage example:\n\n \u003c![CDATA[\u003cconcept id=\"airport\" extends=\"entity:entity\"\u003e\n \u003cinfo\u003e\n \u003cname\u003e\n \u003cvalue\u003eAirport\u003c/value\u003e\n \u003c/name\u003e\n \u003cdescription\u003e\n \u003cvalue\u003eAirports, identified by their 3-letter IATA code\u003c/value\u003e\n \u003c/description\u003e\n \u003c/info\u003e\n \u003ctable ref=\"airports_table\"/\u003e\n \u003c/concept\u003e]]\u003e\n\n The airports_table contains a \"description\" column, with a description of each airport:\n\n airport,name,description\n MLB,Melbourne International Airport, \"... located 1 1/2 miles northwest of the downtown business district ...\"\n SFO,San Francisco International Airport, \"... international airport located 13 miles south of San Francisco ...\"\n LGW, London Gatwick Airport, \"... located 5 km (3.1 mi) north of the centre of Crawley, West Sussex ...\"\n LHR, London Heathrow Airport, \"... largest airport in the United Kingdom ...\"\n \u003c/value\u003e\n \u003c/description\u003e\n \u003c/info\u003e\n \u003ctype ref=\"string\"/\u003e\n \u003c/property\u003e\n \u003cproperty id=\"info_url\"\u003e\n \u003cinfo\u003e\n \u003cname\u003e\n \u003cvalue xml:lang=\"en\"\u003eInfo Url\u003c/value\u003e\n \u003c/name\u003e\n \u003cdescription\u003e\n \u003cvalue xml:lang=\"en\"\u003e\n A URL where more information can be found about an entity.\n\n Usage example:\n\n \u003c![CDATA[\u003cconcept id=\"airport\" extends=\"entity:entity\"\u003e\n \u003cinfo\u003e\n \u003cname\u003e\n \u003cvalue\u003eAirport\u003c/value\u003e\n \u003c/name\u003e\n \u003cdescription\u003e\n \u003cvalue\u003eAirports, identified by their 3-letter IATA code\u003c/value\u003e\n \u003c/description\u003e\n \u003c/info\u003e\n \u003ctable ref=\"airports_table\"/\u003e\n \u003c/concept\u003e]]\u003e\n\n The countries table contains an \"info_url\" column, with an info URL for each country.\n\n country, name, info_url\n AD, Andorra, http://en.wikipedia.org/wiki/Andorra\n AF, Afghanistan, http://en.wikipedia.org/wiki/Afghanistan\n AI, Anguilla, http://en.wikipedia.org/wiki/Anguilla\n AL, Albania, http://en.wikipedia.org/wiki/Albania\n \u003c/value\u003e\n \u003c/description\u003e\n \u003c/info\u003e\n \u003ctype ref=\"string\"/\u003e\n \u003c/property\u003e\n \u003cproperty id=\"color\"\u003e\n \u003cinfo\u003e\n \u003cname\u003e\n \u003cvalue xml:lang=\"en\"\u003eColor\u003c/value\u003e\n \u003c/name\u003e\n \u003cdescription\u003e\n \u003cvalue xml:lang=\"en\"\u003e\n A color, represented by its hexadecimal code (e.g., \"#FFAB00\").\n\n Example:\n\n \u003c![CDATA[\u003cconcept id=\"us_political_party\" extends=\"entity:entity\"\u003e\n \u003cinfo\u003e\n \u003cname\u003e\n \u003cvalue\u003eUS Political party\u003c/value\u003e\n \u003c/name\u003e\n \u003c/info\u003e\n \u003ctable ref=\"parties_table\"/\u003e\n \u003c/concept\u003e]]\u003e\n\n The parties_table contains a party_color column:\n\n party, name, color\n rep, Republican party, #FF0000\n dem, Democratic party, #0000FF\n \u003c/value\u003e\n \u003c/description\u003e\n \u003c/info\u003e\n \u003ctype ref=\"string\"/\u003e\n \u003c/property\u003e\n \u003c/concept\u003e\n\n \u003cconcept id=\"entity_order\"\u003e\n \u003cinfo\u003e\n \u003cname\u003e\n \u003cvalue xml:lang=\"en\"\u003eEntity order\u003c/value\u003e\n \u003c/name\u003e\n \u003cdescription\u003e\n \u003cvalue xml:lang=\"en\"\u003e\n Specifies the order in which the entities should be displayed.\n ALPHA is alphabetical order, TABLE is the order of entities in the\n table.\n\n Example:\n\n \u003c![CDATA[\u003cconcept id=\"industry\" extends=\"entity:entity\"\u003e\n \u003cinfo\u003e\n \u003cname\u003e\n \u003cvalue xml:lang=\"en\"\u003eIndustry\u003c/value\u003e\n \u003c/name\u003e\n \u003c/info\u003e\n \u003cattribute id=\"order\"\u003e\n \u003cvalue\u003eNATURAL\u003c/value\u003e\n \u003c/attribute\u003e\n \u003cproperty id=\"industry\" isParent=\"true\"/\u003e\n \u003ctable ref=\"industries_tbl\"/\u003e\n \u003c/concept\u003e]]\u003e\n \u003c/value\u003e\n \u003c/description\u003e\n \u003c/info\u003e\n \u003ctype ref=\"string\" /\u003e\n \u003cdefaultValue\u003eALPHA\u003c/defaultValue\u003e\n \u003ctable ref=\"entity_order_table\" /\u003e\n \u003c/concept\u003e\n \u003c/concepts\u003e\n\n \u003ctables\u003e\n \u003ctable id=\"entity_order_table\"\u003e\n \u003ccolumn id=\"entity_order\" type=\"string\" /\u003e\n \u003cdata\u003e\n \u003cfile format=\"csv\" encoding=\"utf-8\"\u003eentity_order.csv\u003c/file\u003e\n \u003c/data\u003e\n \u003c/table\u003e\n \u003c/tables\u003e\n\u003c/dspl\u003e\n```"]]