Module: RDF::Reasoner

Defined in:
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-reasoner-e77a80426b61/lib/rdf/reasoner.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-reasoner-e77a80426b61/lib/rdf/reasoner/owl.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-reasoner-e77a80426b61/lib/rdf/reasoner/rdfs.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-reasoner-e77a80426b61/lib/rdf/reasoner/format.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-reasoner-e77a80426b61/lib/rdf/reasoner/schema.rb

Overview

RDFS/OWL reasonsing for RDF.rb.

Defined Under Namespace

Modules: OWL, RDFS, Schema, VERSION Classes: Error, Format

Constant Summary collapse

ISO_8601 =
%r(^
  # Year
  ([\+-]?\d{4}(?!\d{2}\b))
  # Month
  ((-?)((0[1-9]|1[0-2])
        (\3([12]\d|0[1-9]|3[01]))?
      | W([0-4]\d|5[0-2])(-?[1-7])?
      | (00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))
      ([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)
             ([\.,]\d+(?!:))?)?
            (\17[0-5]\d([\.,]\d+)?)?
            ([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?
      )?
  )?
$)x.freeze

Class Method Summary collapse

Class Method Details

.apply(*regime) ⇒ Object

Add entailment support for the specified regime

Parameters:

  • regime (Array<:owl, :rdfs, :schema>)


40
41
42
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-reasoner-e77a80426b61/lib/rdf/reasoner.rb', line 40

def apply(*regime)
  regime.each {|r| require "rdf/reasoner/#{r.to_s.downcase}"}
end

.apply_allObject

Add all entailment regimes



47
48
49
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-reasoner-e77a80426b61/lib/rdf/reasoner.rb', line 47

def apply_all
  apply(*%w(rdfs owl schema))
end