1

I'm wondering if there is a website or a way to get the list of all the Schema.org schemas under a specific category (ex: Place).

I found the complete list on Schema.org - they also provide a JSON-LD file - but there's no way to filter/order this easily.

My goal is to get the list of all the places in a nice array (PHP, JSON, whatever).

unor
  • 92,415
  • 26
  • 211
  • 360
newpoison
  • 914
  • 2
  • 8
  • 20

1 Answers1

0

Most vocabularies/ontologies are defined using RDF.

The vocabulary Schema.org is no exception. The canonical/machine-readable representation of Schema.org is provided in HTML+RDFa:

http://schema.org/docs/schema_org_rdfa.html

This file always contains the current release. If you are interested in specific versions of Schema.org, snapshots are available.

As a quick overview:

RDFa is a RDF serialization which many RDF parsers support (if not, it’s simple to automatically convert it into other RDF serializations, like Turtle, RDF/XML, or JSON-LD). There are many different tools and libraries available for this purpose. (You should use an RDF-aware tool instead of trying to parse the file as HTML.)

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360