<commit_before>Feature:  Create and view new individual edges through non-Ajax pages
  In order to create a wontology,
  as a contributor, I want
  to be able to create and view edges.

  Scenario: Create new edge 
    Given there are 2 existing classes like "itemFamily"
    And I am on the new edges page
    And I select "itemFamily node number 0" from "Subject"
    And I select "Parent Of (wm built-in relationship)" from "Relates to"
    And I select "itemFamily node number 1" from "Obj"
    When I press "Create"
    Then I should see "successfully created"
    And I should see "itemFamily0"
    And I should see "parent_of"
    And I should see "itemFamily1"


  Scenario: I can't create an edge duplicating an existing one
    Given there are 2 existing items like "thing"
    And there is an existing edge "thing0" "contains" "thing1"
    And I am on the new edges page
    And I select "thing node number 0" from "Subject"
    And I select "Contains (wm built-in relationship)" from "Relates to"
    And I select "thing node number 1" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an edge using a sub/super property of an existing one
    Given there are 2 existing items like "thing"
    And there is an existing edge "thing0" "contains" "thing1"
    And I am on the new edges page
    And I select "thing node number 0" from "Subject"
    And I select "Parent Of (wm built-in relationship)" from "Relates to"
    And I select "thing node number 1" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an explicit edge duplicating an existing implicit one
    Given there are 2 existing items like "thing"
    And there is an existing edge "thing0" "contains" "thing1"
    And I am on the new edges page
    And I select "thing node number 1" from "Subject"
    And I select "One Of (wm built-in relationship)" from "Relates to"
    And I select "thing node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an item-contains-category edge
    Given there is 1 existing class like "myClass"
    And there is 1 existing item like "myItem"
    And I am on the new edges page
    And I select "myItem node number 0" from "Subject"
    And I select "Contains (wm built-in relationship)" from "Relates to"
    And I select "myClass node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an category-containedBy-item edge
    Given there is 1 existing class like "myClass"
    And there is 1 existing item like "myItem"
    And I am on the new edges page
    And I select "myClass node number 0" from "Subject"
    And I select "Child Of (wm built-in relationship)" from "Relates to"
    And I select "myItem node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an edge which would close a prohibited loop
    Given there are 3 existing items like "item"
    And there is an existing edge "item0" "predecessor_of" "item1"
    And there is an existing edge "item1" "predecessor_of" "item2"
    And I am on the new edges page
    And I select "item node number 2" from "Subject"
    And I select "Predecessor Of (wm built-in relationship)" from "Relates to"
    And I select "item node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"


    # Check various prohibited edge-to-self cases.  Verify each
    # fundamental prohibition, plus one property type that is
    # prohibited by inheritence
  Scenario: I can't create an hierarchical_relationship edge-to-self
    And there is 1 existing item like "myItem"
    And I am on the new edges page
    And I select "myItem node number 0" from "Subject"
    And I select "generic Hierarchical Relationship (wm built-in root type)" from "Relates to"
    And I select "myItem node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an ordered_relationship edge-to-self
    And there is 1 existing item like "myItem"
    And I am on the new edges page
    And I select "myItem node number 0" from "Subject"
    And I select "generic Ordered Relationship (wm built-in root type)" from "Relates to"
    And I select "myItem node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an one_of (implied hierarchical) edge-to-self
    And there is 1 existing item like "myItem"
    And I am on the new edges page
    And I select "myItem node number 0" from "Subject"
    And I select "One Of (wm built-in relationship)" from "Relates to"
    And I select "myItem node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"



# WontoMedia - a wontology web application
# Copyright (C) 2009 - <NAME>
#    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/>.<commit_msg>Fixed sloppy cut-and-paste.  First step of each scenario should be "Given..."<commit_after>Feature:  Create and view new individual edges through non-Ajax pages
  In order to create a wontology,
  as a contributor, I want
  to be able to create and view edges.

  Scenario: Create new edge 
    Given there are 2 existing classes like "itemFamily"
    And I am on the new edges page
    And I select "itemFamily node number 0" from "Subject"
    And I select "Parent Of (wm built-in relationship)" from "Relates to"
    And I select "itemFamily node number 1" from "Obj"
    When I press "Create"
    Then I should see "successfully created"
    And I should see "itemFamily0"
    And I should see "parent_of"
    And I should see "itemFamily1"


  Scenario: I can't create an edge duplicating an existing one
    Given there are 2 existing items like "thing"
    And there is an existing edge "thing0" "contains" "thing1"
    And I am on the new edges page
    And I select "thing node number 0" from "Subject"
    And I select "Contains (wm built-in relationship)" from "Relates to"
    And I select "thing node number 1" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an edge using a sub/super property of an existing one
    Given there are 2 existing items like "thing"
    And there is an existing edge "thing0" "contains" "thing1"
    And I am on the new edges page
    And I select "thing node number 0" from "Subject"
    And I select "Parent Of (wm built-in relationship)" from "Relates to"
    And I select "thing node number 1" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an explicit edge duplicating an existing implicit one
    Given there are 2 existing items like "thing"
    And there is an existing edge "thing0" "contains" "thing1"
    And I am on the new edges page
    And I select "thing node number 1" from "Subject"
    And I select "One Of (wm built-in relationship)" from "Relates to"
    And I select "thing node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an item-contains-category edge
    Given there is 1 existing class like "myClass"
    And there is 1 existing item like "myItem"
    And I am on the new edges page
    And I select "myItem node number 0" from "Subject"
    And I select "Contains (wm built-in relationship)" from "Relates to"
    And I select "myClass node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an category-containedBy-item edge
    Given there is 1 existing class like "myClass"
    And there is 1 existing item like "myItem"
    And I am on the new edges page
    And I select "myClass node number 0" from "Subject"
    And I select "Child Of (wm built-in relationship)" from "Relates to"
    And I select "myItem node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an edge which would close a prohibited loop
    Given there are 3 existing items like "item"
    And there is an existing edge "item0" "predecessor_of" "item1"
    And there is an existing edge "item1" "predecessor_of" "item2"
    And I am on the new edges page
    And I select "item node number 2" from "Subject"
    And I select "Predecessor Of (wm built-in relationship)" from "Relates to"
    And I select "item node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"


    # Check various prohibited edge-to-self cases.  Verify each
    # fundamental prohibition, plus one property type that is
    # prohibited by inheritence
  Scenario: I can't create an hierarchical_relationship edge-to-self
    Given there is 1 existing item like "myItem"
    And I am on the new edges page
    And I select "myItem node number 0" from "Subject"
    And I select "generic Hierarchical Relationship (wm built-in root type)" from "Relates to"
    And I select "myItem node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an ordered_relationship edge-to-self
    Given there is 1 existing item like "myItem"
    And I am on the new edges page
    And I select "myItem node number 0" from "Subject"
    And I select "generic Ordered Relationship (wm built-in root type)" from "Relates to"
    And I select "myItem node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"


  Scenario: I can't create an one_of (implied hierarchical) edge-to-self
    Given there is 1 existing item like "myItem"
    And I am on the new edges page
    And I select "myItem node number 0" from "Subject"
    And I select "One Of (wm built-in relationship)" from "Relates to"
    And I select "myItem node number 0" from "Obj"
    When I press "Create"
    Then I should see "error"



# WontoMedia - a wontology web application
# Copyright (C) 2009 - <NAME>
#    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/>.
{'fraction_non_alphanumeric': 0.06200575125808771, 'fraction_numerical': 0.008806613946800863, 'mean_word_length': 3.2091527987897126, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5929616', 'n_tokens_mistral': 3258, 'n_tokens_neox': 3085, 'n_words': 1733}