Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing a bug in Scope::Query `to_statements`

  • Loading branch information...
commit d9147e10b91def3b1ab470e460a5454ef7833e46 1 parent 06aab13
@serebryakov serebryakov authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/lib/scope/query.rb
View
7 lib/lib/scope/query.rb
@@ -158,9 +158,12 @@ def to_statements
else
RDF::URI.new(self[:id].to_s)
end
- to_a(:id).map do |condition|
+ [{ :subject => target,
+ :predicate => RDF.type,
+ :object => @cls.type
+ }] + to_a(:id).map do |condition|
condition.to_statements(target)
- end.flatten.compact + @cls.to_statements(:short => true)
+ end.flatten.compact
end
##
Please sign in to comment.
Something went wrong with that request. Please try again.