Module: Tripod::Components

Extended by:
ActiveSupport::Concern
Includes:
ActiveModel::Conversion, ActiveModel::Naming, ActiveModel::Validations, Attributes, Callbacks, Dirty, EagerLoading, Embeds, Fields, Finders, Graphs, Links, Persistence, Predicates, RdfType, Repository, Serialization, State, Validations
Included in:
Resource
Defined in:
lib/tripod/components.rb

Overview

All modules that a Resource is composed of are defined in this module, to keep the resource module from getting too cluttered.

Instance Attribute Summary

Attributes included from State

#destroyed, #new_record

Attributes included from EagerLoading

#object_resources, #predicate_resources

Attributes included from Repository

#repository

Method Summary

Methods included from Graphs

#graphs

Methods included from State

#destroyed?, #new_record?, #persisted?

Methods included from Serialization

#to_json, #to_nt, #to_rdf, #to_text, #to_ttl

Methods included from EagerLoading

#build_multifield_query, #eager_load_object_triples!, #eager_load_predicate_triples!, #get_related_resource, #has_related_resource?

Methods included from Repository

#get_triples_for_this_resource, #hydrate!, #repository_as_graph, #retrieve_triples_from_database

Methods included from Dirty

#attribute_change, #attribute_changed?, #attribute_will_change!, #changed, #changed_attributes, #changes, #post_persist

Methods included from Embeds

#embedded_are_valid, #get_embeds

Methods included from Fields

#fields, included

Methods included from Persistence

#destroy, #save, #save!, #update_attribute, #update_attributes

Methods included from RdfType

#set_rdf_type

Methods included from Attributes

#read_attribute, #write_attribute

Methods included from Predicates

#append_to_predicate, #predicates, #read_predicate, #remove_predicate, #write_predicate