Cheatography
https://cheatography.com
RDF in attributes, Lite edition
Basic Attributes
vocab |
Defines the default vocabulary for a paragraph <p>, or the whole document <body> |
<p vocab="http://schema.org/"> ... </p> |
typeof |
Designates the type of an individual within the current vocabulary |
<div typeof="Person"> ... </div> |
property |
Provides a property in the vocabulary for the individual (property value is a text string) |
<span property="name">Manu Sporny</span> |
property (URL) |
Provides a property whose value is a URL |
<a property="url" href="http://manu.sporny.org/">my homepage</a> |
Intermediate Attributes
resource |
Provides a handle for unique entities in the web page |
<p vocab="http://schema.org/" resource="#manu" typeof="Person"> ... </p> |
prefix |
Defines additional vocabularies |
<p vocab="http://schema.org/" prefix="ov: http://open.vocab.org/terms/" resource="#manu" typeof="Person"> ... My favorite animal is the <span property="ov:preferredAnimal">Liger</span>. </p> |
Example using all attributes
<body vocab="http://schema.org/">
...
<div property="breadcrumb">
<a href="http://www.ibm.com/developerworks/">IBM developerWorks</a> >
<a href="http://www.ibm.com/developerworks/web/">Web development</a> >
<a href="http://www.ibm.com/developerworks/views/web/library.jsp"
>Technical library</a>
</div>
<div typeof="Article">
<div property="name">An introduction to RDF</div>
<p property="author" resource="#uche.ogbuji" typeof="Person">
by <span property="name">Uche Ogbuji</span>, <span property="jobTitle">Partner</span>,
<span property="worksFor">Zepheira</span>.
</p>
<div>Published: <span property="datePublished">01 Dec 2000</span></div>
<div property="description">
<b>Summary</b>: This article introduces Resource Description Framework (RDF),
developed by the W3C for Web-based metadata, using XML as an interchange syntax.
RDF's essential aim is to make work easier for autonomous agents,
which would refine the Web by improving search engines and service directories.
Author Uche Ogbuji gives an overview of RDF aspects from schemas to usage scenarios.
The article assumes that you are already familiar with XML.
</div>
<div>Tags for this article:
<span property="keywords">introduction</span>,
<span property="keywords">rdf</span>,
<span property="keywords">tutorial</span>
.</div>
<div prefix="fben: http://www.freebase.com/ns/">
This article's texts is suitable for a wide audience, with a Fog index of
<span property="fben:gunning_fog_index">10.2</span>.
</div>
</div>
...
</body>
|
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment