Skip to content
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

BigdataGraph#addEdge with same SOP but different predicate creates LinkedList of labels, causing ClassCastException on BigdataEdge#getLabel #14

Open
macks22 opened this issue Aug 10, 2016 · 0 comments

Comments

@macks22
Copy link

macks22 commented Aug 10, 2016

String graphUrl = "http://localhost:9200/bigdata/sparql";
BigdataGraph graph = new BigdataGraph(graphUrl);
Vertex subject = graph.addVertex("subject");
Vertex object = graph.addVertex("object");
String edgeId = UUID.randomUUID().toString();

String firstLabel = "label1";
Edge firstEdge = graph.addEdge(edgeId, subject, object, firstLabel)

String secondLabel = "label2";
Edge secondEdge = graph.addEdge(edgeId, subject, object, secondLabel);

// throws java.lang.ClassCastException: java.util.LinkedList cannot be cast to java.lang.String
secondEdge.getLabel();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant