Sunday, September 28, 2014
Constructing triples for rea and partOf relations
Please note the other urls: http://www.w3.org/2006/03/wn/wn20/instances/word-automobile.rdf (wn20instances:word-automobile), http://www.w3.org/2006/03/wn/wn20/instances/word-item.rdf (wn20instances:word-item)
I would like to expand the word item with lexical file number 06, frequency 16, offset 03593583 and definition "a whole or individual unit; especially when included in a list or collection". (from: wordnet.princeton.edu)
However, I am not sure how to query the WordNet data on the w3c site. The website http://w3.org/TR/wordnet-rdf/#queries gives some example queries. I will have to figure out how to load these into a triple store and query them. Perhaps I will use Neo4j (http://www.neo4j.org/) and set up a sparql endpoint with this. (or just figure out how to run a sparql query of the one at w3.org). Later, I would like to use a tuplestore such as Linda.
Earlier I thought about using regular expressions to go through the wn20full.zip [download available at (http://www.w3.org/2006/03/wn./wn20/download/)]. I'd want to use something like grep (http://www.gnu.org/software/grep/manual/grep.html), which may be made easier by looking at the regexone site (http://regexone.com/).