https://github.com/spencermountain/freebase_garden
reasonable workflows for getting wikipedia data into freebase
https://github.com/spencermountain/freebase_garden
Last synced: about 1 month ago
JSON representation
reasonable workflows for getting wikipedia data into freebase
- Host: GitHub
- URL: https://github.com/spencermountain/freebase_garden
- Owner: spencermountain
- Created: 2014-12-02T15:13:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-05T02:06:46.000Z (over 10 years ago)
- Last Synced: 2025-01-26T03:28:30.928Z (3 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
using [Freebase.js](https://github.com/spencermountain/Freebase.js), and [wtf_wikipedia](https://github.com/spencermountain/wtf_wikipedia) to get wikipedia category data, infobox data, and first-sentence data into freebase, with responsible QA filtering and caveats
also does easy 'if-this-than-that' inference tasks, like 'all opera genres are theatre genres'.
to use, put your [google credentials](https://console.developers.google.com) in ./credentials (instructions in that file) and run ````node auth/authenticate.js```` and follow those instructions for your oauth access token
then construct rules and filters like this:
````javascript
rules = {
cat: "Category:Bridges_in_Canada",
key: CREDENTIALS.API_KEY,
access_token: CREDENTIALS.WRITE_TOKEN,
depth: 2,
filter: {
not_types: ["/transportation/bridge", "/time/event"],
not_name: /collapse/i,
},
write: {
type: "/transportation/bridge"
}
}
category_garden(rules, callback)
````