Module: RDF::Reasoner

Defined in:
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-reasoner-17c965b5c3d4/lib/rdf/reasoner.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-reasoner-17c965b5c3d4/lib/rdf/reasoner/format.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-reasoner-17c965b5c3d4/lib/rdf/reasoner/owl.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-reasoner-17c965b5c3d4/lib/rdf/reasoner/rdfs.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-reasoner-17c965b5c3d4/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

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>)


41
42
43
# File 'vendor/bundler/ruby/2.4.0/bundler/gems/rdf-reasoner-17c965b5c3d4/lib/rdf/reasoner.rb', line 41

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

.apply_allObject

Add all entailment regimes



48
49
50
# File 'vendor/bundler/ruby/2.4.0/bundler/gems/rdf-reasoner-17c965b5c3d4/lib/rdf/reasoner.rb', line 48

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