Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spec tests and fix issue with
pruneBlankNodeIdentifiers
- Add tests p010, p020, p021, and p046 (thanks for the pointer @eroux) - Update test data for test 0021 from https://json-ld.org/test-suite/ - Fix issue with `pruneBlankNodeIdentifiers` exposed by test p021
- Loading branch information
Showing
12 changed files
with
228 additions
and
31 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
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
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,4 @@ | ||
{ | ||
"@context": {"@vocab": "urn:"}, | ||
"@type": "Class" | ||
} |
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,11 @@ | ||
{ | ||
"@context": {"@vocab": "urn:"}, | ||
"@id": "urn:id-1", | ||
"@type": "Class", | ||
"preserve": { | ||
"@graph": { | ||
"@id": "urn:id-2", | ||
"term": "data" | ||
} | ||
} | ||
} |
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,17 @@ | ||
{ | ||
"@context": { | ||
"dc": "http://purl.org/dc/terms/", | ||
"dc:creator": { | ||
"@type": "@id" | ||
}, | ||
"foaf": "http://xmlns.com/foaf/0.1/", | ||
"ps": "http://purl.org/payswarm#" | ||
}, | ||
"@graph": [{ | ||
"@id": "http://example.com/asset", | ||
"@type": "ps:Asset", | ||
"dc:creator": { | ||
"foaf:name": "John Doe" | ||
} | ||
}] | ||
} |
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,79 @@ | ||
{ | ||
"@graph": [ | ||
{ | ||
"http://rdf.data-vocabulary.org/#ingredients": ["12 fresh mint leaves", "1/2 lime, juiced with pulp", "1 tablespoons white sugar", "1 cup ice cubes", "2 fluid ounces white rum", "1/2 cup club soda"], | ||
"http://rdf.data-vocabulary.org/#instructions": [{ | ||
"@id": "_:b1", | ||
"http://rdf.data-vocabulary.org/#description": "Crush lime juice, mint and sugar together in glass.", | ||
"http://rdf.data-vocabulary.org/#step": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#integer", | ||
"@value": 1 | ||
} | ||
}, { | ||
"@id": "_:b2", | ||
"http://rdf.data-vocabulary.org/#description": "Fill glass to top with ice cubes.", | ||
"http://rdf.data-vocabulary.org/#step": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#integer", | ||
"@value": 2 | ||
} | ||
}, { | ||
"@id": "_:b3", | ||
"http://rdf.data-vocabulary.org/#description": "Pour white rum over ice.", | ||
"http://rdf.data-vocabulary.org/#step": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#integer", | ||
"@value": 3 | ||
} | ||
}, { | ||
"@id": "_:b4", | ||
"http://rdf.data-vocabulary.org/#description": "Fill the rest of glass with club soda, stir.", | ||
"http://rdf.data-vocabulary.org/#step": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#integer", | ||
"@value": 4 | ||
} | ||
}, { | ||
"@id": "_:b5", | ||
"http://rdf.data-vocabulary.org/#description": "Garnish with a lime wedge.", | ||
"http://rdf.data-vocabulary.org/#step": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#integer", | ||
"@value": 5 | ||
} | ||
}], | ||
"http://rdf.data-vocabulary.org/#name": "Mojito", | ||
"http://rdf.data-vocabulary.org/#yield": "1 cocktail" | ||
}, { | ||
"@id": "_:b1", | ||
"http://rdf.data-vocabulary.org/#description": "Crush lime juice, mint and sugar together in glass.", | ||
"http://rdf.data-vocabulary.org/#step": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#integer", | ||
"@value": 1 | ||
} | ||
}, { | ||
"@id": "_:b2", | ||
"http://rdf.data-vocabulary.org/#description": "Fill glass to top with ice cubes.", | ||
"http://rdf.data-vocabulary.org/#step": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#integer", | ||
"@value": 2 | ||
} | ||
}, { | ||
"@id": "_:b3", | ||
"http://rdf.data-vocabulary.org/#description": "Pour white rum over ice.", | ||
"http://rdf.data-vocabulary.org/#step": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#integer", | ||
"@value": 3 | ||
} | ||
}, { | ||
"@id": "_:b4", | ||
"http://rdf.data-vocabulary.org/#description": "Fill the rest of glass with club soda, stir.", | ||
"http://rdf.data-vocabulary.org/#step": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#integer", | ||
"@value": 4 | ||
} | ||
}, { | ||
"@id": "_:b5", | ||
"http://rdf.data-vocabulary.org/#description": "Garnish with a lime wedge.", | ||
"http://rdf.data-vocabulary.org/#step": { | ||
"@type": "http://www.w3.org/2001/XMLSchema#integer", | ||
"@value": 5 | ||
} | ||
}] | ||
} |
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,46 @@ | ||
{ | ||
"@context": { | ||
"dc": "http://purl.org/dc/elements/1.1/", | ||
"ex": "http://example.org/vocab#", | ||
"ex:list": {"@container": "@list"} | ||
}, | ||
"@graph": [ | ||
{ | ||
"@id": "_:b0", | ||
"dc:title": "Book type" | ||
}, { | ||
"@id": "http://example.org/library", | ||
"@type": "ex:Library", | ||
"ex:contains": { | ||
"@id": "http://example.org/library/the-republic", | ||
"@type": "_:b0", | ||
"dc:creator": "Plato", | ||
"dc:title": "The Republic", | ||
"ex:contains": { | ||
"@id": "http://example.org/library/the-republic#introduction", | ||
"@type": "ex:Chapter", | ||
"dc:description": "An introductory chapter on The Republic.", | ||
"dc:title": "The Introduction", | ||
"ex:list": [1, 2, 3, 4, 4, 4, 5] | ||
} | ||
} | ||
}, { | ||
"@id": "http://example.org/library/the-republic", | ||
"@type": "_:b0", | ||
"ex:contains": { | ||
"@id": "http://example.org/library/the-republic#introduction", | ||
"@type": "ex:Chapter", | ||
"dc:description": "An introductory chapter on The Republic.", | ||
"dc:title": "The Introduction", | ||
"ex:list": [1, 2, 3, 4, 4, 4, 5] | ||
}, | ||
"dc:creator": "Plato", | ||
"dc:title": "The Republic" | ||
}, { | ||
"@id": "http://example.org/library/the-republic#introduction", | ||
"@type": "ex:Chapter", | ||
"dc:description": "An introductory chapter on The Republic.", | ||
"ex:list": [1, 2, 3, 4, 4, 4, 5], | ||
"dc:title": "The Introduction" | ||
}] | ||
} |
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 @@ | ||
{ | ||
"@context": {"@vocab": "urn:"}, | ||
"@graph": [{ | ||
"@id": "urn:id-1", | ||
"@type": "Class", | ||
"preserve": {} | ||
}] | ||
} |