lib/rdf/reasoner/schema.rb in rdf-reasoner-0.0.2 vs lib/rdf/reasoner/schema.rb in rdf-reasoner-0.0.3

- old
+ new

@@ -146,11 +146,11 @@ else # Valid if cast as datatype resource.simple? && RDF::Literal(resource.value, :datatype => RDF::URI(range)).valid? end else - # Otherwise, presume that the range refers to a typed resource - false + # Otherwise, presume that the range refers to a typed resource. This is allowed if the value is a plain literal + resource.plain? end end end elsif %w(True False).map {|v| RDF::SCHEMA[v]}.include?(resource) && ranges.include?(RDF::SCHEMA.Boolean) true # Special case for schema boolean resources \ No newline at end of file