% # WontoMedia - a wontology web application # Copyright (C) 2011 - Glen E. Ivey # www.wontology.com # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License version # 3 as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program in the file COPYING and/or LICENSE. If not, # see "http://www.gnu.org/licenses/". %> <% content_for :head do %> <% end %> <% require Rails.root.join( 'lib', 'helpers', 'item_helper') show_class_control = @item.class_item_id.nil? if show_class_control @title_text = 'Make a new item' else @title_text = 'Enter a new ' + @item.class_item.name end # initialize array to define "Glossary Help" box of links: @glossary_help_entries = [ [ 'Category', 'Help:GlossaryAtoO#anchor_Category' ], [ 'Individual', 'Help:GlossaryAtoO#anchor_Individual' ], [ 'Property', 'Help:GlossaryAtoO#anchor_Property' ], [ 'Item', 'Help:GlossaryAtoO#anchor_Item' ] ] %> <% options = @item.sti_type.nil? ? {} : { :url => items_path() } form_for(@item, options) do |f| %> <%= f.error_messages %> <% if @item.sti_type.nil? %>
spouseOf sub_property_of
symmetric_relationship
". This example will cause
"spouseOf" to be treated as a "peer" <%=
popup_help_icon 'Peer relationships in a wontology',
'Help:GlossaryPtoZ#anchor_Peer', 'relationship' -%>
(rather than a hierarchical one), and as a symmetric <%=
popup_help_icon 'Symmetric relationships in a wontology',
'Help:GlossaryPtoZ#anchor_Symmetric', 'relationship' -%>,
so that creating a "spouseOf" connection from one item to another
implies an connection going the other direction even if it is not
defined explicitly.