You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. Now you should be able to access the API on `localhost:8080/`, nois!
22
25
26
+
### API Usage
27
+
28
+
Graphical front end can be accessed by pointing your browser to the address _without_`/api`.
29
+
E.g. to access properties front end after running the server on your machine point your browser to `localhost:8080/properties` and for a programmatic API send requests to `localhost:8080/properties/api`.
30
+
31
+
#### Obtaining Properties
32
+
33
+
Returns a list of properties with their roles in parenthesis, organized by source.
"WKT": ["hawk(definiendum)","diurnal(has_diff_qual)","of the family Accipitridae(has_origin_loc)","predatory_bird(has_supertype)"]}
39
+
```
40
+
41
+
Accessible on `HOST_NAME/properties/api` and requires 3 parameters:
42
+
43
+
1.`properties`, which properties do you want?
44
+
Accepted values:
45
+
`p` for `pivot`'s properties
46
+
`c` for `comparison`'s properties
47
+
`p-c``pivot`'s minus `comparison`'s
48
+
`c-p``comparison`'s minus `pivot`'s
49
+
`intersection` the common properties of `pivot` and `comparison`.
50
+
51
+
2.`pivot` string value of pivot
52
+
53
+
3.`comparison` string value of comparison
54
+
55
+
#### Determining Discriminativity
56
+
57
+
Returns two element lists, organized by source `[DECISION, JUSTIFICATION]`, where `DECISION` is `"true"`/`"false"` and `JUSTIFICATION` is a natural language justification for the decision.
58
+
For example:
59
+
60
+
```
61
+
{"WKP_Graph":["false","Because hawk and eagle don't contain bird as a property"],"WKT":["false","Because hawk and eagle don't contain bird as a property"],"WN":["true","Because hawk contains bird in property of has_supertype and has_supertype role and eagle doesn't contain bird as one of its properties."]}
62
+
```
63
+
64
+
Accessible on `HOST_NAME/roleBasedVote/api` requires 3 parameters:
65
+
`pivot`, `comparison`, `feature`
66
+
and returns whether `pivot` and `feature` have a common property, that `comparison` doesn't have (the role of the property as well as the value is taken into account under this comparison type).
0 commit comments