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

Improvement of the return type of the Link measure #63

Closed
LorenzBuehmann opened this Issue Jul 2, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@LorenzBuehmann
Copy link
Member

LorenzBuehmann commented Jul 2, 2018

def Links(triples: RDD[Triple]): RDD[(String, Int)] = {
triples.filter(triple => ((triple.getSubject.isURI() && triple.getObject.isURI()) &&
triple.getSubject.getNameSpace != triple.getObject.getNameSpace))
.map(triple => (triple.getSubject.getNameSpace() + triple.getObject.getNameSpace()))
.map(f => (f, 1)).reduceByKey(_ + _)
}

doesn't return what I'd expect. I think it's more correct to return (String, String, Int) instead of a concatenated String of both namespaces.

@LorenzBuehmann LorenzBuehmann added this to the 0.5 milestone Jul 2, 2018

@LorenzBuehmann LorenzBuehmann changed the title Improvement the return type of the Link measure Improvement of the return type of the Link measure Jul 2, 2018

@LorenzBuehmann

This comment has been minimized.

Copy link
Member Author

LorenzBuehmann commented Jul 2, 2018

Basically addressed by commit ca96ea2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment