All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends
Static Public Member Functions | Static Public Attributes | Static Protected Attributes | Static Private Member Functions
instruction.wordnet.WordNetRDF Class Reference

List of all members.

Static Public Member Functions

static String absoluteFilePath (String relativePath)
static String convertPOS (int type)
static String getSynsetFromID (String synsetID)
static ArrayList< String > getSynsets (String word, String pos)
static String getWordStem (String word, String pos)
static void main (String[] args)
static String readLine ()
static boolean wordExactlyExistsAs (String word, String pos)
static boolean wordExistsAs (String word, String pos)

Static Public Attributes

static final boolean CACHE_IRREGULAR_FORMS = true
static final String RDF_TYPE_ADJECTIVE_SYNSET = "http://www.w3.org/2006/03/wn/wn20/schema/AdjectiveSatelliteSynset"
static final String RDF_TYPE_ADVERB_SYNSET = "http://www.w3.org/2006/03/wn/wn20/schema/AdverbSynset"
static final String RDF_TYPE_NOUN_SYNSET = "http://www.w3.org/2006/03/wn/wn20/schema/NounSynset"
static final String RDF_TYPE_VERB_SYNSET = "http://www.w3.org/2006/03/wn/wn20/schema/VerbSynset"

Static Protected Attributes

static HashMap< String, String > irregularNouns = null
static HashMap< String, String > irregularVerbs = null

Static Private Member Functions

static void cacheIrregularNouns () throws IOException, WordNetException
static Map< String, Vector
< Object > > 
executeQuery (String query, String plFile)

Detailed Description

Provides access to the WordNet RDF database using the SWI Prolog Semantic Web engine. In order to initialize the Prolog engine properly, the SWI_HOME_DIR environment variable has to be set to the prolog home directory.

Author:
Daniel Nyga

Definition at line 27 of file WordNetRDF.java.


Member Function Documentation

static String instruction.wordnet.WordNetRDF.absoluteFilePath ( String  relativePath) [inline, static]

Definition at line 256 of file WordNetRDF.java.

static void instruction.wordnet.WordNetRDF.cacheIrregularNouns ( ) throws IOException, WordNetException [inline, static, private]

Definition at line 209 of file WordNetRDF.java.

static String instruction.wordnet.WordNetRDF.convertPOS ( int  type) [inline, static]

Definition at line 171 of file WordNetRDF.java.

static Map<String, Vector<Object> > instruction.wordnet.WordNetRDF.executeQuery ( String  query,
String  plFile 
) [inline, static, private]

Execute the given query. Assert the given premises and retract them after querying.

Parameters:
querythe query.
Returns:
the HashMap representing the bindings of the variables.

Definition at line 268 of file WordNetRDF.java.

static String instruction.wordnet.WordNetRDF.getSynsetFromID ( String  synsetID) [inline, static]

Definition at line 353 of file WordNetRDF.java.

static ArrayList<String> instruction.wordnet.WordNetRDF.getSynsets ( String  word,
String  pos 
) [inline, static]

Query the WordNet database for synsets of the rdf:type type the word word belongs to. If type is null, all types of synsets are returned.

See also:
RDF_TYPE_NOUN_SYNSET
RDF_TYPE_VERB_SYNSET
RDF_TYPE_ADJECTIVE_SYNSET
RDF_TYPE_ADVERB_SYNSET

Definition at line 329 of file WordNetRDF.java.

static String instruction.wordnet.WordNetRDF.getWordStem ( String  word,
String  pos 
) [inline, static]

Prolog engine startup Returns the stem of the word word postulating the part-of-speech pos.

Definition at line 79 of file WordNetRDF.java.

static void instruction.wordnet.WordNetRDF.main ( String[]  args) [inline, static]

Definition at line 386 of file WordNetRDF.java.

static String instruction.wordnet.WordNetRDF.readLine ( ) [inline, static]

Definition at line 367 of file WordNetRDF.java.

static boolean instruction.wordnet.WordNetRDF.wordExactlyExistsAs ( String  word,
String  pos 
) [inline, static]

Checks whether the given word exists in WordNet data base, not considering different word forms.

See also:
WordNet.wordExistsAs(String, pos)
Parameters:
word
pos
Returns:
Exceptions:
Exception

Definition at line 200 of file WordNetRDF.java.

static boolean instruction.wordnet.WordNetRDF.wordExistsAs ( String  word,
String  pos 
) [inline, static]

Checks whether the given word exists in WordNet data base, considering different word forms, e.g. plural forms for nouns or distinct verb forms.

See also:
WordNet.wordExactlyExistsAs(String, int)
Parameters:
word
type
Returns:
Exceptions:
Exception
MalformedURLException

Definition at line 157 of file WordNetRDF.java.


Member Data Documentation

Definition at line 41 of file WordNetRDF.java.

HashMap<String, String> instruction.wordnet.WordNetRDF.irregularNouns = null [static, protected]

Definition at line 45 of file WordNetRDF.java.

HashMap<String, String> instruction.wordnet.WordNetRDF.irregularVerbs = null [static, protected]

Definition at line 43 of file WordNetRDF.java.

final String instruction.wordnet.WordNetRDF.RDF_TYPE_ADJECTIVE_SYNSET = "http://www.w3.org/2006/03/wn/wn20/schema/AdjectiveSatelliteSynset" [static]

rdf:type constant of an adjective synset

Definition at line 36 of file WordNetRDF.java.

final String instruction.wordnet.WordNetRDF.RDF_TYPE_ADVERB_SYNSET = "http://www.w3.org/2006/03/wn/wn20/schema/AdverbSynset" [static]

rdf:type constant of an adverb synset

Definition at line 39 of file WordNetRDF.java.

final String instruction.wordnet.WordNetRDF.RDF_TYPE_NOUN_SYNSET = "http://www.w3.org/2006/03/wn/wn20/schema/NounSynset" [static]

rdf:type constant of a noun synset

Definition at line 30 of file WordNetRDF.java.

final String instruction.wordnet.WordNetRDF.RDF_TYPE_VERB_SYNSET = "http://www.w3.org/2006/03/wn/wn20/schema/VerbSynset" [static]

rdf:type constant of a verb synset

Definition at line 33 of file WordNetRDF.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


comp_ehow
Author(s): Moritz Tenorth, Daniel Nyga
autogenerated on Tue Apr 16 2013 00:18:25