-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a test for itemid and content attributes
- Loading branch information
1 parent
f763ad5
commit d2f6572
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"items": [ | ||
{ | ||
"id": "urn:isbn:0-330-34032-8", | ||
"type": [ "https://vocab.example.net/book" ], | ||
"properties": { | ||
"title": [ "The Reality Dysfunction" ], | ||
"author": [ "Peter F. Hamilton" ], | ||
"date": [ "1996-01-26" ], | ||
"publisher": [ "Macmillan Publishers Limited" ] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- URI: http://books.example.com/the-reality-dysfunction/ --> | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<title>The Reality Dysfunction</title> | ||
</head> | ||
<body> | ||
<div itemscope itemtype="https://vocab.example.net/book" itemid="urn:isbn:0-330-34032-8"> | ||
<div>Title: <span itemprop="title">The Reality Dysfunction</span></div> | ||
<div>Author: <span itemprop="author">Peter F. Hamilton</span></div> | ||
<div>Publication date: <time itemprop="date" datetime="1996-01-26">26 January 1996</time></div> | ||
<meta itemprop="publisher" content="Macmillan Publishers Limited"> | ||
</div> | ||
</body> | ||
</html> |