Skip to content

Latest commit

 

History

History
257 lines (143 loc) · 5.87 KB

place.schema.md

File metadata and controls

257 lines (143 loc) · 5.87 KB

Place Schema

https://ns.adobe.com/xdm/context/place

A place in the real world with a physical location.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Experimental Yes Forbidden Permitted context/place.schema.json

Schema Hierarchy

Place Example

{
  "@id": "https://data.adobe.io/entities/places/locationid-123456",
  "schema:description": "A nice place to work",
  "xdm:address": {
    "@id": "https://data.adobe.io/entities/address/123",
    "xdm:primary": false,
    "xdm:street1": "345 Park Ave",
    "xdm:city": "San Jose",
    "xdm:stateProvince": "US-CA",
    "xdm:postalCode": "95110",
    "xdm:country": "United States",
    "xdm:countryCode": "US",
    "schema:latitude": 37.3382,
    "schema:longitude": 121.8863,
    "xdm:status": "active",
    "xdm:lastVerifiedDate": "2018-01-02"
  },
  "schema:telephone": "1-408-888-0000",
  "xdm:containsPlaces": [
    "https://data.adobe.io/entities/places/locationid-123457",
    "https://data.adobe.io/entities/places/locationid-123458"
  ]
}

Place Properties

Property Type Required Defined by
@id string Optional Place (this schema)
schema:branchCode string Optional Place (this schema)
schema:description string Optional Place (this schema)
schema:telephone string Optional Place (this schema)
xdm:address Address Optional Place (this schema)
xdm:containedInPlace string Optional Place (this schema)
xdm:containsPlaces string[] Optional Place (this schema)
xdm:pointOfInterest Geo Coordinates Optional Place (this schema)
xdm:shape Geo Shape Optional Place (this schema)
* any Additional this schema allows additional properties

@id

Place ID

The unique identifier of the place.

@id

  • is optional
  • type: string
  • defined in this schema

@id Type

string

  • format: uri – Uniformous Resource Identifier (according to RFC3986)

schema:branchCode

Location Code

A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parent Organization and used in structured URLs.

For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.

schema:branchCode

  • is optional
  • type: string
  • defined in this schema

schema:branchCode Type

string

schema:description

Description

The description of the physical location.

schema:description

  • is optional
  • type: string
  • defined in this schema

schema:description Type

string

schema:telephone

Phone Number

The phone number.

schema:telephone

  • is optional
  • type: string
  • defined in this schema

schema:telephone Type

string

xdm:address

Address

The physical address of the location.

xdm:address

  • is optional
  • type: Address
  • defined in this schema

xdm:address Type

  • Addresshttps://ns.adobe.com/xdm/common/address

xdm:containedInPlace

Contained by Location

XDM URI of another Place that this place is contained in.

This property is based on schema:containedInPlace, but is using URI references instead of embedding the containing place.

xdm:containedInPlace

  • is optional
  • type: string
  • defined in this schema

xdm:containedInPlace Type

string

  • format: uri – Uniformous Resource Identifier (according to RFC3986)

xdm:containsPlaces

Contains Locations

An array of XDM URIs of other Place instances that this place is containing.

This property is based on schema:containsPlace, but is using URI references instead of embedding the containing place. In addition, it is an array, allowing one place to include multiple other places.

xdm:containsPlaces

  • is optional

  • type: string[]

  • defined in this schema

xdm:containsPlaces Type

Array type: string[]

All items must be of the type: string

  • format: uri – Uniformous Resource Identifier (according to RFC3986)

The XDM URI of another Place that this place contains.

xdm:pointOfInterest

Point of Interest

The coordinates of the point of interest for this location.

xdm:pointOfInterest

  • is optional
  • type: Geo Coordinates
  • defined in this schema

xdm:pointOfInterest Type

xdm:shape

Geo Shape

The geographic shape of the physical location.

xdm:shape

  • is optional
  • type: Geo Shape
  • defined in this schema

xdm:shape Type