Sha256: b8cf096a25d667527ec51728a9403b2137457ad99cd81f625ba2948f6f22ab8c
Contents?: true
Size: 796 Bytes
Versions: 15
Compression:
Stored size: 796 Bytes
Contents
require_relative 'sparql_adaptor' require_relative 'config_file' require_relative 'options' module Solis class Resource < ::Graphiti::Resource self.abstract_class = true self.adapter = Solis::SparqlAdaptor self.endpoint_namespace = Solis::Options.instance.get[:base_path] rescue '' self.validate_endpoints = true def self.sparql_endpoint @sparql_endpoint end def self.sparql_endpoint=(sparql_endpoint) @sparql_endpoint = sparql_endpoint end end class NoopEndpoint def initialize(path, action) @path = path @action = action end def sideload_allowlist @allow_list end def sideload_allowlist=(val) @allow_list = JSONAPI::IncludeDirective.new(val).to_hash super(@allow_list) end end end
Version data entries
15 entries across 15 versions & 1 rubygems