lib/rdf/reasoner/schema.rb in rdf-reasoner-0.6.0 vs lib/rdf/reasoner/schema.rb in rdf-reasoner-0.6.1
- old
+ new
@@ -20,11 +20,11 @@
# @param [RDF::Resource] resource
# @param [RDF::Queryable] queryable
# @param [Hash{Symbol => Object}] options
# @option options [Array<RDF::Vocabulary::Term>] :types
# Fully entailed types of resource, if not provided, they are queried
- def domain_compatible_schema?(resource, queryable, **options)
+ def domain_compatible_schema?(resource, queryable, options = {})
raise RDF::Reasoner::Error, "#{self} can't get domains" unless property?
domains = Array(self.domainIncludes) - [RDF::OWL.Thing]
# Fully entailed types of the resource
types = entailed_types(resource, queryable, **options) unless domains.empty?
@@ -50,10 +50,10 @@
# @param [RDF::Resource] resource
# @param [RDF::Queryable] queryable
# @param [Hash{Symbol => Object}] options ({})
# @option options [Array<RDF::Vocabulary::Term>] :types
# Fully entailed types of resource, if not provided, they are queried
- def range_compatible_schema?(resource, queryable, **options)
+ def range_compatible_schema?(resource, queryable, options = {})
raise RDF::Reasoner::Error, "#{self} can't get ranges" unless property?
if !(ranges = Array(self.rangeIncludes) - [RDF::OWL.Thing]).empty?
if resource.literal?
ranges.any? do |range|
case range
\ No newline at end of file