Module: VirtualAssembly
- Defined in:
- lib/virtual_assembly/semantizer/semantic_object.rb,
lib/virtual_assembly/semantizer.rb,
lib/virtual_assembly/semantizer/semantic_property.rb
Overview
The SemanticPropety class is designed to turn properties of objects into linked data.
A SemanticProperty has a name and a corresponding value that can be fetched later (so its value would be up to date).
This class is intented to be used through the SemanticObject class.
For instance, we can tell that the name of a Person object refers to the linked data concept “name” from the FOAF project. The name of the property would be the uri of the FOAF:name property while the value would be the attribute reader of the name of the Person object.
You should use a block to pass the value like so: SemanticProperty.new(“xmlns.com/foaf/0.1/name”) selfself.name
Defined Under Namespace
Modules: Semantizer