https://github.com/datashaman/scrape-schema
Use XSLT to create CoffeeScript class definitions scraped from schema.org.
https://github.com/datashaman/scrape-schema
Last synced: about 1 year ago
JSON representation
Use XSLT to create CoffeeScript class definitions scraped from schema.org.
- Host: GitHub
- URL: https://github.com/datashaman/scrape-schema
- Owner: datashaman
- Created: 2011-06-11T10:05:42.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-06-17T07:28:02.000Z (almost 15 years ago)
- Last Synced: 2025-05-13T04:53:43.826Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 93.8 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The XSLT stylesheet scrapes the metadata for the schema definitions
found on [schema.org](http://schema.org/), transforming them into CoffeeScript class
definitions.
A shell script is provided, which uses xsltproc to effect a transform.
Use it like so:
./scrape-schema.sh http://schema.org/Person > Person.coffee
Downloading the HTML file and working on a local copy would be polite!
:)
The fields module is not supplied, since I didn't want this version to be
too system-specific. It's based on the [Kanso fields module](http://kansojs.org/docs.html#fields), date type is
the only addon field for now.
Tailoring the XSLT file to your class / prototype system should be
relatively painless.