This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// to download RDF dumps of WordNet 3.0: | |
// git clone git://eculture.cs.vu.nl/home/git/wordnet | |
import com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph; | |
import com.tinkerpop.blueprints.oupls.sail.GraphSail; | |
import org.openrdf.model.Statement; | |
import org.openrdf.rio.RDFFormat; | |
import org.openrdf.rio.RDFHandler; | |
import org.openrdf.rio.RDFHandlerException; | |
import org.openrdf.rio.RDFParser; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var cheerio = require('cheerio'); | |
fs.readFile('./page.html', 'utf8', dataLoaded); | |
var config = { | |
"geopostcodes.com": { | |
"city" : "München", | |
"itemsSelector" : "table.list2>tbody>tr", | |
"locationSelector" : "td", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require("fs"); | |
var path = require("path"); | |
var util = require('util'); | |
function Resolver(pathToDirectory) { | |
this.mappings = dirTree("initial-value", pathToDirectory).contents; | |
//console.log("[URL Resolver] Discovered mappings: %s", util.inspect(this.mappings, false, null)); | |
} | |
function dirTree(name, filepath) { |