Property | Type | Description | |
---|---|---|---|
allowedURIs | List |
Method | Description | |
---|---|---|
GetQuestionType ( string question ) : List |
Gets the type of the question and remove words used to match question type from the question string
|
|
ReadFile ( string filePath ) : List |
Reads line of text files and return it in a list of strings.
|
|
URIToSimpleString ( List |
convert list of URIs to simple string list
|
|
URIToSimpleString ( string URI ) : string |
returns a simple string of the URI by taking the last part of it , or the part after # if exists
|
|
UrlEncode ( string value ) : string |
Encodes URIs
|
|
clearLog ( ) : void |
empty the log file
|
|
computeLevenshteinDistance ( string s, string t ) : int |
compute the levenstein Distance between two strings
|
|
encodeURI ( string input ) : string |
SHERIF WAY OF ENCODING OUR URIS (ONLY WORKS WITH DBPEDIA AND SUCH) POSSIBLE BUG
|
|
getIgnoreStrings ( ) : List |
more strings to be added
|
|
getLabel ( string URI ) : string |
This method tries it's best to get a label for the wanted URI
|
|
isInternalURI ( string input ) : bool |
checks to see if the uri is from our dbpedia databse
|
|
loadAllowedLabels ( ) : List |
loading the allowed uris of our database
|
|
log ( string s ) : void |
log text to the log file
|
|
mapQuestionType ( string type ) : util.questionTypes |
maps the string of question type to enum type
|
|
match ( string s, List |
returns true if match s matches 40% of any of the strings in s2 //todo :
|
|
match ( string s, string s2 ) : bool |
return true if s matches 40% - or min match distance - of s2 otherwise return false
|
Method | Description | |
---|---|---|
UpperCaseUrlEncode ( string s ) : string |
HELPER FUNCTION FOR THE encdoeURI
|
|
addtohashset ( string URI, string label ) : void |
this method adds the new labels from queries to the dataset
|
public static GetQuestionType ( string question ) : List |
||
question | string | Input question to check type and remove words used to match the type |
return | List |
public static ReadFile ( string filePath ) : List |
||
filePath | string | The path of the file to be read. |
return | List |
public static URIToSimpleString ( List |
||
URIs | List |
list of URIs |
return | List |
public static URIToSimpleString ( string URI ) : string | ||
URI | string | the URI |
return | string |
public static UrlEncode ( string value ) : string | ||
value | string | the input url to be encoded |
return | string |
public static computeLevenshteinDistance ( string s, string t ) : int | ||
s | string | string1 |
t | string | string2 |
return | int |
public static encodeURI ( string input ) : string | ||
input | string | INPUT URI |
return | string |
public static getLabel ( string URI ) : string | ||
URI | string | uri to get label to |
return | string |
public static isInternalURI ( string input ) : bool | ||
input | string | the uri to check |
return | bool |
public static log ( string s ) : void | ||
s | string | string to be logged in the Logfile |
return | void |
public static mapQuestionType ( string type ) : util.questionTypes | ||
type | string | string of question type |
return | util.questionTypes |
public static match ( string s, List |
||
s | string | string that used to check if it matches or not |
s2 | List |
list of strings |
return | bool |
public static match ( string s, string s2 ) : bool | ||
s | string | string to be matched |
s2 | string | string to be matched with |
return | bool |