-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
133 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<!doctype html> | ||
<html prefix="dc: http://purl.org/dc/elements/1.1/ schema: http://schema.org/"> | ||
<head> | ||
<title>Complex RDFa Example with rev</title> | ||
</head> | ||
<body> | ||
<article | ||
typeof="schema:Book" | ||
about="https://example.org/book/the-great-novel" | ||
> | ||
<h1 property="dc:title">The Great Novel</h1> | ||
<p> | ||
Written by | ||
<span | ||
property="schema:author" | ||
typeof="schema:Person" | ||
about="https://example.org/author/john-doe" | ||
> | ||
<span property="schema:name">John Doe</span> </span | ||
>. | ||
</p> | ||
<p> | ||
Published by | ||
<span | ||
property="schema:publisher" | ||
typeof="schema:Organization" | ||
about="https://example.org/publisher/fictional-publishers" | ||
> | ||
<span property="schema:name">Fictional Publishers</span> | ||
</span> | ||
in | ||
<time property="schema:datePublished" datetime="2023-01-01" | ||
>January 2023</time | ||
>. | ||
</p> | ||
<p> | ||
Reviewed by | ||
<a | ||
href="https://example.org/reviewer/jane-smith" | ||
rel="schema:reviewedBy" | ||
typeof="schema:Person" | ||
> | ||
<span property="schema:name">Jane Smith</span> </a | ||
>. | ||
</p> | ||
<p> | ||
<a | ||
href="https://example.org/library/city-library" | ||
rev="schema:hasPart" | ||
typeof="schema:Library" | ||
> | ||
Part of City Library Collection | ||
</a> | ||
</p> | ||
<p> | ||
<a | ||
href="https://example.org/book/the-sequel" | ||
rev="schema:prequel" | ||
typeof="schema:Book" | ||
> | ||
Prequel: The Sequel | ||
</a> | ||
</p> | ||
</article> | ||
|
||
<footer> | ||
<p> | ||
<a | ||
href="https://example.org/book/the-great-novel" | ||
rel="schema:hasReview" | ||
typeof="schema:Review" | ||
> | ||
Read reviews for The Great Novel | ||
</a> | ||
</p> | ||
<p> | ||
<a | ||
href="https://example.org/publisher/fictional-publishers" | ||
rev="schema:publisher" | ||
typeof="schema:Book" | ||
> | ||
Published books by Fictional Publishers | ||
</a> | ||
</p> | ||
</footer> | ||
</body> | ||
</html> |
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,35 @@ | ||
|
||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix schema: <http://schema.org/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
<https://example.org/book/the-great-novel> | ||
rdf:type schema:Book; | ||
rdf:type schema:Review; | ||
<http://purl.org/dc/elements/1.1/title> "The Great Novel"; | ||
schema:datePublished "2023-01-01"^^xsd:date; | ||
schema:reviewedBy <https://example.org/reviewer/jane-smith> . | ||
<https://example.org/author/john-doe> | ||
rdf:type schema:Person; | ||
schema:author """ | ||
John Doe """; | ||
schema:name "John Doe" . | ||
<https://example.org/publisher/fictional-publishers> | ||
rdf:type schema:Organization; | ||
rdf:type schema:Book; | ||
schema:publisher """ | ||
Fictional Publishers | ||
"""; | ||
schema:publisher <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/>; | ||
schema:name "Fictional Publishers" . | ||
<https://example.org/reviewer/jane-smith> | ||
rdf:type schema:Person; | ||
schema:name "Jane Smith" . | ||
<https://example.org/library/city-library> | ||
rdf:type schema:Library; | ||
schema:hasPart <https://example.org/book/the-great-novel> . | ||
<https://example.org/book/the-sequel> | ||
rdf:type schema:Book; | ||
schema:prequel <https://example.org/book/the-great-novel> . | ||
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/> | ||
schema:hasReview <https://example.org/book/the-great-novel> . |
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