Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Schema.org type ancestry
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
generate-schema-superclass-sets.js
index.js
package.json

README.md

schema.org-type-ancestry

Schema.org type ancestry

Installation

If you're using node.js, install it via npm thusly:

$ npm install schema.org-type-ancestry

Example Usage

var schematype = require('schema.org-type-ancestry').schema;

// What are the ancestors of WPFooter?

console.log(schematype['http://schema.org/WPFooter'].superClassSet);

// Is Hospital a type of LocalBusiness?

if (schematype['http://schema.org/Hospital'].superClassSet['http://schema.org/LocalBusiness']) {
    console.log('Yes');
} else {
    console.log('No');
}
Something went wrong with that request. Please try again.