Navigation Menu

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

Filter out RDF versions #499

Closed
wants to merge 1 commit into from
Closed

Filter out RDF versions #499

wants to merge 1 commit into from

Conversation

osmandin
Copy link
Contributor

@osmandin osmandin commented Oct 3, 2014

@@ -74,8 +78,22 @@ public VersionsRdfContext(final Node node, final IdentifierTranslator graphSubje
}

private Iterator<Triple> versionTriples() throws RepositoryException {
return Iterators.concat(Iterators.transform(new VersionIterator(versionHistory
.getAllVersions()), version2triples));
VersionIterator it = new VersionIterator(versionHistory
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be more robust if you revert this code block and add your "version.getName()" logic that checks for equality with the root-version-name to the function: "version2triples".

In that way, you do not have to rely on the root-version being the first in the version iterator.

@awoods
Copy link

awoods commented Oct 18, 2014

Not committed, see #553

@awoods awoods closed this Oct 18, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants