class ActiveFedora::LdpResource
def self.graph_class
def self.graph_class ActiveTriples::Resource end
def build_empty_graph
def build_empty_graph graph_class.new(subject_uri) end
def build_graph(original_graph)
-
(RDF::Graph)
- A graph striped of any inlined resources present in the original
Parameters:
-
original_graph
(RDF::Graph
) -- The graph returned by the LDP server
def build_graph(original_graph) Deprecation.warn(ActiveFedora::LdpResource, '#build_graph is deprecated and will be removed in active-fedora 10.0') inlined_resources = get.graph.query(predicate: Ldp.contains).map(&:object) # ActiveFedora always wants to copy the resources to a new graph because it # forces a cast to FedoraRdfResource graph_without_inlined_resources(original_graph, inlined_resources) end
def graph_class
def graph_class self.class.graph_class end
def marshal_dump
def marshal_dump (instance_variables - [:@client]).map { |name| [name, instance_variable_get(name)] } end
def marshal_load(data)
def marshal_load(data) ivars = data ivars.each { |name, val| instance_variable_set(name, val) } end