metadata library
Haskell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
MetaData
templates
LICENSE
README
Setup.hs
all.json
gen-metadata.cabal
gen-metadata.hs

README

This project can generate Text.HTML5.MetaData library.
The library is all representations mapped from Schema.org's metadata.

outdated: => check first by wget http://schema.rdfs.org/all.json
see https://github.com/mhausenblas/schema-org-rdf/tree/master/scrapers
  But, I do git clone https://github.com/link-fish/schema-org-rdf, because this works rather than original.

$ cd schema-org-rdf/scrapers
$ python scrape_all.py output.ttl output.json classes.csv properties.csv
$ cp output.json ../../all.json

gen-metadata.hs is Main program and the execution generate metadata library(without cabal).

$ cabal sandbox init
$ cabal install --only-dependencies
$ cabal configure --user
$ cabal build
$ cp dist/build/gen-metadata/gen-metadata .
$ ./gen-metadata

and then, build metadata

$ cd gen
$ cabal sandbox init --sandbox=../.cabal-sandbox
$ cabal configure --user
$ cabal build