The dataset was validated using the Schema.org Validator (validator.schema.org).
- Result: 0 Errors.
- Conclusion: The JSON-LD correctly implements the
schema:CreativeWorkclass and the custommy:Souvenirextension with nested object properties (my:buyer->schema:Person,my:boughtIn->schema:City).
The dataset remains compatible with Google's Rich Results Test.
- Result: The shift from simple strings to structured entities enhances the semantic richness without violating
CreativeWorkconstraints. - Analysis: This confirms that modeling the items as cultural artifacts (
CreativeWork) with rich relationships is the correct semantic approach.
The custom T-Box (vocabulary.ttl) was validated using the W3C RDF Validator (w3.org/RDF/Validator) and opened in Protégé to ensure logical consistency.
- Result: Valid Turtle syntax.
- Structure: The domain (
my:Souvenir) and range (schema:Person,schema:City,schema:Date) definitions were verified to ensure logical consistency.
The following SPARQL queries (see queries.txt) were executed to verify the Data Model answers the project's requirements:
-
CQ1: Select all souvenirs bought in 'Paris'
- Query: Traverses
my:boughtInnode to matchschema:name"Paris". - Result: Retrieves "Eiffel Tower Keychain".
- Query: Traverses
-
CQ2: Select all souvenirs bought after 2020
- Query: Filters
my:tripDate> "2020-12-31" (xsd:date comparison). - Result: Correctly retrieves items bought in recent years (e.g., Persian Rug (2025), Venetian Mask (2023), Eiffel Tower Keychain (2021), Wooden Clogs (2023), Dirndl or Lederhosen Hat (2024), Silk Scarf (2021)).
- Query: Filters
-
CQ3: Select all souvenirs that are "Clothing"
- Query: Filters
schema:genreby "Clothing". - Result: Retrieves "I <3 NY T-Shirt", "Dirndl or Lederhosen Hat", "Silk Scarf".
- Query: Filters
-
CQ4: Select name and city of souvenirs bought by "Alice"
- Query: Traverses
my:buyernode for "Alice" andmy:boughtInnode for city name. - Result: Retrieves "Persian Rug" (Tabriz), "Eiffel Tower Keychain" (Paris), "Wooden Clogs" (Amsterdam).
- Query: Traverses