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

748 using tarjan for entitytree #805

Merged
merged 19 commits into from
May 2, 2014
Merged

Conversation

SGraef
Copy link
Member

@SGraef SGraef commented Mar 31, 2014

Using the Tarjan algorithm for grouping the nodes of the entity trees to handle cycles in the class hierachy. See #748.

subclasses.each do |s|
c1, c2 = s.hierarchical_class_names

child = ontology.entities.where('name = ? OR iri = ?', c1, c1).first.id
Copy link
Member

Choose a reason for hiding this comment

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

  • Here, the indentation is two spaces too far in (until line 17)
  • Why not use first! (also in next line)? If there is no such entity, you get a better error message with first!.

t.text :name

t.timestamps
end
Copy link
Contributor

Choose a reason for hiding this comment

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

https://github.com/ontohub/ontohub/pull/805/files#Constraints are missing completely. Please add NOT NULL and FOREIGN KEY constraints. Indices are missing as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

this is done

@0robustus1
Copy link
Contributor

@corny any signoff-news?

end

end
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Indentation and vertical spacing is ugly, here.

@nning
Copy link
Contributor

nning commented May 2, 2014

👍

@nning
Copy link
Contributor

nning commented May 2, 2014

We decided on already merging this in the meeting.

nning added a commit that referenced this pull request May 2, 2014
@nning nning merged commit 5af83e1 into staging May 2, 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

5 participants