Module: RDF::N3::Algebra

Defined in:
vendor/bundler/ruby/2.6.0/bundler/gems/rdf-n3-015ce184efe3/lib/rdf/n3/algebra.rb,
vendor/bundler/ruby/2.6.0/bundler/gems/rdf-n3-015ce184efe3/lib/rdf/n3/algebra/formula.rb

Overview

Based on the SPARQL Algebra, operators for executing a patch

Author:

Defined Under Namespace

Modules: List, Log, Math, Str Classes: Formula

Class Method Summary collapse

Class Method Details

.for(uri) ⇒ Object



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# File 'vendor/bundler/ruby/2.6.0/bundler/gems/rdf-n3-015ce184efe3/lib/rdf/n3/algebra.rb', line 69

def for(uri)
  {
    RDF::N3::List.append              => List::Append,
    RDF::N3::List.in                  => List::In,
    RDF::N3::List.last                => List::Last,
    RDF::N3::List.member              => List::Member,

    RDF::N3::Log.conclusion           => Log::Conclusion,
    RDF::N3::Log.conjunction          => Log::Conjunction,
    RDF::N3::Log.equalTo              => Log::EqualTo,
    RDF::N3::Log.implies              => Log::Implies,
    RDF::N3::Log.includes             => Log::Includes,
    RDF::N3::Log.notEqualTo           => Log::NotEqualTo,
    RDF::N3::Log.notIncludes          => Log::NotIncludes,
    RDF::N3::Log.outputString         => Log::OutputString,

    RDF::N3::Math.absoluteValue       => Math::AbsoluteValue,
    RDF::N3::Math.difference          => Math::Difference,
    RDF::N3::Math.equalTo             => Math::EqualTo,
    RDF::N3::Math.exponentiation      => Math::Exponentiation,
    RDF::N3::Math.greaterThan         => Math::GreaterThan,
    RDF::N3::Math.integerQuotient     => Math::IntegerQuotient,
    RDF::N3::Math.lessThan            => Math::LessThan,
    RDF::N3::Math.memberCount         => Math::MemberCount,
    RDF::N3::Math.negation            => Math::Negation,
    RDF::N3::Math.notEqualTo          => Math::NotEqualTo,
    RDF::N3::Math.notGreaterThan      => Math::NotGreaterThan,
    RDF::N3::Math.notLessThan         => Math::NotLessThan,
    RDF::N3::Math.product             => Math::Product,
    RDF::N3::Math.quotient            => Math::Quotient,
    RDF::N3::Math.remainder           => Math::Remainder,
    RDF::N3::Math.rounded             => Math::Rounded,
    RDF::N3::Math.sum                 => Math::Sum,

    RDF::N3::Str.concatenation        => Str::Concatenation,
    RDF::N3::Str.contains             => Str::Contains,
    RDF::N3::Str.containsIgnoringCase => Str::ContainsIgnoringCase,
    RDF::N3::Str.endsWith             => Str::EndsWith,
    RDF::N3::Str.equalIgnoringCase    => Str::EqualIgnoringCase,
    RDF::N3::Str.format               => Str::Format,
    RDF::N3::Str.greaterThan          => Str::GreaterThan,
    RDF::N3::Str.lessThan             => Str::LessThan,
    RDF::N3::Str.matches              => Str::Matches,
    RDF::N3::Str.notEqualIgnoringCase => Str::NotEqualIgnoringCase,
    RDF::N3::Str.notGreaterThan       => Str::NotGreaterThan,
    RDF::N3::Str.notLessThan          => Str::NotLessThan,
    RDF::N3::Str.notMatches           => Str::NotMatches,
    RDF::N3::Str.replace              => Str::Replace,
    RDF::N3::Str.scrape               => Str::Scrape,
    RDF::N3::Str.startsWith           => Str::StartsWith,
  }[uri]
end