-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
wot-td-java/src/main/java/ch/unisg/ics/interactions/wot/td/io/TDGraphWriter.java
Lines 192 to 201 in 53c9c45
| private void addFormsForInteraction(Resource interactionId, InteractionAffordance interaction) { | |
| for (Form form : interaction.getForms()) { | |
| BNode formId = rdf.createBNode(); | |
| graphBuilder.add(interactionId, rdf.createIRI(TD.hasForm), formId); | |
| // Only writes the method name for forms with one operation type (to avoid ambiguity) | |
| if (form.getMethodName().isPresent() && form.getOperationTypes().size() == 1) { | |
| graphBuilder.add(formId, rdf.createIRI(HTV.methodName), form.getMethodName().get()); | |
| } |
Why does it create ambiguity to add the method name in case there is more than 1 operation types, since the method name is actually provided by the user (i.e. it is not added as a default value)? I am probably missing something.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels