~ CAUTION! ~

~ URL's are case sensitive!

Request for One Row


Url:
http://nireas.it.teithe.gr/webnb/api/RequestForOneAnswer.php?classifier=..&ColumnName0=..&ColumnName1=..&ColumnValue0=..&ColumnValue1=..


URL Explanation:

classifier: Classifier_name

ColumnName: if the classifier has N columns you need:

  • ColumnName0: the first column Name
  • ColumnName1: the second column Name
  • ...
  • ColumnNameN-1: the N column Name

ColumnValue: Accepted values for each column
  • ColumnValue0: the accepted value for the first column
  • ColumnValue1: the accepted value for the second column
  • ...
  • ColumnValueN-1: the accepted value for the N column


Example:
https://nireas.it.teithe.gr/webnb/api/RequestForOneAnswer.php?classifier=testXml&ColumnName0=age&ColumnName1=income&ColumnValue0=31..40&ColumnValue1=L

Classifier Name: testXml
ColumnName0: age => ColumnValue0: 31..40
ColumnName1: income => ColumnValue1: L


Returns: JSON form
Results: {"row0":"Y"}

Request for Multiple Rows


Url:
http://nireas.it.teithe.gr/webnb/api/RequestForMultiAnswers.php?classifier=..&RowNum=..&ColumnName0=..&ColumnName1=..&ColumnValue0=..&ColumnValue1=..&...


URL Explanation:

classifier: Classifier_name

RowNum: how many rows do you want to ask?

ColumnName: if the classifier has N columns you need:

  • ColumnName0: the first column Name
  • ColumnName1: the second column Name
  • ...
  • ColumnNameN-1: the N column Name

ColumnValue: Accepted values for each column
  • ColumnValue0: the accepted value for the first column
  • ColumnValue1: the accepted value for the second column
  • ...
  • ColumnValueN-1: the accepted value for the N column
  • ColumnValueN: the accepted value for the first column
  • ColumnValueN+1: the accepted value for the second column
  • ...


Example 1:
http://nireas.it.teithe.gr/webnb/api/RequestForMultiAnswers.php?classifier=Family-Buyer&RowNum=2&ColumnName0=Family&ColumnValue0=Άγαμος&ColumnValue1=Έγγαμος

Classifier Name: Family-Buyer
RowNum: 2
ColumnName0: Family => ColumnValue0: Άγαμος‚ ColumnValue1: Έγγαμος

Example 2:
http://nireas.it.teithe.gr/webnb/api/RequestForMultiAnswers.php?classifier=testXml&RowNum=4&ColumnName0=age&ColumnName1=income &ColumnValue0=>40&ColumnValue1=H &ColumnValue2=31..40&ColumnValue3=H &ColumnValue4=Under_30&ColumnValue5=H &ColumnValue6=Under_30&ColumnValue7=H

Classifier Name: testXml
RowNum: 4
ColumnName0: age
ColumnName1: income
row0 => {age => [ColumnValue0= >40], income => [ColumnValue1= H] }
row1 => {age => [ColumnValue2= 31..40], income => [ColumnValue3= H] }
row2 => {age => [ColumnValue4= Under_30], income => [ColumnValue5= H] }
row3 => {age => [ColumnValue6= Under_30], income => [ColumnValue7= H] }


Returns: JSON form
Example 1 Results: {"row0":"Ναι","row1":"Όχι"}
Example 2 Results: {"row0":"N","row1":"Y","row2":"N","row3":"N"}