lib/rdf/reasoner/schema.rb in rdf-reasoner-0.7.0 vs lib/rdf/reasoner/schema.rb in rdf-reasoner-0.7.1
- old
+ new
@@ -153,10 +153,10 @@
https://schema.org/True
https://schema.org/False
).include?(resource) &&
(ranges.include?(RDF::URI("http://schema.org/Boolean")) || ranges.include?(RDF::URI("https://schema.org/Boolean")))
true # Special case for schema boolean resources
- elsif (ranges.include?(RDF::URI("http://schema.org/URL")) || ranges.include?(RDF::URI("http://schema.org/URL"))) &&
+ elsif (ranges.include?(RDF::URI("http://schema.org/URL")) || ranges.include?(RDF::URI("https://schema.org/URL"))) &&
resource.uri?
true # schema:URL matches URI resources
elsif ranges == [RDF::URI("http://schema.org/Text")] && resource.uri?
# Allowed if resource is untyped
entailed_types(resource, queryable, **options).empty?
\ No newline at end of file