Sha256: 5399612b37ced07fea36fba72c4981a6a2c88a4c0e3b532bbcdf19afbf477ba0
Contents?: true
Size: 1.3 KB
Versions: 2
Compression:
Stored size: 1.3 KB
Contents
require 'rdf' require 'rdf/reasoner/extensions' module RDF ## # RDFS/OWL reasonsing for RDF.rb. # # @see http://www.w3.org/TR/2013/REC-sparql11-entailment-20130321/ # @author [Gregg Kellogg](http://greggkellogg.net/) module Reasoner autoload :OWL, 'rdf/reasoner/owl' autoload :RDFS, 'rdf/reasoner/rdfs' autoload :Schema, 'rdf/reasoner/schema' autoload :VERSION, 'rdf/reasoner/version' # See http://www.pelagodesign.com/blog/2009/05/20/iso-8601-date-validation-that-doesnt-suck/ # # 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 ## # Add entailment support for the specified regime # # @param [Array<:owl, :rdfs, :schema>] regime def apply(*regime) regime.each {|r| require "rdf/reasoner/#{r.to_s.downcase}"} end module_function :apply ## # A reasoner error class Error < RuntimeError; end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rdf-reasoner-0.2.2 | lib/rdf/reasoner.rb |
rdf-reasoner-0.2.1 | lib/rdf/reasoner.rb |