-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CombinedEdgeLabelMapping #317
Conversation
Encapsulate creating EdgeLabelMapping into different functions to avoid duplicate code Add UnSupportedEdgeLabelException
In 'RunBGPOverNeo4j.java,' currently, we are not reading the TTL file. It is necessary to specify a command-line argument to obtain the file address, similar to the file query file address. In this step, should I make modifications to that part to read from the example file instead of creating classes manually? |
Indeed. The command-line tool needs to be extended to provide such an argument. Please do that, but in a separate PR. In terms of implementing it, it should be implemented more like the argument for the federation catalog that we have in the other command-line tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor things.
|
||
@Override | ||
public Node map(final String label) { | ||
for (EdgeLabelMapping edgeLabelMapping : edgeLabelMappings) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (EdgeLabelMapping edgeLabelMapping : edgeLabelMappings) { | |
for ( final EdgeLabelMapping edgeLabelMapping : edgeLabelMappings ) { |
} | ||
|
||
public String unmap(final Node node) { | ||
for (EdgeLabelMapping edgeLabelMapping : edgeLabelMappings) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (EdgeLabelMapping edgeLabelMapping : edgeLabelMappings) { | |
for ( final EdgeLabelMapping edgeLabelMapping : edgeLabelMappings ) { |
|
||
@Override | ||
public boolean isPossibleResult(final Node node) { | ||
for (EdgeLabelMapping edgeLabelMapping : edgeLabelMappings) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (EdgeLabelMapping edgeLabelMapping : edgeLabelMappings) { | |
for ( final EdgeLabelMapping edgeLabelMapping : edgeLabelMappings ) { |
try { | ||
return edgeLabelMapping.map(label); | ||
} | ||
catch (IllegalArgumentException exception) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be UnSupportedEdgeLabelException
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!!
Add CombinedEdgeLabelMapping and its tests
Encapsulate creating EdgeLabelMapping into different functions to avoid duplicate code
Add UnSupportedEdgeLabelException