input
stringlengths
10
828
output
stringlengths
5
107
public void add concept string name double sim value result concept c new result concept name sim value c set rank number this rank number this concepts add c
adds a concept to this rank
protected void set seq number int seq number this seq number seq number
set a unique number for this similarity operation
public int get number of ranks return ranking size
returns the number of ranks currently stored within this ranking
public void add concept result concept c c set rank number this rank number this concepts add c
adds a concept to this rank
public boolean is clash free individual individual collection role roles return true
this method is overwritten by the subclasses of this abox i
public rank get rank int i return ranking get i
returns the rank at the specified rank number
public int get number of concepts return concepts size
returns the number of concepts stored in this rank
public int get number of concepts int s 0 for iterator rank iter ranking iterator iter has next s iter next get number of concepts return s
returns the number of all concepts stored within this ranking
public boolean add assertion assertion assertion if individuals contains assertion get relating individual individuals add assertion get relating individual return assertions add assertion
this method adds an assertion to the assertion list
public int index of string concept name int i 1 for iterator result concept iter concepts iterator iter has next i if iter next get concept name equals concept name return i return i
returns the position of the concept with the specified concept name
public int get rank number of string concept name int rank number 0 for iterator rank i r ranking iterator i r has next int i i r next index of concept name if i 1 return rank number rank number return 1
returns the rank number of the specified concept
public int get rank number return rank number
returns the rank number of this concept
public boolean contains string concept name if index of concept name 1 return false else return true
returns true if there is a concept with the specified concept name in
public boolean contains string concept name return get rank number of concept name 1
returns true if this ranking contains a concept with the specified name
public void set rank number undefined this rank number 1
sets the rank number of this concept to undefined i
public boolean add all assertions collection extends assertion c for assertion assertion c if individuals contains assertion get relating individual individuals add assertion get relating individual return assertions add all c
this method adds multiple assertions to the assertion list
public result concept get concept string concept name for iterator rank i r ranking iterator i r has next rank r i r next result concept rc r get concept concept name if rc null return rc return null
retrieves the concept with the specified name from this ranking
public void set color string html color this color html color
assigns a color to this concept
public result concept clone string name copy new string this concept name result concept rc copy new result concept name copy this sim value rc copy rank number this rank number rc copy color this color return rc copy
returns an exact copy of this concept
private void set all rank numbers undefined for iterator rank iter ranking iterator iter has next iter next set rank number undefined
sets all rank numbers of ranks contained in this ranking to undefined
public void set rank number undefined this rank number 1 for iterator result concept iter concepts iterator iter has next iter next set rank number 1
sets the rank number of this rank to undefined i
private void reorder array list rank new ranking new array list rank while ranking size 0 rank temp rank new rank for iterator rank iter ranking iterator iter has next rank current rank iter next if current rank get similarity value temp rank get similarity value temp rank current rank new ranking add temp rank this ranking remove temp rank this ranking new ranking reorder ranks
reorders the ranking so that the rank numbers are ascending and the
public boolean add individual individual indy return individuals add indy
this method add an individual to the individuals list
public void set rank number int rank number for iterator result concept iter concepts iterator iter has next iter next set rank number rank number this rank number rank number
sets the rank number of this rank
private void reorder ranks int rank no 0 for iterator rank iter ranking iterator iter has next iter next set rank number rank no rank no
to be called from reorder assigns the appropriate rank numbers to the
public ranking clone ranking ranking copy new ranking for iterator rank iter this ranking iterator iter has next ranking copy add rank iter next clone return ranking copy
returns an exact copy of this code ranking code
public double get similarity value if concepts size 0 return 0 0 else return concepts get 0 get similarity value
return the similarity value of the concepts at this rank
private void log ranking similarity operation so iterator cluster it c1 so get similarity ranking get clusters iterator while it c1 has next iterator tuple it t1 it c1 next get targets iterator while it t1 has next object tuple it t1 next get tupel log concept name and concept similarity value logger info tuple 0 tuple 1
convenience method to log concept sim value pairs
public void set similarity value double value for iterator result concept iter concepts iterator iter has next iter next set similarity value value
sets the similarity value for all concepts at this rank
public tuple add unequal pair tuple tuple return unequality list add unequal pair tuple
this methods add a tuple of unequal individuals to the unequality list
public string get comma separated concept names string cscn int i 1 int n this get number of concepts for iterator result concept iter concepts iterator iter has next cscn cscn iter next get concept name if i n cscn cscn i return cscn
returns the names of all concepts stored in this rank as a single
public boolean equals logger knowledge base lkb return lkb get uri equals this uri
tests whether this logger knowledge base is equal to the given
public rank clone rank rank copy new rank rank copy rank number this rank number for iterator result concept iter this concepts iterator iter has next rank copy add concept iter next clone return rank copy
returns an exact copy of this code rank code
public void add all unequal pairs collection tuple tuples unequality list add all unequal pairs tuples
this methods add multiple tuples of unequal individuals to the unequality list
public int get max score int variant int sum1 0 int sum2 0 for int m 1 m max ranks count m sum1 max ranks count 1 m longer ranking get rank m 1 get number of concepts for int n 1 n min ranks count n sum2 min ranks count 1 n shorter ranking get rank n 1 get number of concepts return max ranks count sum1 sum2
this one returns the maximum impact value before normalization i
public boolean contexts are equal array list concept list1 array list concept list2 if list1 equals list2 return true else if list1 size list2 size return false else for iterator concept it1 list1 iterator it1 has next concept current concept it1 next boolean equal concept found false for iterator concept it2 list2 iterator it2 has next if current concept to string equals it2 next to string equal concept found true if equal concept found return false for every concept in the first list an equal concept has been found in the second list so return true return true
returns true if the two lists of context concepts contain the same
public tuple add dependency pair tuple tuple return dependency list add dependency tuple
this methods add a tuple of dependent individuals to the dependency list
private double get max impact double sum1 0 0 double sum2 0 0 for int m 1 m max ranks count m sum1 longer ranking get rank m 1 get similarity value longer ranking get rank m 1 get number of concepts for int n 1 n min ranks count n sum1 shorter ranking get rank n 1 get similarity value shorter ranking get rank n 1 get number of concepts return max ranks count sum1 sum2
the extreme case all concepts in the original ranking have sim 1
public void add all dependency pairs collection tuple tuples dependency list add all dependency pairs tuples
this methods add multiple tuples of dependent individuals to the dependency list
public tuple add blocking pair tuple tuple return blocking list add blocking pair tuple
this methods add a tuple to the blocking list
public string get release date return version properties get property de ifgi simcat server release date 05 02 2008
returns the current release date of the sim cat dl reasoner
public void add all blocking pairs collection tuple tuples blocking list add all blocking pairs tuples
this methods add multiple tuples to the blocking list
public boolean remove assertion assertion o return assertions remove o
this method removes an assertion
public boolean remove unequal pair individual indy1 individual indy2 return unequality list remove unequal pair indy1 indy2
this method removes an unequal pair
public boolean remove blocking pair individual indy1 individual indy2 return blocking list remove blocking pair indy1 indy2
this method removes a blocked pair
public boolean remove dependency pair individual indy1 individual indy2 return dependency list remove dependency pair indy1 indy2
this method removes a dependent pair
private void create result label ct ctsim result ct sim result ctsim result sim result string result text span style font size 20 color 286 ea0 similarity between ct sim result get search concept get name and ct sim result get target concept is ct sim result get value 100 span result label ct set text sim cat oetab add sim cat markup result text result label ct set visible true
creates a label for visualizing similarity scores compared to one single
private void run final owlmodel owl model runnable similarity reasoner action runnable similarity reasoner action new runnable similarity reasoner action owl model reasoner action runner reasoner action runner new reasoner action runner runnable similarity reasoner action reasoner action runner execute
initializes the request cycle for a similarity request
public document build release kbresponse document doc new document impl element root doc create element response doc append child root root set attribute xmlns sim cat digconstants namespace root set attribute xmlns xsi sim cat digconstants xsi root set attribute ns sim cat digconstants xsi xsi schema location sim cat digconstants namespace sim cat digconstants schema add element doc sim cat digconstants ok root return doc
assembles a response that the knowledge base has been released
public document build tells response document doc new document impl element root doc create element response doc append child root root set attribute xmlns sim cat digconstants namespace root set attribute xmlns xsi sim cat digconstants xsi root set attribute ns sim cat digconstants xsi xsi schema location sim cat digconstants namespace sim cat digconstants schema add element doc sim cat digconstants ok root return doc
assembles a tell response
public void write file file model model cleaned model factory create default model stmt iterator it model list statements for statement s it to set resource r s get subject if check uri r model cleaned add s try model cleaned write new file writer file rdf xml catch ioexception e e print stack trace
write the model to file
private void initialize this set size 1024 768 this set title kpml font new font monospaced font plain 9 net new hash map string default graph cell final jmenu bar menu bar new jmenu bar set jmenu bar menu bar final jmenu item menu item new jmenu item menu item set text search menu bar add menu item graph creat cell scrollpane new jscroll pane graph right get viewport add graph this set content pane scrollpane
this method initializes this
private void initialize this set size 1024 768 this set title kpml this set default close operation exit on close final jmenu bar menu bar new jmenu bar set jmenu bar menu bar final jmenu item menu item new jmenu item menu item add action listener new action listener public void action performed action event arg0 menu item set text search menu bar add menu item right get viewport add graph
this method initializes this
protected vertex view create vertex view object object return new entity vertex view default graph cell object
this method id overridded to create a new vertex type
public string get system info string name ksystem sys null sys system system get name if sys null return the system is not found else return sys get info
method get system info string name
public int get default sorted column return 1
returns the column number that should be sorted by default
public void reload currency string short cut auction get currency get shortcut for int n 0 i currency jlabels null currency jlabels length 0 n i n currency jlabels n set text short cut price can saveables n set currency auction get currency
this method changes only the currency performance
public main jpanel get main jpanel return main jpanel
returns the main jtabbed pane
public boolean has clipboard return clipboard objects null clipboard objects size 0
returns if there is any clipboard content
public void set clipboard vector auction objects clipboard objects new vector auction for int n 0 i objects size n i n clipboard objects add objects get n clone
sets a new clipboard content
public void new member file status form manager member start status form manager initial query jdialog initial query jdialog new initial query jdialog start status form manager initial query jdialog set visible true if initial query jdialog has member try set member initial query jdialog get object catch exception e error jdialog show error dialog e
closes and saves the current opened member file if there is any and
public void reload status bar status bar jpanel set current member member
reloads the status bar by setting the current users name in it
public void set active boolean active this active active if get jmenu bar instanceof main jmenu bar main jmenu bar get jmenu bar set member active this active
sets a new status in this window an in all its menus
public void reload status set active active
reloads the current status by setting it once again
public jpopup menu get edit jpopup menu return main jpanel get jpopup menu
returns the current available popup menus in the main jtabbed pane
public void save boolean auto save throws exception if member null main jpanel null logger log trying to save member autosave auto save xmlwrapper set folders main jpanel get auction folders main jpanel get transaction folder member auto save if auto save file auto save file new file member get file name autosave if auto save file exists auto save file delete
saves the current member file if there is one opened
public boolean has image return file null
returns if a image exists
public price get fees return fees
returns the fees
public void set fees price fees this fees fees
sets new fees
public void set url url url this url url set local file image icon cache clear
sets a new file name
public void set shipping locations country shipping locations this shipping locations shipping locations
sets new shipping locations
public price get additional fees return additional fees
returns the additional fees
public void set additional fees price additional fees this additional fees additional fees
sets new additional fees
public boolean shipping locations have master element if shipping locations null for int n 0 i shipping locations length n i n if shipping locations n get code country world return true return false
returns if there is a shipping location in the shipping locations that is
public boolean save is threaded return false
override to use
protected void update version information url url throws exception properties properties new properties properties load url open stream set version properties get version set revision properties get property revision set date new date long parse long properties get property date
updates the version information by a simple properties file
public boolean has update information return true
returns true if the update channel supports update information
public url get error report url return urlhelper create url https jaoltwsn appspot com errorreport
returns the url where to post the error information to
public url get main url return urlhelper create url http code google com p jaolt
returns the url that is the main url of this distribution
public void adjust currency if fees null fees set currency auction get currency
if some fees are null the currency maybe wrong
public boolean revoke token auction platform account auction platform account return false
override to use
public url get token info url return null
override to use
public void set tool bar jtool bar new tool bar jtool bar old tool bar get tool bar if old tool bar new tool bar return if old tool bar null header panel remove old tool bar if new tool bar null new tool bar set border border factory create empty border 0 0 0 0 header panel add new tool bar border layout line end update header fire property change tool bar old tool bar new tool bar
sets a new tool bar in the header
private jpanel build header jlabel label jtool bar bar gradient panel new gradient panel new border layout get header background label set opaque false gradient panel add label border layout line start gradient panel set border border factory create empty border 3 4 3 1 header panel new jpanel new border layout header panel add gradient panel border layout center set tool bar bar header panel set border new raised header border header panel set opaque false return header panel
creates and answers the header panel that consists of
public void on complete wine list wine descriptor wines arr int no red 0 int no rose 0 int no white 0 for wine descriptor wd wines arr switch wd get color case red no red break case rose no rose break case white no white break tot wines set value integer to string wines arr length red wines set value integer to string no red rose wines set value integer to string no rose white wines set value integer to string no white
update this widget with a list of the available wines
public void on complete wine list wine descriptor wines arr wines clear wines add all arrays as list wines arr selected row null update wine list
update this widget with the latest list of available wines
public long get selected wine primary key if selected row null return wines get selected row 1 get primary key else return null
retrieve primary key of selected wine
public void set value string value value label set text value
update the value shown
public string get value return value text box get text
get value from input part of this component
public void set value string value value text box set text value
set value of input part of this component
public void set enabled boolean enabled value text box set enabled enabled
set whether the input part of this component is enabled
public void set enabled boolean enabled value list box set enabled enabled
set whether the input part of this component is enabled
public void on wine selected wine details wine details this current wine wine details update current wine
update this display to show given wine
public object lookup symbol symbol throws no such element exception if variables contains key symbol return variables get symbol else if parent null return parent lookup symbol else throw new no such element exception
lookup a symbol in variable namespace
public object set symbol symbol object val throws no such element exception if variables contains key symbol variables put symbol val return val else if parent null return parent set symbol val else throw new no such element exception
change a binding in the variable namespace if it exists
public object define symbol symbol object val variables put symbol val return symbol
create new binding in the variable namespace of the current environment
public object lookup func symbol symbol throws no such element exception if functions contains key symbol return functions get symbol else if parent null return parent lookup func symbol else if symbol get symbol function null return symbol get symbol function else throw new no such element exception
lookup a symbol in function namespace
public object define func symbol symbol object val functions put symbol val return symbol
create new binding in then function namespace of the current environment
public int index of lisp string str int from index return index of elt 0 elt length str elt 0 str elt length from index
returns the index within this string of the first occurrence of the
public void puff file f string id throws exception titt register monitor kkloud manager monitor id kkloud file proxy tittnuder create proxy kkloud file system out println puffing f get name on id proxy puff id 1500 new nuder request f titt unregister monitor
puffs a file on a given id