Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
@itemprop-reverse
tests, for issue #5.
- Loading branch information
Showing
11 changed files
with
439 additions
and
157 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,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Test 0081</title> | ||
</head> | ||
<body> | ||
<div itemscope itemtype="http://schema.org/Person"> | ||
<span itemprop="name">William Shakespeare</span> | ||
<link itemprop-reverse="creator" href="http://www.freebase.com/m/0yq9mqd"> | ||
</div> | ||
</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,8 @@ | ||
@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#> . | ||
|
||
<http://www.freebase.com/m/0yq9mqd> schema:creator [ | ||
a schema:Person; | ||
schema:name "William Shakespeare" | ||
] . |
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,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Test 0082</title> | ||
</head> | ||
<body> | ||
<div itemscope itemtype="http://schema.org/ShoppingCenter"> | ||
<span itemprop="name">The ACME Shopping Mall on Structured Data Avenue</span> | ||
<span itemprop="description">The ACME Shopping Mall is your one-stop paradise for all data-related shopping needs, from schemas to instance data</span> | ||
<p>Here is a list of shops inside:</p> | ||
<div itemprop-reverse="containedIn" itemscope itemtype="http://schema.org/Restaurant"> | ||
<span itemprop="name">Dan Brickley's Data Restaurant</span> | ||
</div> | ||
<div itemprop-reverse="containedIn" itemscope itemtype="http://schema.org/Bakery"> | ||
<span itemprop="name">Ramanathan Guha's Meta Content Framework Bakery</span> | ||
</div> | ||
</div> | ||
</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,19 @@ | ||
@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#> . | ||
|
||
[ | ||
a schema:Bakery; | ||
schema:containedIn _:mall; | ||
schema:name "Ramanathan Guha's Meta Content Framework Bakery" | ||
] . | ||
|
||
[ | ||
a schema:Restaurant; | ||
schema:containedIn _:mall; | ||
schema:name "Dan Brickley's Data Restaurant" | ||
] . | ||
|
||
_:mall a schema:ShoppingCenter; | ||
schema:description "The ACME Shopping Mall is your one-stop paradise for all data-related shopping needs, from schemas to instance data"; | ||
schema:name "The ACME Shopping Mall on Structured Data Avenue" . |
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,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Test 0083</title> | ||
</head> | ||
<body> | ||
<div itemscope itemtype="http://schema.org/Person"> | ||
<span itemprop="name">William Shakespeare</span> | ||
<meta itemprop-reverse="creator" content="foo"> | ||
</div> | ||
</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,5 @@ | ||
@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#> . | ||
|
||
[ a schema:Person; schema:name "William Shakespeare"] . |
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,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Test 0084</title> | ||
</head> | ||
<body> | ||
<div itemscope itemtype="http://schema.org/Organization"> | ||
<span itemprop="name">Cryptography Users</span> | ||
<div itemprop-reverse="memberOf" itemprop="member" itemscope | ||
itemtype="http://schema.org/OrganizationRole"> | ||
<div itemprop-reverse="memberOf" itemprop="member" itemscope | ||
itemtype="http://schema.org/Person"> | ||
<span itemprop="name">Alice</span> | ||
</div> | ||
<span itemprop="startDate">1977</span> | ||
</div> | ||
</div> | ||
</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,16 @@ | ||
@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#> . | ||
|
||
_:alice a schema:Person; | ||
schema:memberOf _:role; | ||
schema:name "Alice" . | ||
|
||
_:org a schema:Organization; | ||
schema:member _:role; | ||
schema:name "Cryptography Users" . | ||
|
||
_:role a schema:OrganizationRole; | ||
schema:member _:alice; | ||
schema:memberOf _:org; | ||
schema:startDate "1977" . |
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
Oops, something went wrong.