Module: RDFS

Includes:
RDF
Defined in:
lib/rdfs.rb,
lib/rdfs/rule.rb,
lib/rdfs/version.rb,
lib/rdfs/reasoner.rb,
lib/rdfs/semantics.rb,
lib/rdfs/repository.rb

Overview

RDF Schema (RDFS) support.

Defined Under Namespace

Modules: Semantics, VERSION Classes: Reasoner, Repository, Rule

Class Method Summary collapse

Class Method Details

.[](property) ⇒ #to_s, URI

Returns:

  • (#to_s)

    property

  • (URI)


23
24
25
# File 'lib/rdfs.rb', line 23

def self.[](property)
  ::RDF::RDFS[property]
end

.method_missing(property, *args, &block) ⇒ URI

Parameters:

  • property (Symbol)

Returns:

  • (URI)

Raises:

  • (NoMethodError)


31
32
33
34
35
36
37
# File 'lib/rdfs.rb', line 31

def self.method_missing(property, *args, &block)
  if args.empty?
    ::RDF::RDFS[property]
  else
    super
  end
end