Class: ActiveTriples::Resource
- Inherits:
-
Object
- Object
- ActiveTriples::Resource
- Includes:
- RDFSource
- Defined in:
- lib/active_triples/resource.rb
Overview
Defines a generic RDF ‘Resource` as an `ActiveTriples::Entity`. This provides a basic `Entity` type for classless resources.
Class Method Summary collapse
Methods included from RDFSource
#==, #[], #[]=, #add_observer, #attributes, #attributes=, #base_uri, #count, #default_labels, #delete_observer, #dump, #each, #escape, #fetch, #get_relation, #get_values, #graph_name, #has_statement?, #humanize, #id, #initialize, #inspect, #load!, #mark_for_destruction, #marked_for_destruction?, #new_record?, #node?, #notify_observers, #parent, #parent=, #query, #rdf_label, #rdf_subject, #serializable_hash, #set_subject!, #set_value, #term?, #to_base, #to_uri, #type, #type=, #uri?
Methods included from Persistable
#delete_statement, #destroy, #destroyed?, #graph, #insert_statement, #persist!, #persisted?, #persistence_strategy, #reload, #set_persistence_strategy
Class Method Details
.property ⇒ Object
14 15 16 17 18 |
# File 'lib/active_triples/resource.rb', line 14 def property(*) raise "Properties not definable directly on ActiveTriples::Resource, use a subclass" if self == ActiveTriples::Resource super end |
.type_registry ⇒ Object
10 11 12 |
# File 'lib/active_triples/resource.rb', line 10 def type_registry RDFSource.type_registry end |