The Semantic Web

An Experiment

Click this link to search for walnut asparagus tomatoes -- or some other ingredients of interest.

Go to one of those results and copy the URL. Enter that URL on this page. Wait until it finishes. This may take a minute. The warning "The URL could not be rendered. Some markup may be missing" is usually OK.

Click on the Recipe box on the right. What information is there? Where did it come from?

On the original recipe page, use your browser to view the page source. In that source, search for "ld+json".

Schema.org

An ontology for web content created and maintained by Google, Microsoft, and Yahoo, to improve search engine results.

Review the hierarchy on one page

Are there any concepts with multiple inheritance?

What are some pretty basic simple concepts (things, events, ...) that are NOT in the schema.org ontology?

Why does schema.org have the concepts it does and not so many others?

JSON-LD + schema.org

JSON-LD is JSON with links. A standardize to semantic content in machine-usable form on a web page, using a script element.

JSON-LD provides the syntax for schema.org semantics.

JSON-LD home page

JSON-LD web site usage

Schema.org vs AI

Up until 2024, Google search returned rich snippets using the JSON-LD on web pages.

They were a key element in building web sites to attract users searching for information.

Then Google moved to AI overviews, but for now both are used.