url
This Page Semantic Annotations
- type = http://schema.org/CreativeWork
- name = url
- url = http://getschema.org/index.php/url
- inLanguage = en
- discussionUrl = http://getschema.org/index.php/Talk:url
- publisher = http://binarypark.org
- publishingPrinciples = getSchema:About
- dateModified = 2012-12-07
- interactionCount = 1,318,042
- version = 1328
Domain = Thing |
Range = Text |
Cardinality = 1 |
Description
url is a URL property designed to encode the URL of any Schema.org item. url is defined by the top schema.org type Thing therefore it is inherited by all types. That means that any artifact on the Web may have its own URL.
The typical usage is with the help of itemprop attribute inside of any HTML element.
Examples
A simple example when url is part of a context:
<div itemscope itemtype="http://schema.org/Restaurant"> <h1><a href="http://www.therootsrestaurant.com" itemprop="url">Roots Restaurant</a></h1> ... </div>
In the above example, the intended value of the url property is the value of the href
attribute, http://www.therootsrestaurant.com
.
At this time we see that a url must always be part of a specified context (by means of first parent element containing itemscope attribute)